From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31334 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: beta (processaction & "|") Date: Wed, 11 Oct 2006 22:02:44 +0200 Message-ID: <452D4DE4.9010009@wxs.nl> References: <452A41CC.4040909@gmx.net> <452A539B.1090406@wxs.nl> <452A5699.5020005@gmx.net> <452A9770.1020006@wxs.nl> <452CCDB3.5080902@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1160597312 27753 80.91.229.2 (11 Oct 2006 20:08:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Oct 2006 20:08:32 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 11 22:08:31 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GXkMc-0006Tf-Aq for gctc-ntg-context-518@m.gmane.org; Wed, 11 Oct 2006 22:07:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BD0741FF39; Wed, 11 Oct 2006 22:07:37 +0200 (CEST) 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 23994-08-2; Wed, 11 Oct 2006 22:07:31 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA2671FF36; Wed, 11 Oct 2006 22:07:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 469851FF36 for ; Wed, 11 Oct 2006 22:07:26 +0200 (CEST) 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 23994-08 for ; Wed, 11 Oct 2006 22:07:17 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id 2B9FD1FF2D for ; Wed, 11 Oct 2006 22:02:47 +0200 (CEST) Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 12439 for ; Wed, 11 Oct 2006 22:02:47 +0200 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: mailing list for ConTeXt users In-Reply-To: <452CCDB3.5080902@gmx.net> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:31334 Archived-At: Peter Rolf wrote: > Hans Hagen wrote: > >> Peter Rolf wrote: >> >>> Hans Hagen wrote: >>> >>> >>>> Peter Rolf wrote: >>>> >>>> >>>>> \processaction[\FOO][ >>>>> |=>, >>>>> unknown=>] >>>>> >>>>> >>>>> >>>> hm, | and ~ are always special, put \string in fron tof it, or use \letterbar and \lettertilde >>>> >>>> >>>> >>> hm, same error if I use \string| or \letterbar >>> >>> >> do you have a minimal tes file? >> >> a solution may be >> >> \let\savedbarcommand=| >> >> \unexpanded\def|{\savedbarcommand} >> >> > Yes, this works. > > I've tried to create a minimal example, but in the end all points to the > fact, that "|" is a special character. So even the use of "|" as > argument of some macro like > > \FOO[data={||abcx}]{..} > > is not recommended (without prior catcode change). I use the symbols as > an abbreviation for different MP graphics, and it wouldn't make sense to > write \letterbar every time. Looks like I have to choose a different symbol. > still experimental is that you can change the catcodetable (pseudo in mkii, native in mkiv) but i won't bring up it's dirty details here \let\savedbarcommand=| \unexpanded\def|{\savedbarcommand} this makes them unexpandable but still using ~ and | for such purposes is kind of tricky Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------