diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-bulgarian.ldf')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/gloss-bulgarian.ldf | 55 |
1 files changed, 10 insertions, 45 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bulgarian.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bulgarian.ldf index 5d7a8d9fc2d..af105ba28c8 100644 --- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bulgarian.ldf +++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bulgarian.ldf @@ -1,10 +1,15 @@ \ProvidesFile{gloss-bulgarian.ldf}[polyglossia: module for bulgarian] \makeatletter - -\ifx\l@bulgarian\@undefined% - \xpg@nopatterns{Bulgarian}% - \adddialect\l@bulgarian\l@nohyphenation% -\fi +\PolyglossiaSetup{bulgarian}{ + script=Cyrillic, + scripttag=cyrl, + langtag=BGR, + hyphennames={bulgarian}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup + %TODO localalph=bulgarian@alph +} \def\bulgarian@Alph#1{% \ifcase#1\or @@ -79,46 +84,6 @@ \def\todayRoman{\number\day.\,\month@Roman.\,\number\year~г.}% } -\def\bulgarian@language{\language=\l@bulgarian} - -\def\bulgarian@font{% - \@ifundefined{bulgarianfont}{% - \@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\bulgarianfont\space with \string\newfontfamily}% - \fi - \zf@check@ot@lang{BGR}% - \if@tempswa\addfontfeature{Language=Bulgarian}\fi - }% - {\cyrillicfont% - \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt - \zf@check@ot@lang{BGR}% - \if@tempswa\addfontfeature{Language=Bulgarian}\fi - }}% - {\bulgarianfont}% -} - -\setlocalhyphenmins{bulgarian}{2}{2}% - -\def\noextras@bulgarian{% - \nonfrenchspacing% - } - -\def\blockextras@bulgarian{% - \frenchspacing% - } - -\def\inlineextras@bulgarian{% - \frenchspacing% - } - \endinput %% TODO? |