From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15772 Path: main.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: key=value parameters Date: Sat, 24 Jul 2004 10:56:44 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4102244C.4040405@seznam.cz> References: <4100D052.5070801@seznam.cz> <20040723111209.2d36bd92@glenlivet.elvenkind.com> <4100EE2D.4000906@seznam.cz> <41015D08.10305@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090659371 13142 80.91.224.253 (24 Jul 2004 08:56:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2004 08:56:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 24 10:56:00 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BoIK0-0000Rm-00 for ; Sat, 24 Jul 2004 10:56:00 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5873C1278A; Sat, 24 Jul 2004 10:55:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18299-06; Sat, 24 Jul 2004 10:55:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7A0D71277E; Sat, 24 Jul 2004 10:55:56 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EEC261277E for ; Sat, 24 Jul 2004 10:55:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18446-03-2 for ; Sat, 24 Jul 2004 10:55:55 +0200 (CEST) Original-Received: from smtp.seznam.cz (unknown [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 624B8126F8 for ; Sat, 24 Jul 2004 10:55:55 +0200 (CEST) Original-Received: (qmail 15750 invoked from network); 24 Jul 2004 08:55:54 -0000 Original-Received: from unknown (HELO ?192.168.1.45?) (vit.zyka@82.142.74.35) by smtp.seznam.cz with SMTP; 24 Jul 2004 08:55:54 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: cs, en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <41015D08.10305@wxs.nl> X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15772 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15772 >> Great, but unfortunately it does not work with empty parameter list []. >> No I have no time but I will look for better definition of >> \rawgetparameters and \rawsetparameter. > > I fixed this a while ago, and not have: > \def\rawgetparameters[#1][#2% some 5-10% faster > {\ifx#2]% test is needed, else bomb on [#1][] > \expandafter\gobbleoneargument > \else > \def\rawparameterprefix{#1}% > \expandafter\dorawgetparameters > \fi#2} > > \def\dorawgetparameters#1]% > {\expandafter\rawsetparameter#1,]=,} Thankx for quick response, even from outside Hans, this solves the empty list problem, but unfortunately not the problem with newline in param list: \MyMacro[Field][param1=value, param2=value] and in this way it is incompatible with \setparameters. What about use the same parameter parser as in the \setparameters: \def\rawgetparameters{\dogetparameters\rawdosetvalue} \def\rawdosetvalue#1#2{\@EA\def\csname#1#2\endcsname} Vit Zyka