[luatex] getting previous glyphs

Ulrike Fischer luatex at nililand.de
Thu Dec 4 12:36:48 CET 2014

Am Thu, 4 Dec 2014 20:00:47 +0900 schrieb Norbert Preining:

> Hi Ulrike,
> thanks for your answer,
>> Couldn't you simply surround every KKK-Block by some command
>> \checkforruby{KKK} and define this command so that it looks for an
>> optional argument in <..>-braces? This should be easy with xparse.
> Well, that might be possible, but how to automatically add
> the ]checkforruby, that is the same problem at the end.
> Of course, I can write a perl script that reads the input, 
> writes the output in tex, and adds the proper calls, that is trivial.
> My idea was to do it with on-board-tools ;-)

Well some time ago in a discussion about "XeTeXinterchartoks" Taco
showed this code:


Perhaps you can adapt it to your need or at least use some parts of

The chickenize package probably contains also useful code. 

Ulrike Fischer 

More information about the luatex mailing list