From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37695 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: synonyms with MKIV Date: Wed, 5 Dec 2007 09:29:08 +0100 Message-ID: <115224fb0712050029j3e780bbcy3ae5b5a167074e36@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> 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 1196843489 4232 80.91.229.12 (5 Dec 2007 08:31:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 08:31:29 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 05 09:31:38 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 1IzpfM-0006HZ-WB for gctc-ntg-context-518@m.gmane.org; Wed, 05 Dec 2007 09:31:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3AEC11FBBA; Wed, 5 Dec 2007 09:31:00 +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 29640-01-5; Wed, 5 Dec 2007 09:30:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D9FB1FB95; Wed, 5 Dec 2007 09:30:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 979481FB87 for ; Wed, 5 Dec 2007 09:29:55 +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 25709-04-2 for ; Wed, 5 Dec 2007 09:29:11 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by ronja.ntg.nl (Postfix) with ESMTP id 0EA9C1FBAA for ; Wed, 5 Dec 2007 09:29:08 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so318845uge for ; Wed, 05 Dec 2007 00:29:08 -0800 (PST) Original-Received: by 10.67.122.10 with SMTP id z10mr1784680ugm.1196843348575; Wed, 05 Dec 2007 00:29:08 -0800 (PST) Original-Received: by 10.67.122.17 with HTTP; Wed, 5 Dec 2007 00:29:08 -0800 (PST) In-Reply-To: <20071204182235.GA3881@gaston.couberia.bzh> 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:37695 Archived-At: 2007/12/4, Peter M=FCnster : > On Tue, Dec 04, 2007 at 04:57:51PM +0100, Wolfgang Schuster wrote: > > > > > this is a bug in the mkiv sorting macros, I posted a similiar messa= ge > > > > a few days ago but got no answer. > > Hello Wolfgang, > > Indeed, now I remember... > (But one long week was time enough for me to forget it.) > > > > \def\mksavesortedlistentry#1#2#3#4% class key entry meaning > > > > > > {\immediatewriteutilitytua{ti(js['#1'],{'e','#2',\!!bs#3\!!es,\!!bs#4= \!!es})}} > > > > > > seems to work > > > > 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 following > 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 optinal argument can also be used to write a mcro in the first pair of braces and t= his can produce problems. You can try to add the following synonym and TeX give you a error message. \test[zB]{z.\thinspace B.}{zum Beispiel} > % engine=3Dluatex > \unprotect > \def\mksavesortedlistentry#1#2#3#4% class key entry meaning > {\immediatewriteutilitytua{table.insert(js['#1'],{'e','#3',\!!bs#3\!!es= ,\!!bs#4\!!es})}} > \protect > \definesynonyms[test][tests] > \test[bbb]{short text}{long description} > \test[aaa]{a short text}{a long description} > \starttext > \bbb~\aaa > \placelistoftests > \stoptext > > Cheers, Peter 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 ___________________________________________________________________________= ________