[XeTeX] POLYGLOSSIA with Hebrew

sjo sjo222 at gmail.com
Fri Apr 24 03:58:06 CEST 2009


> Add
> \renewcommand\theenumi{\alph{enumi}}
> in your preamble

Many thanks. That works.

Gareth has pointed out how Hebrew dates and numbers need to be
changed. Can you point me to the SVN and where in the SVN I can find
the algorithm? I don't know tex but I may be able to consult with
those who do know.

I have two other questions (see file below).

Question 1: \section{\RL{\hfd להשוות אותם כלל}} will create a section
heading but the number is arabic not hebrew. Is there a similar
\renewcommand for sections and footnotes? Page numbers? etc. I did not
see this in the polyglossia manual.

Question 2: When I use \setdefaultlanguage{hebrew}, I get the error
below from xelatex.

Thanks for all the help.

====\setdefaultlanguage{hebrew} error=====
Package polyglossia Warning: No hyphenation patterns were loaded for `Hebrew'
(polyglossia)                I will use the patterns loaded for \language=0
(polyglossia)                instead on input line 7.

)
! Undefined control sequence.
<argument> \@rlmaintrue
                        \@rl at footnotetrue \let \@@oddfoot \@oddfoot \let \@@.
l.7 \setdefaultlanguage{hebrew}

?
 ===

===
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage{bidi}
\usepackage{polyglossia}
\renewcommand\theenumi{\alph{enumi}}%For Hebrew numbering of enumeration
\setdefaultlanguage{english}
\setromanfont{Adobe Garamond Pro}
\setotherlanguage[numerals=hebrew]{hebrew}
%{Ezra SIL}
\newfontinstance\hebrewfont[Script=Hebrew,Scale=1]{FrankRuehl}
\newfontfamily\hfd[Scale=0.92]{David}

\begin{document}

Hello and goodbye\footnote{English footnote}.

\begin{hebrew}
שלום אבגדהוז \LR{mixed in with english} אבגדה

\hebrewtoday

\section{\RL{\hfd להשוות אותם כלל}}
\begin{enumerate}
\item
תוכנת וורד מיועדת לעוסקיםא בהקלדה פשוטהב, עיצוב דפים שונים כמו מודעות
[א], מכתבים ושכפולים. העוסקים בהוצאה לאור של חוברות, ספרים וכדו'
("סדר" או "עימוד") חייבים לרכוש תוכנת סדר שמיועדת למטרה ספציפית זו.
הבעיה היא שתוכנות אלו עולות אלפי שקלים, וכן קשה מאד {ב} ללמוד אותן.
אין להשוות אותם כלל לפשטות השימוש בתכנת וורדג.\footnote{\RL{\hfd
להשוות אותם כלל}}
\item
תוכנת וורד מיועדת לעוסקיםא בהקלדה פשוטהב, עיצוב דפים שונים כמו מודעות
[א], מכתבים ושכפולים. העוסקים בהוצאה לאור של חוברות, ספרים וכדו'
("סדר" או "עימוד") חייבים לרכוש תוכנת סדר שמיועדת למטרה ספציפית זו.
הבעיה היא שתוכנות אלו עולות אלפי שקלים, וכן קשה מאד {ב} ללמוד אותן.
אין להשוות אותם כלל לפשטות השימוש בתכנת וורדג.
\item
תוכנת וורד מיועדת לעוסקיםא בהקלדה פשוטהב, עיצוב דפים שונים כמו מודעות
[א], מכתבים ושכפולים. העוסקים בהוצאה לאור של חוברות, ספרים וכדו'
("סדר" או "עימוד") חייבים לרכוש תוכנת סדר שמיועדת למטרה ספציפית זו.
הבעיה היא שתוכנות אלו עולות אלפי שקלים, וכן קשה מאד {ב} ללמוד אותן.
אין להשוות אותם כלל לפשטות השימוש בתכנת וורדג.

\end{enumerate}
\end{hebrew}

\end{document}


More information about the XeTeX mailing list