From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37719 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: synonyms with MKIV Date: Thu, 6 Dec 2007 09:26:27 +0100 Message-ID: <115224fb0712060026x7fa0049ahef2f413edcf9a304@mail.gmail.com> References: <20071203164416.GA17359@gaston.couberia.bzh> <115224fb0712030958w65d918f2n921e1e9a3dc99aab@mail.gmail.com> <475459D2.3020709@wxs.nl> <115224fb0712040757l6f303c41q9c0d4565a2b7a989@mail.gmail.com> <20071204182235.GA3881@gaston.couberia.bzh> <115224fb0712050029j3e780bbcy3ae5b5a167074e36@mail.gmail.com> <20071205204547.GA28430@gaston.couberia.bzh> <475720FF.4000205@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1196934001 20832 80.91.229.12 (6 Dec 2007 09:40:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 09:40:01 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 10:40:10 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1J0DDE-0000vH-Od for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2007 10:40:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AFC151FCE3; Thu, 6 Dec 2007 10:37:20 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12749-02-6; Thu, 6 Dec 2007 10:36:31 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F353D1FB2D; Thu, 6 Dec 2007 10:14:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B0FAB1FCF3 for ; Thu, 6 Dec 2007 10:13:57 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07803-01-5 for ; Thu, 6 Dec 2007 10:13:05 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by ronja.ntg.nl (Postfix) with ESMTP id 880AC1FD30 for ; Thu, 6 Dec 2007 09:26:47 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so629864uge for ; Thu, 06 Dec 2007 00:26:27 -0800 (PST) Original-Received: by 10.66.249.11 with SMTP id w11mr1128317ugh.1196929587581; Thu, 06 Dec 2007 00:26:27 -0800 (PST) Original-Received: by 10.67.122.17 with HTTP; Thu, 6 Dec 2007 00:26:27 -0800 (PST) In-Reply-To: <475720FF.4000205@wxs.nl> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37719 Archived-At: 2007/12/5, Hans Hagen : > Peter M=FCnster wrote: > > On Wed, Dec 05, 2007 at 09:29:08AM +0100, Wolfgang Schuster wrote: > >>>> this line should be > >>>> > >>>> \def\mksavesortedlistentry#1#2#3#4% class key entry meaning > >>>> {\immediatewriteutilitytua{table.insert(js['#1'],{'e','#1',\!!bs#2= \!!es,\!!bs#3\!!es})}} > >>> Both versions give wrong output with optional arguments. But the foll= owing > >>> version works for me: > >> I forgot to mention you have to regenrate the format with my solution,= your > >> seems to work but I found a way to stop processing because you the opt= inal > >> argument can also be used to write a mcro in the first pair of braces = and this > >> can produce problems. > > > > I've also regenrated the format. But now I understand better: it works = well > > with your patch for core-syn.lua and Hans' patch for core-syn.mkiv: > > {\immediatewriteutilitytua{table.insert(js['#1'],{'e','#2',\!!bs#3\!!= es,\!!bs#4\!!es})}} > > can you summarize what i need to change? Hi Hans, the first part was your change in core-syn.mkiv to wrote all elements to the tua file. The scond correction is on line 108 in core-syn.lua The order of key and entry is, the same as in the mkii macro { { v[2], v[3] } }, -- key, entry but you wrote { { v[3], v[2] } }, -- entry, key and can give the wrong entry in the synonymlist, e.g. \definsynonyms[test][tests] \test[A]{\TeX}{Description Text} give A Description Text and not TeX Description Text I tested already in my own installation and this did work. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________