From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10896 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Expansion problem in natural table Date: Sun, 09 Feb 2003 21:26:27 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030209212337.0321af18@remote-1> References: <20030208205254.GA1686@scaprea> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1044822655 1382 80.91.224.249 (9 Feb 2003 20:30:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2003 20:30:55 +0000 (UTC) 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 18hy6I-0000MA-00 for ; Sun, 09 Feb 2003 21:30:54 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D682C10B5C; Sun, 9 Feb 2003 21:33:01 +0100 (MET) Original-Received: from smtp03.wxs.nl (smtp03.wxs.nl [195.121.6.37]) by ref.ntg.nl (Postfix) with ESMTP id 20FF510AEC for ; Sun, 9 Feb 2003 21:28:03 +0100 (MET) Original-Received: from LAPTOP-3.wxs.nl ([213.75.94.207]) by smtp03.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id HA266G01.M4O for ; Sun, 9 Feb 2003 21:27:52 +0100 X-Sender: hagen-mail@remote-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <20030208205254.GA1686@scaprea> 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:10896 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10896 At 09:52 PM 2/8/2003 +0100, Simon Pepping wrote: >This is my hack, but it is awful because it relies on an exact number >of expansions: > >\expandafter\expandafter\expandafter\def >\expandafter\expandafter\expandafter\!!stringa >\expandafter\expandafter\expandafter{\csname XML:dat:#1\endcsname} >\@EA\bTD\@EA\XMLDBcontinuepartrue\@EA\ignorespaces\!!stringa\eTD} ah, the umlauts ... even if it would work out ok, it looks to ugly, so how about: \def\somethingsimon{blabla} \bTABLE \bTR\safeexpanded{\bTD\Aumlaut}\eTD\eTR \bTR\safeexpanded{\bTD\noexpand\somethingsimon\Aumlaut}\eTD\eTR \eTABLE with in enco-ini: \appendtoks \keepencodedtokens \to \everysafeexpanded and in syst-gen: \newtoks\everysafeexpanded \long\def\safeexpanded#1% {\begingroup \the\everysafeexpanded\long\xdef\@@expanded{\noexpand#1}% \endgroup \@@expanded} A more contexy alternative -) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------