On Sat, Jan 8, 2011 at 2:30 AM, Dave Howell <[email protected]> wrote: > So! What does "\XeTeXinterchartoks" do, exactly, and is it a better tool for > this than making every 'special' character require executing my "invokeglyph" > macro? Or is there some other clever thingamabob that would work even better?
Check out how xeCJK [1] does what you need with \XeTeXinterchartoks. Basically you first assign each Chinese character a class (1) with \XeTeXcharclass (Latin characters will be class 0), then use \XeTeXinterchartoks to define the command to execute between class 0 and 1. You can define more classes like for punctuations. - Jiang [1] http://code.google.com/p/ctex-kit/source/browse/trunk/xecjk/tex/xelatex/xecjk/xeCJK.sty -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
