From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37680 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: synonyms with MKIV Date: Tue, 4 Dec 2007 19:22:35 +0100 Message-ID: <20071204182235.GA3881@gaston.couberia.bzh> References: <20071203164416.GA17359@gaston.couberia.bzh> <115224fb0712030958w65d918f2n921e1e9a3dc99aab@mail.gmail.com> <475459D2.3020709@wxs.nl> <115224fb0712040757l6f303c41q9c0d4565a2b7a989@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196792668 21142 80.91.229.12 (4 Dec 2007 18:24:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 18:24:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 04 19:24:35 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 1IzcRR-0001JL-IV for gctc-ntg-context-518@m.gmane.org; Tue, 04 Dec 2007 19:24:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E21D01FBC5; Tue, 4 Dec 2007 19:24:03 +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 03376-01-3; Tue, 4 Dec 2007 19:23:15 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E98251FB95; Tue, 4 Dec 2007 19:23:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 51B981FB8F for ; Tue, 4 Dec 2007 19:23:13 +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 03376-01-2 for ; Tue, 4 Dec 2007 19:22:38 +0100 (CET) Original-Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by ronja.ntg.nl (Postfix) with ESMTP id 807EE1FB7F for ; Tue, 4 Dec 2007 19:22:38 +0100 (CET) Original-Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 458BC3F6182 for ; Tue, 4 Dec 2007 19:22:38 +0100 (CET) Original-Received: from gaston.couberia.bzh (c5850-a3-2-62-147-20-47.dial.proxad.net [62.147.20.47]) by smtp5-g19.free.fr (Postfix) with ESMTP id 92B063F6169 for ; Tue, 4 Dec 2007 19:22:37 +0100 (CET) Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id F09E6305B5; Tue, 4 Dec 2007 19:22:35 +0100 (CET) Content-Disposition: inline In-Reply-To: <115224fb0712040757l6f303c41q9c0d4565a2b7a989@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) 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:37680 Archived-At: 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 message > > > 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: % engine=luatex \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 -- http://pmrb.free.fr/contact/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________