diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-hebrew.ldf')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/gloss-hebrew.ldf | 67 |
1 files changed, 9 insertions, 58 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-hebrew.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-hebrew.ldf index bcf860ad2ee..b5766d59060 100644 --- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-hebrew.ldf +++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-hebrew.ldf @@ -3,12 +3,15 @@ \RequirePackage{hebrewcal} \makeatletter -\ifx\l@hebrew\@undefined - %\xpg@nopatterns{Hebrew}% - \adddialect\l@hebrew\l@nohyphenation -\fi - -\def\hebrew@RL{\relax} +\PolyglossiaSetup{hebrew}{ + script=Hebrew, + direction=RL, + scripttag=hebr, + hyphennames={nohyphenation}, + fontsetup=true, + %TODO localalph={hebrewnumeral,Hebrewnumeral} + %digits = hebrewnumber +} \newif\if@calendar@hebrew \def\tmp@hebrew{hebrew} @@ -82,7 +85,6 @@ \if@hebrew@numerals \protect\hebrewnumeral{#1}% \else - %%\RL{\protect\reset@font\protect\number#1}% \number#1% \fi } @@ -108,57 +110,6 @@ \renewcommand\thefootnote{\protect\number{\c@footnote}}% } -\def\hebrew@language{\language=\l@hebrew} - -\def\hebrew@font{% - \@ifundefined{hebrewfont}{% - \normalfontlatin% - \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt - \zf@check@ot@script{hebr}% - \if@tempswa - \addfontfeature{Script=Hebrew}% - \else - \PackageError{polyglossia}{^^J - The current font does not contain the Hebrew script!^^J - Please define \string\hebrewfont\space with \string\newfontfamily}% - \fi}% - {\hebrewfont}% -} - -% TODO add setup to define Sans and Mono Hebrew fonts if desired -\def\hebrew@font@sf{% - \@ifundefined{hebrewfontsf}{% -% \sffamilylatin% FIXME -% \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt -% \zf@check@ot@script{arab}% -% \if@tempswa% -% \addfontfeature{Script=Hebrew}% -% \else% - \hebrew@font% -% \fi% - }% - {\hebrewfontsf}% -} -\def\hebrew@font@tt{% - \@ifundefined{hebrewfonttt}{% -% \ttfamilylatin% FIXME -% \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt -% \zf@check@ot@script{arab}% -% \if@tempswa% -% \addfontfeature{Script=Hebrew}% -% \else% - \hebrew@font% -% \fi% - }% - {\hebrewfonttt}% -} -\def\selectnormalfonthebrew{% - \let\normalfont=\hebrew@font% - \let\rmfamily=\hebrew@font% - \let\sffamily=\hebrew@font@sf% - \let\ttfamily=\hebrew@font@tt% - \def\reset@font{\normalfont}} - \def\blockextras@hebrew{% \let\@@MakeUppercase\MakeUppercase% \def\MakeUppercase##1{##1}% |