[XeTeX] POLYGLOSSIA with Hebrew
sjo
sjo222 at gmail.com
Fri Nov 6 20:57:49 CET 2009
Vafa, that works! Many thanks. I very much appreciate all the help one
gets on this forum.
The only problem remaining (mentioned in earlier posts) is that the
numbers do not follow hebrew numbering convention. I imagine that this
is waiting for someone with knowledge of both tex programming and the
conventions to step in. Any volunteers?
Jon
On Fri, Nov 6, 2009 at 12:39 AM, Vafa Khalighi <vafa at users.berlios.de> wrote:
>> 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 rl
> and \if at RTL the 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
>
More information about the XeTeX
mailing list