summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/gloss-amharic.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-amharic.ldf')
-rw-r--r--Master/texmf-dist/tex/xelatex/polyglossia/gloss-amharic.ldf45
1 files changed, 9 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-amharic.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-amharic.ldf
index a3939892f1d..7dbc124d9bb 100644
--- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-amharic.ldf
+++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-amharic.ldf
@@ -1,11 +1,14 @@
-%% RENAME TO gloss-amharic.ldf
\ProvidesFile{gloss-amharic.ldf}[polyglossia: module for amharic]
\makeatletter
-
-\ifx\l@amharic\@undefined%
- %\xpg@nopatterns{Amharic}%
- \adddialect\l@amharic\l@nohyphenation%
-\fi
+\PolyglossiaSetup{amharic}{
+ script=Ethiopic,
+ scripttag=ethi,
+ langtag=AMH,
+ hyphennames={amharic,nohyphenation},
+ %hyphenmins={2,2},
+ fontsetup=true,
+ %TODO localalph=ethnum
+}
\def\captionsamharic{%
\def\refname{የነሥ ጹሁፍ ምንጭ}%
@@ -199,33 +202,3 @@
\ethnum@five%
}
-\def\amharic@font{%
- \@ifundefined{amharicfont}{%
- \normalfontlatin%
- \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt
- \@ifundefined{ethiopicfont}{%
- \zf@check@ot@script{ethi}%
- \if@tempswa
- \addfontfeature{Script=Ethiopic}%
- \else
- \PackageError{polyglossia}{^^J
- The current font does not contain the Ethiopic script!^^J
- Please define \string\ethiopicfont\space or \string\amharicfont\space with \string\newfontfamily}%
- \fi
- \zf@check@ot@lang{AMH}%
- \if@tempswa\addfontfeature{Language=Amharic}\fi
- }%
- {\ethiopicfont%
- \zf@check@ot@lang{AMH}%
- \if@tempswa\addfontfeature{Language=Amharic}\fi
- }}%
- {\amharicfont}%
-}
-
-\def\selectnormalfontamharic{%
- \let\normalfont=\amharic@font%
- \def\reset@font{\normalfont}}
-
-\def\amharic@language{\language=\l@amharic}
-
-