[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:

http://tex.stackexchange.com/questions/21625/in-luatex-is-it-possible-to-change-font-language-according-to-the-script-glyphs/21691#21691

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

The chickenize package probably contains also useful code. 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list