From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10875 Path: main.gmane.org!not-for-mail From: Denis Roegel Newsgroups: gmane.comp.tex.context Subject: Re: Re[6]: MetaTricks? Date: Sat, 8 Feb 2003 22:10:22 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030208221022.A14284@bar.loria.fr> References: <14421271667.20030205223819@iol.it> <20030206141641.20382ab9.morawski@gmx.net> <416656420.20030206152912@iol.it> <20030206174938.773342f5.morawski@gmx.net> <592730426.20030206233514@iol.it> <20030207174229.4a406678.morawski@gmx.net> <6510723078.20030207213455@iol.it> <20030208032039.57c116d4.morawski@gmx.net> <20030208172114.A11118@bar.loria.fr> <20030208210732.35329da5.morawski@gmx.net> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044738597 15843 80.91.224.249 (8 Feb 2003 21:09:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2003 21:09:57 +0000 (UTC) Cc: Denis Roegel Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hcEW-00047O-00 for ; Sat, 08 Feb 2003 22:09:56 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 71DC710B4E; Sat, 8 Feb 2003 22:12:01 +0100 (MET) Original-Received: from macker.loria.fr (macker.loria.fr [152.81.1.70]) by ref.ntg.nl (Postfix) with ESMTP id 8991E10AEC for ; Sat, 8 Feb 2003 22:10:26 +0100 (MET) Original-Received: from localhost.loria.fr (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 2600E6D5D; Sat, 8 Feb 2003 22:10:24 +0100 (MET) X-Amavix: Anti-virus check done by McAfee X-Amavix: Scanned by Amavix Original-Received: from bar.loria.fr (bar.loria.fr [152.81.2.13]) by macker.loria.fr (Postfix) with ESMTP id 0F2796D5D; Sat, 8 Feb 2003 22:10:23 +0100 (MET) Original-Received: (from roegel@localhost) by bar.loria.fr (8.9.3/8.9.3/8.9.3-client/JCG) id WAA14340; Sat, 8 Feb 2003 22:10:22 +0100 (MET) Original-To: ntg-context@ntg.nl Content-Disposition: inline User-Agent: Mutt/1.2.1i In-Reply-To: <20030208210732.35329da5.morawski@gmx.net>; from morawski@gmx.net on Sat, Feb 08, 2003 at 09:07:32PM +0100 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@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:10875 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10875 On Sat, Feb 08, 2003 at 09:07:32PM +0100, Jens-Uwe Morawski wrote: > > That's one of the problems I had in metaobj, hence my contrived > > way of passing parameters. > > your way inspired me to try something like the keyvalMP package ;) Thanks, at least it was useful to provide ideas to others! > My first implementation based also on strings, i.e. > "logo=something,shape=anything" > but this doesn't allow strings to be passed as values. Yes, but there are workarounds. If you always expect a string as a value, and if this value doesn't contain commas, you can make it a string afterwards. That is what I do in metaobj. For instance, what you just wrote becomes "logo(something)","shape(anything)" (you get used to it, and a TeX interface can hide it if necessary) In cases where the value is a string, for instance when I specify the drawing direction of a tree, I write "treemode(U)" for treemode="U", but the parser knows to make a string of it. I found that this works reasonably well and I don't have constraints on my keys and values. > it will not work, since metaobj relies on macros as values. What example did you have in mind? > Or would you like to rewrite metaobj completely? :) Of course not. It took me a while to write it. > if you hide MP with TeX code then you will loose the programming > capabilities of MP. I was not thinking of hiding it completely, but just like in PSTricks where one can mix TeX and PS, here one could mix TeX and MP. Actually, this is already the case in ConTeXt when you embed MP code. Denis