[XeTeX] supplying missing glyphs?
Jjgod Jiang
gzjjgod at gmail.com
Sat Jan 8 10:02:56 CET 2011
On Sat, Jan 8, 2011 at 2:30 AM, Dave Howell
<groups.2009a at grandfenwick.net> 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
More information about the XeTeX
mailing list