[XeTeX] Automatic language switching

Apostolos Syropoulos asyropoulos at yahoo.com
Mon Jan 4 13:26:52 CET 2010


>I can switch the font, but the command to switch language is resulting
in a 'Tex capacity exceeded error'. 
>I hope somebody from you will be
able to help me to put the code right.

I haven't tried your code, but I have triued to do something similar for Greek language texts:

\XeTeXinterchartokenstate = 1
\newXeTeXintercharclass \greekLetter
\XeTeXcharclass `\α \greekLetter
\XeTeXcharclass `\β \greekLetter
. . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
\XeTeXinterchartoks 0 \greekLetter = {\setlanguage{greek}}
\XeTeXinterchartoks \greekLetter 0 = {\setlanguage{american}}


 This works as expected and I think it is correct. 
A.S.

----------------------
Apostolos Syropoulos
Xanthi, Greece


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100104/607d0598/attachment.html>


More information about the XeTeX mailing list