[XeTeX] polyglossia and hebrew: arabic numerals and hyphenation

Avi Wollman avi.wollman at gmail.com
Fri Sep 25 22:52:41 CEST 2009


this worked for me.
- Avi


\documentclass[a4paper,12pt]{article}
\TeXXeTstate=1

\usepackage{xltxtra}
\usepackage{pdfsync}
\usepackage{bidi}
\usepackage{xltxtra,fontspec,xunicode}

\setmainfont{Arial}
\newfontfamily{\sbl}[Mapping=tex-text%
      ,HyphenChar="5BE%
      ,Script=Hebrew]{SBLHebrew}

\begin{document}
\setRL

\end{document}


On 9/25/09, Marco Pessotto <marco at angrynerds.com> wrote:
> Hi!
>
> I'm trying to typeset some hebrew documents, but I'm encountering the
> following problems: this is the minimal document.
>
> \documentclass[a4paper,12pt,final]{book}
> \usepackage{fontspec}
> \usepackage{bidi}
> \usepackage{xunicode}
> \usepackage{xltxtra}
> \setmainfont[Mapping=tex-text]{Linux Libertine O}
> \usepackage{polyglossia}
> \setdefaultlanguage[numerals=hebrew]{hebrew}
> \setmainfont{Linux Libertine O}
>
> \begin{document}
> \setRL
> \tableofcontents
>
> \chapter{זאת פיסת טקסט}
> זאת פיסת טקסט
> זאת פיסת טקסט
> \today
>
> \end{document}
>
> when I compile it, it works, even if I get the warning about missing
> hyphenation patters. I've searched the internet for hours without any
> success. The package hyphen-hebrew doesn't seem to exist on texlive
> 2008 and 2009 (both are full installations). Where am I doing it wrong?
>
> The other, probably worse problem is that switching to numerals=arabic
> fails. Rumors says that hebrew numerals in modern hebrew are something
> “weird”.
>
> 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.
>
> ) (./prova.aux) (./prova.toc) [1] [2]
> ! Use of \@chapter doesn't match its definition.
> \protected at write ...le at protect \edef \reserved at a {
>                                                   \write
> 						  #1{#3}}\reserved at a
> 						  ...
> l.15 \chapter{זאת פיסת טקסט}
>
> ?
>
> This happens both on texlive 2008 and 2009-pretest, full install.
>
> Best regards.
>
> --
> Marco
>
>


-- 
--------------------------------------------------------
Avi Wollman אבי וולמן
http://www.google.com/profiles/avi.wollman
--------------------------------------------------------


More information about the XeTeX mailing list