[XeTeX] Automatic language switching

kevin & siji kevinsiji at gmail.com
Wed Jan 6 08:24:59 CET 2010


On Mon, Jan 4, 2010 at 9:42 PM, <xetex-request at tug.org> wrote:

> From: Apostolos Syropoulos <asyropoulos at yahoo.com>
> To: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
> Subject: Re: [XeTeX] Automatic language switching
> Message-ID: <815928.97959.qm at web110109.mail.gq1.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
>
> >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}}
>

\setlanguage did not worked for me and thrown a bunch of errors for every
switching, but I found that \selectlanguage is working fine. Thanks for your
help.


>
>  This works as expected and I think it is correct.
> A.S.
>
> ----------------------
> Apostolos Syropoulos
> Xanthi, Greece
>

-- 
Kevin Siji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100106/5208fa62/attachment.html>


More information about the XeTeX mailing list