ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Simon Pepping <spepping@scaprea.hobby.nl>
Subject: Re: Expansion problem in natural table
Date: Sun, 9 Feb 2003 19:39:47 +0100	[thread overview]
Message-ID: <20030209183947.GA704@scaprea> (raw)
In-Reply-To: <20030208205254.GA1686@scaprea>

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.
<to be read again> 
                   \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

  reply	other threads:[~2003-02-09 18:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-08 20:52 Simon Pepping
2003-02-09 18:39 ` Simon Pepping [this message]
2003-02-09 20:43   ` Hans Hagen
2003-02-09 20:26 ` Hans Hagen
2003-02-18 20:11   ` Simon Pepping

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030209183947.GA704@scaprea \
    --to=spepping@scaprea.hobby.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).