diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf | 590 |
1 files changed, 325 insertions, 265 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf b/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf index b8748ff7dd4..0668657cc70 100644 --- a/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf +++ b/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf @@ -12,39 +12,44 @@ %% See http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesLanguage{ukraineb}[2017/06/10 1.4 Ukrainian support for the Babel system] +\ProvidesLanguage{ukraineb}[2017/06/13 1.4a Ukrainian support for the Babel system] \LdfInit{ukrainian}{captionsukrainian} \ifdefined\if@ukr@uni@ode - \PackageError{babel}{if@ukr@uni@ode already defined.\MessageBreak - Please contact author of ukraineb.ldf} - \relax + \PackageError{babel}{if@ukr@uni@ode already defined.\MessageBreak + Please contact author of ukraineb.ldf} + \relax \fi \newif\if@ukr@uni@ode -\ifdefined\luatexversion \@ukr@uni@odetrue \else -\ifdefined\XeTeXrevision \@ukr@uni@odetrue \fi\fi +\ifdefined\luatexversion + \@ukr@uni@odetrue +\else + \ifdefined\XeTeXrevision + \@ukr@uni@odetrue + \fi +\fi \ifx\l@ukrainian\@undefined - \@nopatterns{Ukrainian} + \@nopatterns{Ukrainian} \adddialect\l@ukrainian0 \fi \def\@setcyrillicencoding{% - \def\sce@a##1##2{% - \edef\sce@b{##1}% - \edef\sce@c{##2}% - \ifx\sce@b\sce@c - \let\cyrillicencoding\sce@c - \fi}% - \def\cdp@elt##1##2##3##4{% - \sce@a{##1}{OT2}% - \sce@a{##1}{LCY}% - \sce@a{##1}{X2}% - \sce@a{##1}{T2C}% - \sce@a{##1}{T2B}% - \sce@a{##1}{T2A}% - \if@ukr@uni@ode - \sce@a{##1}{EU1}% - \sce@a{##1}{EU2}% - \fi}% - \cdp@list + \def\sce@a##1##2{% + \edef\sce@b{##1}% + \edef\sce@c{##2}% + \ifx\sce@b\sce@c + \let\cyrillicencoding\sce@c + \fi}% + \def\cdp@elt##1##2##3##4{% + \sce@a{##1}{OT2}% + \sce@a{##1}{LCY}% + \sce@a{##1}{X2}% + \sce@a{##1}{T2C}% + \sce@a{##1}{T2B}% + \sce@a{##1}{T2A}% + \if@ukr@uni@ode + \sce@a{##1}{EU1}% + \sce@a{##1}{EU2}% + \fi}% + \cdp@list } \@setcyrillicencoding \@onlypreamble\@setcyrillicencoding @@ -53,60 +58,65 @@ \@onlypreamble\sce@c \ifdefined\cyrillicencoding \else - \if@ukr@uni@ode - \ifdefined\XeTeXrevision - \edef\cyrillicencoding{EU1} - \else\ifdefined\luatexversion - \edef\cyrillicencoding{EU2} - \fi\fi - \else - \edef\cyrillicencoding{T2A} - \fi - \PackageWarning{babel}% - {No Cyrillic font encoding has been loaded so far.\MessageBreak - A font encoding should be declared before babel.\MessageBreak - Default `\cyrillicencoding' encoding will be loaded + \if@ukr@uni@ode + \ifdefined\XeTeXrevision + \edef\cyrillicencoding{EU1} + \else + \ifdefined\luatexversion + \edef\cyrillicencoding{EU2} + \fi + \fi + \else + \edef\cyrillicencoding{T2A} + \fi + \PackageWarning{babel}% + {No Cyrillic font encoding has been loaded so far.\MessageBreak + A font encoding should be declared before babel.\MessageBreak + Default `\cyrillicencoding' encoding will be loaded }% - \lowercase\expandafter{\expandafter\input\cyrillicencoding enc.def\relax}% - \AtBeginDocument{\@setcyrillicencoding} + \lowercase\expandafter{\expandafter\input\cyrillicencoding enc.def\relax}% + \AtBeginDocument{\@setcyrillicencoding} \fi \DeclareRobustCommand{\Ukrainian}{\selectlanguage{\ukrainian}} \DeclareRobustCommand{\cyrillictext}{% - \fontencoding\cyrillicencoding\selectfont - \let\encodingdefault\cyrillicencoding - \expandafter\set@hyphenmins\ukrainianhyphenmins - \language\l@ukrainian}% + \fontencoding\cyrillicencoding\selectfont + \let\encodingdefault\cyrillicencoding + \expandafter\set@hyphenmins\ukrainianhyphenmins + \language\l@ukrainian}% \let\cyr\cyrillictext \expandafter\ifx\csname T@X2\endcsname\relax\else - \DeclareTextSymbolDefault{\AA}{OT1} - \DeclareTextSymbolDefault{\aa}{OT1} - \DeclareTextCommand{\aa}{OT1}{\r a} - \DeclareTextCommand{\AA}{OT1}{\r A} + \DeclareTextSymbolDefault{\AA}{OT1} + \DeclareTextSymbolDefault{\aa}{OT1} + \DeclareTextCommand{\aa}{OT1}{\r a} + \DeclareTextCommand{\AA}{OT1}{\r A} \fi \DeclareTextFontCommand{\textcyrillic}{\cyrillictext} \@ifpackageloaded{inputenc}{% - \if@ukr@uni@ode - \PackageWarning{babel}{inputenc should not be used with LuaTeX or XeTeX} - \fi + \if@ukr@uni@ode + \PackageWarning{babel}{inputenc should not be used with LuaTeX or XeTeX} + \fi }{% - %\def\reserved@a{LWN}% - %\ifx\reserved@a\cyrillicencoding\else + %\def\reserved@a{LWN}% + %\ifx\reserved@a\cyrillicencoding\else \def\reserved@a{OT2}% - \ifx\reserved@a\cyrillicencoding\else - \def\reserved@a{EU1}% - \ifx\reserved@a\cyrillicencoding\else - \def\reserved@a{EU2}% - \ifx\reserved@a\cyrillicencoding\else - \PackageWarning{babel}% - {No input encoding specified for Ukrainian language} - \fi\fi\fi - %\fi + \ifx\reserved@a\cyrillicencoding + \else + \def\reserved@a{EU1}% + \ifx\reserved@a\cyrillicencoding\else + \def\reserved@a{EU2}% + \ifx\reserved@a\cyrillicencoding\else + \PackageWarning{babel}% + {No input encoding specified for Ukrainian language} + \fi + \fi + \fi + %\fi } \initiate@active@char{"} \begingroup \catcode`\"12 \def\reserved@a{\endgroup - \def\@SS{\mathchar"7019 } - \def\dq{"}} + \def\@SS{\mathchar"7019 } + \def\dq{"}} \reserved@a \declare@shorthand{ukrainian}{"`}{\quotedblbase} \declare@shorthand{ukrainian}{"'}{\textquotedblleft} @@ -116,188 +126,154 @@ \declare@shorthand{ukrainian}{"~}{\textormath{\leavevmode\hbox{-}}{-}} \declare@shorthand{ukrainian}{"=}{\nobreak-\hskip\z@skip} \declare@shorthand{ukrainian}{"|}{% - \textormath{\nobreak\discretionary{-}{}{\kern.03em}\allowhyphens}{}} + \textormath{\nobreak\discretionary{-}{}{\kern.03em}\allowhyphens}{}} \declare@shorthand{ukrainian}{"-}{% - \def\ukrainian@sh@tmp{% - \if\ukrainian@sh@next-\expandafter\ukrainian@sh@emdash - \else\expandafter\ukrainian@sh@hyphen\fi}% - \futurelet\ukrainian@sh@next\ukrainian@sh@tmp} + \def\ukrainian@sh@tmp{% + \if\ukrainian@sh@next-\expandafter\ukrainian@sh@emdash + \else% + \expandafter\ukrainian@sh@hyphen% + \fi}% + \futurelet\ukrainian@sh@next\ukrainian@sh@tmp} \def\ukrainian@sh@hyphen{\nobreak\-\bbl@allowhyphens} \def\ukrainian@sh@emdash#1#2{\cdash-#1#2} \def\cdash#1#2#3{\def\tempx@{#3}% -\def\tempa@{-}\def\tempb@{~}\def\tempc@{*}% - \ifx\tempx@\tempa@\@Acdash\else - \ifx\tempx@\tempb@\@Bcdash\else - \ifx\tempx@\tempc@\@Ccdash\else - \errmessage{Wrong usage of cdash}\fi\fi\fi} + \def\tempa@{-}\def\tempb@{~}\def\tempc@{*}% + \ifx\tempx@\tempa@\@Acdash% + \else% + \ifx\tempx@\tempb@\@Bcdash% + \else% + \ifx\tempx@\tempc@\@Ccdash% + \else% + \errmessage{Wrong usage of cdash} + \fi + \fi + \fi +} \def\@Acdash{\ifdim\lastskip>\z@\unskip\nobreak\hskip.2em\fi - \cyrdash\hskip.2em\ignorespaces}% + \cyrdash\hskip.2em\ignorespaces}% \def\@Bcdash{\leavevmode\ifdim\lastskip>\z@\unskip\fi - \nobreak\cyrdash\penalty\exhyphenpenalty\hskip\z@skip\ignorespaces}% + \nobreak\cyrdash\penalty\exhyphenpenalty\hskip\z@skip\ignorespaces}% \def\@Ccdash{\leavevmode - \nobreak\cyrdash\nobreak\hskip.35em\ignorespaces}% + \nobreak\cyrdash\nobreak\hskip.35em\ignorespaces}% \ProvideTextCommandDefault{\cyrdash}{\iflanguage{ukrainian}% {\hbox to.8em{--\hss--}}{\textemdash}} \declare@shorthand{ukrainian}{",}{\nobreak\hskip.2em\ignorespaces} - % - % ---------------------- Caption Names --------------------------- - % \if@ukr@uni@ode -\PackageInfo{bulgarian.ldf}{Executing the 3.9 or latter} -\StartBabelCommands*{ukrainian}{captions}[unicode, fontenc=EU1 EU2, charset=utf8] - \SetString\prefacename{Вступ}% [babel] - \SetString\refname{Література}% [only article] - \SetString\abstractname{Анотація}% [only article, report] - \SetString\bibname{Бібліоґрафія}% [only book, report] - \SetString\chaptername{Розділ}% [only book, report] - \SetString\appendixname{Додаток}% - \SetString\contentsname{Зміст}% - \SetString\tocname{\contentsname}% - \SetString\listfigurename{Перелік ілюстрацій}% - \SetString\listtablename{Перелік таблиць}% - \SetString\indexname{Предметний покажчик}% - \SetString\authorname{Іменний покажчик}% - \SetString\figurename{Рис.}% - \SetString\tablename{Таблиця}% - \SetString\partname{Частина}% - \SetString\enclname{вкл.}% - \SetString\ccname{вих.}% - \SetString\headtoname{вх.}% - \SetString\pagename{с.}% [letter] - \SetString\seename{див.}% - \SetString\alsoname{див.\ також}% - \SetString\proofname{Доведення}% [amsthm] - \SetString\glossaryname{Словник термінів}% - \SetString\acronymname{Абревіатури}% [glossaries] {Acronyms} - \SetString\lstlistingname{Лістинг}% [listings] (the environment) {Listing} - \SetString\lstlistlistingname{Лістинги}% [listings] (the "List of") {Listings} - \SetString\nomname{Позначення} - \SetString\notesname{Нотатки}% [endnotes] {Notes} - % - % ------------------------- nomencl ------------------------------ - % - \ifdefined\nomname% - \addto\captionsukrainian{% - \def\eqdeclaration#1{, див.\nobreakspace(#1)}% - \def\pagedeclaration#1{, стор.\nobreakspace#1}% - }% - \fi - % - % ------------------- RevTeX4 & RevTeX4-1 ------------------------ - % - %\@ifclassloaded{revtex4-1} - %{<true code>} - %{<false coode>}% - % - \ifnum\@ifclassloaded{revtex4}{1}{\@ifclassloaded{revtex4-1}{1}{0}}>0 - \SetString\lofname{\listfigurename} - \SetString\lotname{\listtablename} - \SetString\figuresname{Рисунки} - \SetString\tablesname{Таблиці} - \SetString\appendixesname{Додатки} - \SetString\acknowledgmentsname{Подяки} - \SetString\andname{та}%{and} - \SetString\@pacs@name{PACS коди: } - \SetString\@keys@name{Ключові слова: } - \SetString\Dated@name{Дата: } - \SetString\Received@name{Отримано } - \SetString\Revised@name{Виправлена версія } - \SetString\Accepted@name{Прийнято } - \SetString\Published@name{Опубліковано } - %}{}% - \fi - \EndBabelCommands + \PackageInfo{ukrainian.ldf}{Executing the 3.9 or latter} + \StartBabelCommands*{ukrainian}{captions}[unicode, fontenc=EU1 EU2, charset=utf8] + \SetString\prefacename{Вступ}% [babel] + \SetString\refname{Література}% [only article] + \SetString\abstractname{Анотація}% [only article, report] + \SetString\bibname{Бібліоґрафія}% [only book, report] + \SetString\chaptername{Розділ}% [only book, report] + \SetString\appendixname{Додаток}% + \SetString\contentsname{Зміст}% + \SetString\tocname{\contentsname}% + \SetString\listfigurename{Перелік ілюстрацій}% + \SetString\listtablename{Перелік таблиць}% + \SetString\indexname{Предметний покажчик}% + \SetString\authorname{Іменний покажчик}% + \SetString\figurename{Рис.}% + \SetString\tablename{Таблиця}% + \SetString\partname{Частина}% + \SetString\enclname{вкл.}% + \SetString\ccname{вих.}% + \SetString\headtoname{вх.}% + \SetString\pagename{с.}% [letter] + \SetString\seename{див.}% + \SetString\alsoname{див.\ також}% + \SetString\proofname{Доведення}% [amsthm] + \SetString\glossaryname{Словник термінів}% + \SetString\acronymname{Абревіатури}% [glossaries] {Acronyms} + \SetString\lstlistingname{Лістинг}% [listings] (the environment) {Listing} + \SetString\lstlistlistingname{Лістинги}% [listings] (the "List of") {Listings} + \SetString\nomname{Позначення} + \SetString\notesname{Нотатки}% [endnotes] {Notes} + \ifdefined\nomname% + \addto\captionsukrainian{% + \def\eqdeclaration#1{, див.\nobreakspace(#1)}% + \def\pagedeclaration#1{, стор.\nobreakspace#1}% + }% + \fi + \EndBabelCommands \else -\StartBabelCommands*{ukrainian}{captions} - \SetString\prefacename{{\cyr\CYRV\cyrs\cyrt\cyru\cyrp}}% - \SetString\refname{% - {\cyr\CYRL\cyrii\cyrt\cyre\cyrr\cyra\cyrt\cyru\cyrr\cyra}}% - \SetString\abstractname{% - {\cyr\CYRA\cyrn\cyro\cyrt\cyra\cyrc\cyrii\cyrya}}% - \SetString\bibname{% - {\cyr\CYRB\cyrii\cyrb\cyrl\cyrii\cyro\cyrgup\cyrr\cyra\cyrf\cyrii\cyrya}}% - \SetString\chaptername{{\cyr\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}}% - \SetString\appendixname{{\cyr\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}}% - \SetString\contentsname{{\cyr\CYRZ\cyrm\cyrii\cyrs\cyrt}}% - \SetString\tocname{\contentsname} - \SetString\listfigurename{{\cyr\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk - \ \cyrii\cyrl\cyryu\cyrs\cyrt\cyrr\cyra\cyrc\cyrii\cyrishrt}}% - \SetString\listtablename{{\cyr\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk - \ \cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrsftsn}}% - \SetString\indexname{{\cyr\CYRP\cyrr\cyre\cyrd\cyrm\cyre\cyrt\cyrn\cyri\cyrishrt - \ \cyrp\cyro\cyrk\cyra\cyrzh\cyrch\cyri\cyrk}}% - \SetString\authorname{{\cyr\CYRII\cyrm\cyre\cyrn\cyrn\cyri\cyrishrt - \ \cyrp\cyro\cyrk\cyra\cyrzh\cyrch\cyri\cyrk}}% - \SetString\figurename{{\cyr\CYRR\cyri\cyrs.}}% - \SetString\tablename{{\cyr\CYRT\cyra\cyrb\cyrl.}}% - \SetString\partname{{\cyr\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyra}}% - \SetString\enclname{{\cyr\cyrv\cyrk\cyrl\cyra\cyrd\cyrk\cyra}}% - \SetString\ccname{{\cyr\cyrk\cyro\cyrp\cyrii\cyrya}}% - \SetString\headtoname{{\cyr\cyrv\cyrh.}}% - \SetString\pagename{{\cyr\cyrs.}}% - \SetString\seename{{\cyr\cyrd\cyri\cyrv.}}% - \SetString\alsoname{{\cyr\cyrd\cyri\cyrv.\ \cyrt\cyra\cyrk\cyro\cyrzh}} - \SetString\proofname{{\cyr\CYRD\cyro\cyrv\cyre\cyrd\cyre\cyrn\cyrn\cyrya}}% - \SetString\glossaryname{{\cyr\CYRS\cyrl\cyro\cyrv\cyrn\cyri\cyrk - \ \cyrt\cyre\cyrr\cyrm\cyrii\cyrn\cyrii\cyrv}}% - \SetString\nomname{\CYRP\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% - \SetString\notesname{\CYRN\cyro\cyrt\cyra\cyrt\cyrk\cyri}% - % - % ------------------- RevTeX4 & RevTeX4-1 ------------------------ - % - \ifnum \@ifclassloaded{revtex4}{1}{\@ifclassloaded{revtex4-1}{1}{0}}>0 - \SetString\lofname{\listfigurename} - \SetString\lotname{\listtablename} - \SetString\figuresname{\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri} - \SetString\tablesname{\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii} - \SetString\appendixesname{\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri} - \SetString\acknowledgmentsname{\CYRP\cyro\cyrd\cyrya\cyrk\cyri} - \SetString\andname{\cyrt\cyra}%{and} - \SetString\@pacs@name{PACS \cyrk\cyro\cyrd\cyri: } - \SetString\@keys@name{\CYRK\cyrl\cyryu\cyrch\cyro\cyrv\cyrii - \ \cyrs\cyrl\cyro\cyrv\cyra: } - \SetString\Dated@name{\CYRD\cyra\cyrt\cyra: } - \SetString\Received@name{\CYRO\cyrt\cyrr\cyri\cyrm\cyra\cyrn\cyro } - \SetString\Revised@name{\CYRV\cyri\cyrp\cyrr\cyra\cyrv\cyrl\cyre\cyrn\cyro } - \SetString\Accepted@name{\CYRP\cyrr\cyri\cyrishrt\cyrn\cyrya\cyrt\cyro }% - \SetString\Published@name{\CYRO\cyrp\cyru\cyrb\cyrl\cyrii\cyrk\cyro\cyrv\cyra\cyrn\cyro } - \fi - \EndBabelCommands + \StartBabelCommands*{ukrainian}{captions} + \SetString\prefacename{{\cyr\CYRV\cyrs\cyrt\cyru\cyrp}}% + \SetString\refname{% + {\cyr\CYRL\cyrii\cyrt\cyre\cyrr\cyra\cyrt\cyru\cyrr\cyra}}% + \SetString\abstractname{% + {\cyr\CYRA\cyrn\cyro\cyrt\cyra\cyrc\cyrii\cyrya}}% + \SetString\bibname{% + {\cyr\CYRB\cyrii\cyrb\cyrl\cyrii\cyro\cyrgup\cyrr\cyra\cyrf\cyrii\cyrya}}% + \SetString\chaptername{{\cyr\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}}% + \SetString\appendixname{{\cyr\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}}% + \SetString\contentsname{{\cyr\CYRZ\cyrm\cyrii\cyrs\cyrt}}% + \SetString\tocname{\contentsname} + \SetString\listfigurename{{\cyr\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk + \ \cyrii\cyrl\cyryu\cyrs\cyrt\cyrr\cyra\cyrc\cyrii\cyrishrt}}% + \SetString\listtablename{{\cyr\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk + \ \cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrsftsn}}% + \SetString\indexname{{\cyr\CYRP\cyrr\cyre\cyrd\cyrm\cyre\cyrt\cyrn\cyri\cyrishrt + \ \cyrp\cyro\cyrk\cyra\cyrzh\cyrch\cyri\cyrk}}% + \SetString\authorname{{\cyr\CYRII\cyrm\cyre\cyrn\cyrn\cyri\cyrishrt + \ \cyrp\cyro\cyrk\cyra\cyrzh\cyrch\cyri\cyrk}}% + \SetString\figurename{{\cyr\CYRR\cyri\cyrs.}}% + \SetString\tablename{{\cyr\CYRT\cyra\cyrb\cyrl.}}% + \SetString\partname{{\cyr\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyra}}% + \SetString\enclname{{\cyr\cyrv\cyrk\cyrl\cyra\cyrd\cyrk\cyra}}% + \SetString\ccname{{\cyr\cyrk\cyro\cyrp\cyrii\cyrya}}% + \SetString\headtoname{{\cyr\cyrv\cyrh.}}% + \SetString\pagename{{\cyr\cyrs.}}% + \SetString\seename{{\cyr\cyrd\cyri\cyrv.}}% + \SetString\alsoname{{\cyr\cyrd\cyri\cyrv.\ \cyrt\cyra\cyrk\cyro\cyrzh}} + \SetString\proofname{{\cyr\CYRD\cyro\cyrv\cyre\cyrd\cyre\cyrn\cyrn\cyrya}}% + \SetString\glossaryname{{\cyr\CYRS\cyrl\cyro\cyrv\cyrn\cyri\cyrk + \ \cyrt\cyre\cyrr\cyrm\cyrii\cyrn\cyrii\cyrv}}% + \SetString\acronymname{\cyr\CYRA\cyrb\cyrr\cyre\cyrv\cyrii\cyra\cyrt\cyru\cyri\cyri}% + \SetString\lstlistingname{\cyr\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg}% + \SetString\lstlistlistingname{\cyr\CYRL\cyrii\cyrs\cyrt\cyri\cyrn\cyrg\cyri}% + \SetString\nomname{\CYRP\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}% + \SetString\notesname{\CYRN\cyro\cyrt\cyra\cyrt\cyrk\cyri}% + \EndBabelCommands \fi - % - % ---------------------- Date --------------------------- - % \if@ukr@uni@ode -\PackageInfo{bulgarian.ldf}{Executing the post 3.9 branch for dates} -\StartBabelCommands*{ukrainian}{date}[unicode, fontenc=EU1 EU2, charset=utf8] -\SetStringLoop{month#1name}{% -січня,лютого,березня,квітня,травня,червня,% -липня,серпня,вересня,жовтня,листопада,грудня} - -\SetStringLoop{weekday#1name}{% -понеділок,вівторок,середа,четвер,п'ятниця,субота,неділя} - -\SetString\abbgyear{р.} + \PackageInfo{ukrainian.ldf}{Executing the post 3.9 branch for dates} + \StartBabelCommands*{ukrainian}{date}[unicode, fontenc=EU1 EU2, charset=utf8] + \SetStringLoop{month#1name}{% + січня,% + лютого,% + березня,% + квітня,% + травня,% + червня,% + липня,% + серпня,% + вересня,% + жовтня,% + листопада,% + грудня% + } + \SetString\abbgyear{р.} \else -\StartBabelCommands*{ukrainian}{date} -\SetStringLoop{month#1name}{% -\cyrs\cyrii\cyrch\cyrn\cyrya,% -\cyrl\cyryu\cyrt\cyro\cyrg\cyro,% -\cyrb\cyre\cyrr\cyre\cyrz\cyrn\cyrya,% -\cyrk\cyrv\cyrii\cyrt\cyrn\cyrya,% -\cyrt\cyrr\cyra\cyrv\cyrn\cyrya,% -\cyrch\cyre\cyrr\cyrv\cyrn\cyrya,% -\cyrl\cyri\cyrp\cyrn\cyrya,% -\cyrs\cyre\cyrr\cyrp\cyrn\cyrya,% -\cyrv\cyre\cyrr\cyre\cyrs\cyrn\cyrya,% -\cyrzh\cyro\cyrv\cyrt\cyrn\cyrya,% -\cyrl\cyri\cyrs\cyrt\cyro\cyrp\cyra\cyrd\cyra,% -\cyrg\cyrr\cyru\cyrd\cyrn\cyrya% -}% -\SetString\abbgyear{\cyrr.} + \StartBabelCommands*{ukrainian}{date} + \SetStringLoop{month#1name}{% + \cyrs\cyrii\cyrch\cyrn\cyrya,% + \cyrl\cyryu\cyrt\cyro\cyrg\cyro,% + \cyrb\cyre\cyrr\cyre\cyrz\cyrn\cyrya,% + \cyrk\cyrv\cyrii\cyrt\cyrn\cyrya,% + \cyrt\cyrr\cyra\cyrv\cyrn\cyrya,% + \cyrch\cyre\cyrr\cyrv\cyrn\cyrya,% + \cyrl\cyri\cyrp\cyrn\cyrya,% + \cyrs\cyre\cyrr\cyrp\cyrn\cyrya,% + \cyrv\cyre\cyrr\cyre\cyrs\cyrn\cyrya,% + \cyrzh\cyro\cyrv\cyrt\cyrn\cyrya,% + \cyrl\cyri\cyrs\cyrt\cyro\cyrp\cyra\cyrd\cyra,% + \cyrg\cyrr\cyru\cyrd\cyrn\cyrya% + }% + \SetString\abbgyear{\cyrr.} \fi -\SetString\today{\number\day\,\csname month\romannumeral\month name\endcsname\space -\number\year\,\abbgyear} +\SetString\today{\number\day~\csname month\romannumeral\month name\endcsname\space + \number\year~\abbgyear} \EndBabelCommands \providehyphenmins{\CurrentOption}{\tw@\tw@} \providehyphenmins{ukrainian}{\tw@\tw@} @@ -310,39 +286,53 @@ \addto\noextrasukrainian{\bbl@nonfrenchspacing} \addto\extrasukrainian{ -\babel@save{\@Alph} -\if@ukr@uni@ode - \def\@Alph#1{\ifcase#1\or - А\or Б\or В\or Г\or Д\or Е\or Ж\or - И\or К\or Л\or М\or Н\or П\or Р\or - С\or Т\or У\or Ф\or Х\or Ц\or Ш\or - Щ\or Ю\or Я\else\@ctrerr\fi} -\else - \def\@Alph#1{\ifcase#1\or - \CYRA\or\CYRB\or\CYRV\or\CYRG\or\CYRD\or\CYRE\or\CYRZH\or - \CYRI\or\CYRK\or\CYRL\or\CYRM\or\CYRN\or\CYRP\or\CYRR\or - \CYRS\or\CYRT\or\CYRU\or\CYRF\or\CYRH\or\CYRC\or\CYRSH\or - \CYRSHCH\or\CYRYU\or\CYRYA\else\@ctrerr\fi} -\fi + \babel@save{\@Alph} + \if@ukr@uni@ode + \def\@Alph#1{% + \ifcase#1\or% + А\or Б\or В\or Г\or Д\or Е\or Ж\or% + И\or К\or Л\or М\or Н\or П\or Р\or% + С\or Т\or У\or Ф\or Х\or Ц\or Ш\or% + Щ\or Ю\or Я% + \else% + \@ctrerr% + \fi} + \else + \def\@Alph#1{% + \ifcase#1\or% + \CYRA\or\CYRB\or\CYRV\or\CYRG\or\CYRD\or\CYRE\or\CYRZH\or% + \CYRI\or\CYRK\or\CYRL\or\CYRM\or\CYRN\or\CYRP\or\CYRR\or% + \CYRS\or\CYRT\or\CYRU\or\CYRF\or\CYRH\or\CYRC\or\CYRSH\or% + \CYRSHCH\or\CYRYU\or\CYRYA% + \else% + \@ctrerr% + \fi} + \fi } \addto\extrasukrainian{ -\babel@save{\@alph} -\if@ukr@uni@ode - \def\@alph#1{\ifcase#1\or - а\or б\or в\or г\or д\or е\or ж\or - и\or к\or л\or м\or н\or п\or р\or - с\or т\or у\or ф\or х\or ц\or ш\or - щ\or ю\or я\else\@ctrerr\fi} -\else - \def\@alph#1{\ifcase#1\or - \cyra\or\cyrb\or\cyrv\or\cyrg\or\cyrd\or\cyre\or\cyrzh\or - \cyri\or\cyrk\or\cyrl\or\cyrm\or\cyrn\or\cyrp\or\cyrr\or - \cyrs\or\cyrt\or\cyru\or\cyrf\or\cyrh\or\cyrc\or\cyrsh\or - \cyrshch\or\cyryu\or\cyrya\else\@ctrerr\fi} -\fi + \babel@save{\@alph} + \if@ukr@uni@ode + \def\@alph#1{% + \ifcase#1\or% + а\or б\or в\or г\or д\or е\or ж\or% + и\or к\or л\or м\or н\or п\or р\or% + с\or т\or у\or ф\or х\or ц\or ш\or% + щ\or ю\or я% + \else% + \@ctrerr% + \fi} + \else + \def\@alph#1{% + \ifcase#1\or% + \cyra\or\cyrb\or\cyrv\or\cyrg\or\cyrd\or\cyre\or\cyrzh\or% + \cyri\or\cyrk\or\cyrl\or\cyrm\or\cyrn\or\cyrp\or\cyrr\or% + \cyrs\or\cyrt\or\cyru\or\cyrf\or\cyrh\or\cyrc\or\cyrsh\or% + \cyrshch\or\cyryu\or\cyrya% + \else% + \@ctrerr% + \fi} + \fi } -\DeclareRobustCommand{\No}{% - \ifmmode{\nfss@text{\textnumero}}\else\textnumero\fi} \def\sh{\mathop{\operator@font sh}\nolimits} \def\ch{\mathop{\operator@font ch}\nolimits} \def\tg{\mathop{\operator@font tg}\nolimits} @@ -350,13 +340,15 @@ \def\arctg{\mathop{\operator@font arctg}\nolimits} \def\arcctg{\mathop{\operator@font arcctg}\nolimits} \addto\extrasukrainian{% - \babel@save{\th}% - \let\ltx@th\th - \def\th{\textormath{\ltx@th}% - {\mathop{\operator@font th}\nolimits}}% - } + \babel@save{\th}% + \let\ltx@th\th + \def\th{\textormath{\ltx@th}% + {\mathop{\operator@font th}\nolimits}}% +} \def\cth{\mathop{\operator@font cth}\nolimits} \def\cosec{\mathop{\operator@font cosec}\nolimits} +\DeclareRobustCommand{\No}{% + \ifmmode{\nfss@text{\textnumero}}\else\textnumero\fi} \ldf@finish{ukrainian} %% %% \CharacterTable @@ -376,6 +368,74 @@ %% Right brace \} Tilde \~} %% +%% Nonunicode Cyrillic Letters +%% \CYRA=А +%% \CYRB=Б +%% \CYRV=В +%% \CYRG=Г +%% \CYRGUP=Ґ +%% \CYRD=Д +%% \CYRE=Е +%% \CYRIE=Є +%% \CYRZH=Ж +%% \CYRZ=З +%% \CYRI=И +%% \CYRII=I +%% \CYRYI=Ї +%% \CYRISHRT=Й +%% \CYRK=К +%% \CYRL=Л +%% \CYRM=М +%% \CYRN=Н +%% \CYRO=О +%% \CYRP=П +%% \CYRR=Р +%% \CYRS=С +%% \CYRT=Т +%% \CYRU=У +%% \CYRF=Ф +%% \CYRH=Х +%% \CYRC=Ц +%% \CYRCH=Ч +%% \CYRSH=Ш +%% \CYRSHCH=Щ +%% \CYRYU=Ю +%% \CYRYA=Я +%% \CYRSFTSN=Ь +%% +%% \cyra=а +%% \cyrb=б +%% \cyrv=в +%% \cyrg=г +%% \cyrgup=ґ +%% \cyrd=д +%% \cyre=е +%% \cyrie=є +%% \cyrzh=ж +%% \cyrz=з +%% \cyri=и +%% \cyrii=i +%% \cyryi=ї +%% \cyrishrt=й +%% \cyrk=к +%% \cyrl=л +%% \cyrm=м +%% \cyrn=н +%% \cyro=о +%% \cyrp=п +%% \cyrr=р +%% \cyrs=с +%% \cyrt=т +%% \cyru=у +%% \cyrf=ф +%% \cyrh=х +%% \cyrc=ц +%% \cyrch=ч +%% \cyrsh=ш +%% \cyrshch=щ +%% \cyryu=ю +%% \cyrya=я +%% \cyrsftsn=ь %% ---------------------------------------------------------------- %% Copyright 2017 Sergiy М. Ponomarenko %% Copyright 2011-2017 Igor A. Kotelnikov. |