Hi Hans, is there no a fix availabe for this problem. Wolfgang
Am 29.12.2008 um 23:03 schrieb Aditya Mahajan:
can you fix the catcode related macros in syst-cat.mkiv, the macros did not work because a few macros are not define like \savecatcodetable and a few other are only defined in the MkII part like \catcodetable.
Aren't \savecatcodetable and \catcodetable luatex primitives?
You're right, this helped me to find the problematic parts in the MkII and MkIV macros. I was able to make a working example where I commented the problematic parts.
I hope this helps Hans to fix it and thank you for the hint.
\startmode[mkiv]
\long\def\startcatcodetable#1#2\stopcatcodetable {\bgroup %\catcodetable\scratchcatcodetable \the\setdefaultcatcodes #2% \savecatcodetable#1\relax \egroup}
\stopmode
\startmode[mkii]
\def\catcodetable#1% {\mathchardef\currentcatcodetable#1% %\the\setdefaultlowercatcodes %\ifrecatcodeuppercharacters\the\setdefaultuppercatcodes\fi \the\csname @@cct:\number#1\endcsname}
\stopmode
\newcatcodetable \mycatcodetable
\startcatcodetable \mycatcodetable \catcode`\$ = 12 \catcode`\& = 12 \catcode`\% = 12 \stopcatcodetable
\def\normaltext {\pushcatcodetable \setcatcodetable\mycatcodetable \donormaltext}
\def\donormaltext#1% {#1% \popcatcodetable}
\starttext \normaltext{Procter & Gamble's stock climbed to $2, a 10% gain.} \stoptext
Wolfgang