summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/gloss-ukrainian.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-ukrainian.ldf')
-rw-r--r--Master/texmf-dist/tex/xelatex/polyglossia/gloss-ukrainian.ldf54
1 files changed, 10 insertions, 44 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-ukrainian.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-ukrainian.ldf
index a96a838d825..e49232faf15 100644
--- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-ukrainian.ldf
+++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-ukrainian.ldf
@@ -1,35 +1,17 @@
\ProvidesFile{gloss-ukrainian.ldf}[polyglossia: module for ukrainian]
% Strings taken from Babel
% and revised by Roman Kyrylych
-%
\makeatletter
-\ifx\l@ukrainian\@undefined%
- \xpg@nopatterns{Ukrainian}%
- \adddialect\l@ukrainian\l@nohyphenation%
-\fi
-
-\def\ukrainian@font{%
- \@ifundefined{ukrainianfont}{%
- \@ifundefined{cyrillicfont}{%
- \normalfontlatin%
- \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt
- \zf@check@ot@script{cyrl}%
- \if@tempswa
- \addfontfeature{Script=Cyrillic}%
- \else
- \PackageError{polyglossia}{^^J
- The current font does not contain the Cyrillic script!^^J
- Please define \string\cyrillicfont\space or \string\ukrainianfont\space with \newfontfamily}%
- \fi
- \zf@check@ot@lang{UKR}%
- \if@tempswa\addfontfeature{Language=Ukrainian}\fi
- }%
- {\cyrillicfont%
- \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt
- \zf@check@ot@lang{UKR}%
- \if@tempswa\addfontfeature{Language=Ukrainian}\fi}}%
- {\ukrainianfont}%
+\PolyglossiaSetup{ukrainian}{
+ script=Cyrillic,
+ scripttag=cyrl,
+ langtag=UKR,
+ hyphennames={ukrainian},
+ hyphenmins={2,2},
+ frenchspacing=true,
+ fontsetup=true
+ %TODO localalph
}
\def\captionsukrainian{%
@@ -89,29 +71,13 @@
\let\latin@alph\@alph%
\let\@Alph\ukrainian@Alph%
\let\@alph\ukrainian@alph%
- }
+}
\def\noukrainian@numbers{%
\let\@Alph\latin@Alph%
\let\@alph\latin@alph%
}
-\def\ukrainian@language{\language=\l@ukrainian}
-
-\setlocalhyphenmins{ukrainian}{2}{2}%
-
-\def\noextras@ukrainian{%
- \nonfrenchspacing%
- }
-
-\def\blockextras@ukrainian{%
- \frenchspacing%
- }
-
-\def\inlineextras@ukrainian{%
- \frenchspacing%
- }
-
\endinput
%TODO? stuff from Babel