<br><br><div class="gmail_quote">On Mon, Jan 4, 2010 at 9:42 PM,  <span dir="ltr">&lt;<a href="mailto:xetex-request@tug.org">xetex-request@tug.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
From: Apostolos Syropoulos &lt;<a href="mailto:asyropoulos@yahoo.com">asyropoulos@yahoo.com</a>&gt;<br>
To: Unicode-based TeX for Mac OS X and other platforms &lt;<a href="mailto:xetex@tug.org">xetex@tug.org</a>&gt;<br>
Subject: Re: [XeTeX] Automatic language switching<br>
Message-ID: &lt;<a href="mailto:815928.97959.qm@web110109.mail.gq1.yahoo.com">815928.97959.qm@web110109.mail.gq1.yahoo.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
&gt;I can switch the font, but the command to switch language is resulting<br>
in a &#39;Tex capacity exceeded error&#39;.<br>
&gt;I hope somebody from you will be<br>
able to help me to put the code right.<br>
<br>
I haven&#39;t tried your code, but I have triued to do something similar for Greek language texts:<br>
<br>
\XeTeXinterchartokenstate = 1<br>
\newXeTeXintercharclass \greekLetter<br>
\XeTeXcharclass `\? \greekLetter<br>
\XeTeXcharclass `\? \greekLetter<br>
. . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . .<br>
\XeTeXinterchartoks 0 \greekLetter = {\setlanguage{greek}}<br>
\XeTeXinterchartoks \greekLetter 0 = {\setlanguage{american}}<br></blockquote><div><br><span style="font-family: courier new,monospace;">\setlanguage</span> did not worked for me and thrown a bunch of errors for every switching, but I found that <span style="font-family: courier new,monospace;">\selectlanguage</span> is working fine. Thanks for your help.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
 This works as expected and I think it is correct.<br>
A.S.<br>
<br>
----------------------<br>
Apostolos Syropoulos<br>
Xanthi, Greece<br clear="all"></blockquote></div><br>-- <br>Kevin Siji<br>
<img style="border: medium none ; position: absolute; z-index: 2147483647; opacity: 0.6; display: none;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADsElEQVR4nK2VTW9VVRSGn33OPgWpYLARbKWhQlCHTogoSkjEkQwclEQcNJEwlfgD/AM6NBo1xjhx5LyJ0cYEDHGkJqhtBGKUpm3SFii3vb2956wPB/t+9raEgSs52fuus89613rftdcNH8/c9q9++oe/Vzb5P+3McyNcfm2CcPj9af9w6gwjTwzvethx3Bx3x8xwd1wNM8dMcTNUHTfFLPnX6nVmZpeIYwf3cWD/PhbrvlPkblAzVFurKS6GmmGqqComaS+qmBoTI0Ncu3mXuGvWnrJ+ZSxweDgnkHf8ndVTdbiT3M7cQp2Z31dRTecHAfqydp4ejhwazh6Zezfnu98E1WIQwB3crEuJ2Y45PBTAQUVR9X4At66AppoEVO1Q8sgAOKJJjw6Am6OquDmvHskZ3R87gW+vlHz98zpmiqphkkRVbQtsfPTOC30lJKFbFTgp83bWh7Zx/uX1B6w3hI3NkkZTqEpBRDBRzG2AQHcwcYwEkOGkTERREbLQ/8HxJwuW7zdYrzfZ2iopy4qqEspKaDYravVm33k1R91Q69FA1VBRzFIVvXbx5AgXT44A8MWP81yfu0utIR2aVK3vfCnGrcUNxp8a7gKYKiLCvY2SUvo/aNtnM3e49ucK9S3p0aDdaT0UAVsKi2tVi6IWwNL9JvdqTdihaz79/l+u/rHMxmaJVMLkS2OoKKLWacdeE3IsSxctc2D5Qcl6vUlVVgNt+fkPPcFFmTw1xruvT7SCd7nuVhDQvECzJH90h0azRKoKFRkAmP5lKTWAGRdefoZL554FQNUxB92WvYeA5UN4PtSqwB2phKqsqMpBgAunRhFR3j49zuU3jnX8k6fHEQKXzh1jbmGDuYU6s4t1rt6socUeLLZHhYO2AHSHmzt19ihTZ48O8Hzl/AmunD/BjTvrvPfNX3hWsNpwJCvwYm+ngug4UilSCSq6k8YPtxDwfA+WRawIWF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