diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-divehi.ldf')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/gloss-divehi.ldf | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-divehi.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-divehi.ldf new file mode 100644 index 00000000000..7dccadabab0 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-divehi.ldf @@ -0,0 +1,73 @@ +\ProvidesFile{gloss-divehi.ldf}[polyglossia: module for divehi] +\RequirePackage{bidi} +\makeatletter + +\ifx\l@divehi\@undefined% + \xpg@nopatterns{Divehi}% + \adddialect\l@divehi0% +\fi + +\def\divehi@RL{\relax} + +%\def\captionsdivehi{% +% \def\refname{\textdivehi{<++>}}% +% \def\abstractname{\textdivehi{<++>}}% +% \def\bibname{\textdivehi{<++>}}% +% \def\prefacename{\textdivehi{<++>}}% +% \def\chaptername{\textdivehi{<++>}}% +% \def\appendixname{\textdivehi{<++>}}% +% \def\contentsname{\textdivehi{<++>}}% +% \def\listfigurename{\textdivehi{<++>}}% +% \def\listtablename{\textdivehi{<++>}}% +% \def\indexname{\textdivehi{<++>}}% +% \def\figurename{\textdivehi{<++>}}% +% \def\tablename{\textdivehi{<++>}}% +% \def\thepart{\textdivehi{}}% +% \def\partname{\textdivehi{<++>}}% +% \def\pagename{\textdivehi{<++>}}% +% \def\seename{\textdivehi{<++>}}% +% \def\alsoname{\textdivehi{<++>}}% +% \def\enclname{\textdivehi{<++>}}% +% \def\ccname{\textdivehi{<++>}}% +% \def\headtoname{\textdivehi{<++>}}% +% \def\proofname{\textdivehi{<++>}}% +% \def\glossaryname{\textdivehi{<++>}}% +% } +%\def\datedivehi{\def\today{\textdivehi{<++>}}} + +\def\divehi@language{\protect\language=\l@divehi} + +\def\divehi@font{% +\font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt +\@ifundefined{divehifont}{% + \@ifundefined{thaanafont}{% + \zf@check@ot@script{thaa}% + \if@tempswa% + \addfontfeature{Script=Thaana}% + \else% + \PackageError{polyglossia}{^^J + The current font does not contain the Thaana script!^^J + Please define \string\thaanafont\space or \string\divehifont\space with \string\newfontfamily}% + \fi% + }% + {\thaanafont}}% +{\divehifont}% +} + +\def\selectnormalfontdivehi{% + \let\normalfont=\divehi@font% + \let\rmfamily=\divehi@font% + % TODO add setup to define Sans and Mono fonts if desired + \let\sffamily=\divehi@font% + \let\ttfamily=\divehi@font% + \def\reset@font{\normalfont}} + +\def\blockextras@divehi{% + \let\@@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% + } +\def\noextras@divehi{% + \let\MakeUppercase\@@MakeUppercase% + } + +\endinput |