[XeTeX] POLYGLOSSIA with Hebrew

Vafa Khalighi vafa at users.berlios.de
Fri Nov 6 06:39:23 CET 2009


>
> although
> \hebrewtoday is in English, not Hebrew for some reason.
>
> This is because polyglossia uses \if at rl conditionals for this but with new
version of bidi that is supposed to be \if at RTL, however bidi looks at
\if at rland \if at RTLthe same thing but I do not know why this happens. So
I think this should
fix this issue for you

 \makeatletter

\def\hebrewdate#1#2#3{%

\HebrewFromGregorian{#1}{#2}{#3}%

{\hebrewday}{\hebrewmonth}{\hebrewyear}%

\if at RTL%

\@FormatForHebrew{\hebrewday}{\hebrewmonth}{\hebrewyear}%

\else%

\@FormatForEnglish{\hebrewday}{\hebrewmonth}{\hebrewyear}%

\fi}

\makeatother


That was just replacing \if at rl with \if at RTL.




-- 
Vafa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20091106/c013960d/attachment.html>


More information about the XeTeX mailing list