From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Catcode tables
Date: Sun, 11 Jan 2009 20:59:40 +0100 [thread overview]
Message-ID: <8672A1D7-2ACF-410F-A9D9-033F41A8C32E@gmail.com> (raw)
In-Reply-To: <349E5862-6F1F-4BF8-A57E-9CDC73ABB064@gmail.com>
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
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-01-11 19:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-29 17:41 Wolfgang Schuster
2008-12-29 22:03 ` Aditya Mahajan
2008-12-29 23:19 ` Wolfgang Schuster
2009-01-11 19:59 ` Wolfgang Schuster [this message]
2009-01-12 9:39 ` Taco Hoekwater
2009-01-13 16:18 ` Wolfgang Schuster
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=8672A1D7-2ACF-410F-A9D9-033F41A8C32E@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).