On Wed, Oct 06, 2004 at 01:53:10PM +0200, Hans Hagen wrote:
Hi Piotr
you can copy this code in cont-new;
when i can be sure that polish/czech users have switched to latin modern, we may be able to simplify some of teh nasty parts of the xml handler (having to deal with { } $ etc not being in their normal slot leads to much low level hacks and this is related)
[...]
\def\defineactivecharacter #1 #2% {\scratchcounter\the\uccode\activehackcode \uccode\activehackcode\expandafter\doifnumberelse \expandafter{\string#1}\empty`#1% \catcode\uccode\activehackcode\@@active \uppercase{\def\next{~}}% \uccode\activehackcode\scratchcounter % unexpanded goes wrong in pdfdoc \@EA\@EA\@EA\def\@EA\next\@EA{\@EA\dohandleactivecharacter\next{#2}}}
\let\dohandleactivecharacter\secondoftwoarguments
\def\donthandleactivecharacter#1#2{\noexpand#1}
\def\XMLexpanded#1% {\bgroup \honorunexpanded % \dontexpandencoding % \dontexpandutf \let\dohandleactivecharacter\donthandleactivecharacter \xdef\@@globalexpanded{#1}% \egroup \@@globalexpanded}
\def\setXMLexpandedmark#1#2% {\XMLexpanded{\scratchtoks{\enableXML#2}}% \expanded{\normalsetnormalmark{#1}{\the\scratchtoks}}} [...]
Great thanks! Both solutions work. And the tip is really useful. Much easier to test different variants. Piotr -- Piotr Kopszak, Ph.D. Polish Art Gallery, National Museum in Warsaw -----------------------------> http://kopszak.mnw.art.pl/