[luatex] lua transliterations on the fly

Luis Rivera jlrn77 at gmail.com
Tue Jan 11 19:43:31 CET 2011


On 11 January 2011 05:18, Arthur Reutenauer
<arthur.reutenauer at normalesup.org> wrote:
>>                The transliteration on the fly kinda works; but as
>> warned by Philip, I've run into trouble because of one active char,
>> namely, ~.
>
>  Can't you just make tilde not active inside the \cbgreek macro?
> Obviously it can't keep its original (non-breakable space) if you use it
> for transliteration.
>

Well, in fact that's what I was trying to do with the \bgroup and the
\catcode's inside \cbgreek; however, it seems that the local \catcode
reassignments don't reach the expansion of \directlua or \scantokens
below; perhaps I need to declare the \catcode reassignments inside the
lua code for lgr2utf, but the documentation is still very terse on
this subject (sending messages to TeX from within Lua or viceversa).
It also occurred to me that the \*catcodetable commands could do the
trick, but I fear I don't quite get the right syntax to set or reset
the catcode tables, or whether the new eTeX primitives still fail to
reach the guts of \directlua.

I'm stymied...

-- 
Luis Rivera
O< http://www.asciiribbon.org/ campaign



More information about the luatex mailing list