From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10890 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: Expansion problem in natural table Date: Sun, 9 Feb 2003 19:39:47 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030209183947.GA704@scaprea> 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=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1044816178 9647 80.91.224.249 (9 Feb 2003 18:42:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2003 18:42:58 +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 18hwPp-0002VP-00 for ; Sun, 09 Feb 2003 19:42:57 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id C787310B2B; Sun, 9 Feb 2003 19:45:03 +0100 (MET) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id F128510AEC for ; Sun, 9 Feb 2003 19:43:14 +0100 (MET) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.6/8.12.2) with ESMTP id h19IhEWG028451 for ; Sun, 9 Feb 2003 19:43:14 +0100 (CET) (envelope-from spepping@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.6/8.12.2/Submit) with UUCP id h19IhErw028450 for ntg-context@ntg.nl; Sun, 9 Feb 2003 19:43:14 +0100 (CET) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 18hwMl-0000kF-00; Sun, 09 Feb 2003 19:39:47 +0100 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <20030208205254.GA1686@scaprea> User-Agent: Mutt/1.3.28i 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:10890 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10890 Even this goes wrong: \edef\mychar{Ä}\mychar The real reason is that \dobuildtextaccent and \nobuildtextaccent are protected macros. Error log: {\edef} Ä->\Adiaeresis \Adiaeresis ->\dohandlecharacter {Adiaeresis} \dohandlecharacter #1->\csname \ifcsname \characterencoding #1\endcsname \chara cterencoding \else \nocharacterencoding \fi #1\endcsname #1<-Adiaeresis {\csname} {\ifcsname} \characterencoding ->@default@ {true} \characterencoding ->@default@ {\else} \@default@Adiaeresis ->\buildtextaccent \textdiaeresis A \buildtextaccent ->\ifignoreaccent \expandafter \nobuildtextaccent \else \expan dafter \dobuildtextaccent \fi {\iffalse} {false} {\expandafter} {\fi} <========= \dobuildtextaccent ( protected ) is not expanded after \fi \textdiaeresis ->\dohandlecharacter {textdiaeresis} \dohandlecharacter #1->\csname \ifcsname \characterencoding #1\endcsname \chara cterencoding \else \nocharacterencoding \fi #1\endcsname #1<-textdiaeresis {\csname} {\ifcsname} \characterencoding ->@default@ {true} \characterencoding ->@default@ {\else} \@default@textdiaeresis ->\char 127 \mychar ->\dobuildtextaccent \char 127 A \dobuildtextaccent #1#2->{\let \char \normalaccent #1\let \char \normalchar #2} #1<-\char #2<-1 {begin-group character {} {\let} {\accent} ! Missing number, treated as zero. \let \dobuildtextaccent ... \char \normalaccent #1\let \char \normalchar #2} \mychar ->\dobuildtextaccent \char 1 27 A l.21 \edef\mychar{Ä}\mychar ? x Simon On Sat, Feb 08, 2003 at 09:52:54PM +0100, Simon Pepping wrote: > I have an expansion problem in natural tables. I need to have this: > > \bTD\XMLDBcontinuepartrue\ignorespaces\XMLflush{revremark}\eTD > > but \XMLflush{revremark} must be expanded. When I do that using > \expanded, > > \expanded{\bTD\noexpand\XMLDBcontinuepartrue\ignorespaces\XMLflush{#1}}\eTD > > I get errors when I have compound characters: > > \XMLDBcontinuepartrue\ignorespaces > Kleine \dobuildtextaccent\char 127 A{}nderung > > It should be > > \dobuildtextaccent{\char 127} A > > for it to be valid. Or it should be > > \buildtextaccent\textdiaeresis A -- Simon Pepping email: spepping@scaprea.hobby.nl