From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9566 Path: main.gmane.org!not-for-mail From: Jens-Uwe Morawski Newsgroups: gmane.comp.tex.context Subject: Re: [NTG-context] MP keyval interface Date: Fri, 18 Oct 2002 11:45:33 +0200 Sender: ntg-context-admin@ref.vet.uu.nl Message-ID: <20021018114533.016e033e.morawski@gmx.net> References: <20021017150230.21a493b4.morawski@gmx.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035399875 4083 80.91.224.250 (23 Oct 2002 19:04:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:04:35 +0000 (UTC) Original-Received: from hermes.hrz.uni-giessen.de (hermes.hrz.uni-giessen.de [134.176.2.15]) by osiris.hrz.uni-giessen.de (8.11.6+Sun/8.11.6) with ESMTP id g9I9lie20674 for ; Fri, 18 Oct 2002 11:47:44 +0200 (MEST) Original-Received: from ref.vet.uu.nl by hermes.hrz.uni-giessen.de with ESMTP for Guenter.Partosch@hrz.uni-giessen.de; Fri, 18 Oct 2002 11:47:20 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 11FEC10AE3; Fri, 18 Oct 2002 11:47:15 +0200 (MEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ref.ntg.nl (Postfix) with SMTP id D3CAC10AD7 for ; Fri, 18 Oct 2002 11:46:54 +0200 (MEST) Original-Received: (qmail 29837 invoked by uid 0); 18 Oct 2002 09:46:53 -0000 Original-Received: from port1559.fra.ginko.net (HELO eXergie) (212.202.68.35) by mail.gmx.net (mp016-rz3) with SMTP; 18 Oct 2002 09:46:53 -0000 Original-To: ConTeXt In-Reply-To: X-Mailer: Sylpheed version 0.8.0 (GTK+ 1.2.10; i586-pc-linux-gnu) Errors-To: ntg-context-admin@ref.vet.uu.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9566 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9566 On 17 Oct 2002 16:03:26 +0200 Emil Hedevang Lohse wrote: > Jens-Uwe Morawski writes: > > > Ahoi MP experts, > > > > i've tried to implement a keyval-interface in MP. > > > > Currently it looks like > > > > def keyvalFunc (text t) = > > begingroup; > > save status, col ; > > numeric status; string col ; > > t ; > > show status; > > show col ; > > endgroup; > > enddef; > > > > keyvalFunc(status=1.0; col="Hallo" ) ; > > > > This works, of course, but i would prefer if i could > > use a comma instead of the ";" to separate the keyval-pairs. > > > > Any ideas, how i can make "," be locally like ";"? > > Perhaps > > begingroup > let ,=;; > endgroup > > will do the job. Thanks. I've already tried this. The problem was that it changes the meaning globally, since MP groups do nothing until one 'save's variables inside the group. But surprisingly (for me) this works: begingroup save , ; let ,=; ; endgroup Jens _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context