summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/babel-ukrainian
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-06-07 21:23:07 +0000
committerKarl Berry <karl@freefriends.org>2017-06-07 21:23:07 +0000
commit1e3a7859dea72a78754680e3f6232057cd34ca15 (patch)
tree20f2d82d0cba0dee8115550658ab36fcf0bd1df7 /Master/texmf-dist/tex/generic/babel-ukrainian
parent74844b4cfc5378aa9f0baf166f16ca24c14bb245 (diff)
ukrainian (7jun17)
git-svn-id: svn://tug.org/texlive/trunk@44521 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel-ukrainian')
-rw-r--r--Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf542
1 files changed, 314 insertions, 228 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf b/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf
index cbd1d6d5fff..9b5507c6288 100644
--- a/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf
+++ b/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf
@@ -5,137 +5,213 @@
%% The original source files were:
%%
%% ukraineb.dtx (with options: `code')
-%% This is a generated file.
-%%
-%% Copyright 1989-2008 Johannes L. Braams and any individual authors
-%% listed elsewhere in this file. All rights reserved.
-%%
-%% This file was generated from file(s) of the Babel system.
-%% ---------------------------------------------------------
-%%
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of LaTeX
-%% version 2003/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% The Current Maintainer of this work is Johannes Braams.
-%%
-%% This file may only be distributed together with a copy of the Babel
-%% system. You may however distribute the Babel system without
-%% such generated files.
-%%
-%% The list of all files belonging to the Babel distribution is
-%% given in the file `manifest.bbl'. See also `legal.bbl for additional
-%% information.
-%%
-%% The list of derived (unpacked) files belonging to the distribution
-%% and covered by LPPL is defined by the unpacking scripts (with
-%% extension .ins) which are part of the distribution.
-\ProvidesLanguage{ukraineb}
- [2008/03/21 v1.1l Ukrainian support from the babel system]
-%% File `ukraineb.dtx'
-%% Babel package for LaTeX version 2e
-%% Copyright (C) 1989 - 2008
-%% by Johannes Braams, TeXniek
-%% ukraineb Language Definition File
-%% Copyright (C) 1997 - 2008
-%% by Andrij Shvaika ashv at icmp.lviv.ua
-%% derived from the Russianb Language Definition File
-%% Copyright (C) 1995 - 2008
-%% by Olga Lapko cyrtug at mir.msk.su
-%% Johannes Braams, TeXniek
-%% Please report errors to: J.L. Braams
-%% babel at braams.xs4all.nl
+%% ----------------------------------------------------------------
+%% Ukrainian Language Support for the Babel package
+%% E-mail: sergiy.ponomarenko@gmailcom
+%% Released under the LaTeX Project Public License v1.3c or later
+%% See http://www.latex-project.org/lppl.txt
+%% ----------------------------------------------------------------
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesLanguage{ukraineb}[2017/06/06 1.3h 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
+\fi
+\newif\if@ukr@uni@ode
+\ifdefined\luatexversion \@ukr@uni@odetrue \else
+\ifdefined\XeTeXrevision \@ukr@uni@odetrue \fi\fi
\ifx\l@ukrainian\@undefined
\@nopatterns{Ukrainian}
\adddialect\l@ukrainian0
\fi
-\let\latinencoding\cf@encoding
-\def\reserved@a#1#2{%
- \edef\reserved@b{#1}%
- \edef\reserved@c{#2}%
- \ifx\reserved@b\reserved@c
- \let\cyrillicencoding\reserved@c
- \fi}
-\def\cdp@elt#1#2#3#4{%
- \reserved@a{#1}{OT2}%
- \reserved@a{#1}{LWN}%
- \reserved@a{#1}{LCY}%
- \reserved@a{#1}{X2}%
- \reserved@a{#1}{T2C}%
- \reserved@a{#1}{T2B}%
- \reserved@a{#1}{T2A}}
-\cdp@list
-\ifx\cyrillicencoding\undefined
- \IfFileExists{ot2enc.def}{\def\cyrillicencoding{OT2}}\relax
- \IfFileExists{lwnenc.def}{\def\cyrillicencoding{LWN}}\relax
- \IfFileExists{lcyenc.def}{\def\cyrillicencoding{LCY}}\relax
- \IfFileExists{x2enc.def}{\def\cyrillicencoding{X2}}\relax
- \IfFileExists{t2cenc.def}{\def\cyrillicencoding{T2C}}\relax
- \IfFileExists{t2benc.def}{\def\cyrillicencoding{T2B}}\relax
- \IfFileExists{t2aenc.def}{\def\cyrillicencoding{T2A}}\relax
- \ifx\cyrillicencoding\undefined
- \PackageError{babel}%
- {No Cyrillic encoding definition files were found}%
- {Your installation is incomplete.\MessageBreak
- You need at least one of the following files:\MessageBreak
- \space\space
- x2enc.def, t2aenc.def, t2benc.def, t2cenc.def,\MessageBreak
- \space\space
- lcyenc.def, lwnenc.def, ot2enc.def.}%
+\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
+}
+\@setcyrillicencoding
+\@onlypreamble\@setcyrillicencoding
+\@onlypreamble\sce@a
+\@onlypreamble\sce@b
+\@onlypreamble\sce@c
+\ifdefined\cyrillicencoding
+\else
+ \if@ukr@uni@ode
+ \ifdefined\XeTeXrevision
+ \edef\cyrillicencoding{EU1}
+ \else\ifdefined\luatexversion
+ \edef\cyrillicencoding{EU2}
+ \fi\fi
\else
- \lowercase
- \expandafter{\expandafter\input\cyrillicencoding enc.def\relax}%
+ \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}
\fi
-\DeclareRobustCommand{\Ukrainian}{%
+\DeclareRobustCommand{\Ukrainian}{\selectlanguage{\ukrainian}}
+\DeclareRobustCommand{\cyrillictext}{%
\fontencoding\cyrillicencoding\selectfont
\let\encodingdefault\cyrillicencoding
\expandafter\set@hyphenmins\ukrainianhyphenmins
\language\l@ukrainian}%
-\DeclareRobustCommand{\English}{%
- \fontencoding\latinencoding\selectfont
- \let\encodingdefault\latinencoding
- \expandafter\set@hyphenmins\englishhyphenmins
- \language\l@english}%
-\let\Ukr\Ukrainian
-\let\Eng\English
-\let\cyrillictext\Ukrainian
-\let\cyr\Ukrainian
+\let\cyr\cyrillictext
+%%\DeclareRobustCommand{\English}{%
+%% \fontencoding\latinencoding\selectfont
+%% \let\encodingdefault\latinencoding
+%% \expandafter\set@hyphenmins\englishhyphenmins
+%% \language\l@english}%
+%%\let\Eng\English
\expandafter\ifx\csname T@X2\endcsname\relax\else
- \def\@alph#1{{\fontencoding{\latinencoding}\selectfont
- \ifcase#1\or
- a\or b\or c\or d\or e\or f\or g\or h\or
- i\or j\or k\or l\or m\or n\or o\or p\or
- q\or r\or s\or t\or u\or v\or w\or x\or
- y\or z\else\@ctrerr\fi}}%
- \def\@Alph#1{{\fontencoding{\latinencoding}\selectfont
- \ifcase#1\or
- A\or B\or C\or D\or E\or F\or G\or H\or
- I\or J\or K\or L\or M\or N\or O\or P\or
- Q\or R\or S\or T\or U\or V\or W\or X\or
- Y\or Z\else\@ctrerr\fi}}%
\DeclareTextSymbolDefault{\AA}{OT1}
\DeclareTextSymbolDefault{\aa}{OT1}
\DeclareTextCommand{\aa}{OT1}{\r a}
\DeclareTextCommand{\AA}{OT1}{\r A}
\fi
-\@ifpackageloaded{inputenc}{}{%
- \def\reserved@a{LWN}%
- \ifx\reserved@a\cyrillicencoding\else
+\DeclareTextFontCommand{\textcyrillic}{\cyrillictext}
+\@ifpackageloaded{inputenc}{%
+ \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{OT2}%
\ifx\reserved@a\cyrillicencoding\else
- \PackageWarning{babel}%
- {No input encoding specified for Ukrainian language}
- \fi\fi}
-\let\lat\latintext
-\DeclareTextFontCommand{\textcyrillic}{\cyrillictext}
+ \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{"}}
+\reserved@a
+\declare@shorthand{ukrainian}{"`}{\quotedblbase}
+\declare@shorthand{ukrainian}{"'}{\textquotedblleft}
+\declare@shorthand{ukrainian}{"<}{\guillemotleft}
+\declare@shorthand{ukrainian}{">}{\guillemotright}
+\declare@shorthand{ukrainian}{""}{\hskip\z@skip}
+\declare@shorthand{ukrainian}{"~}{\textormath{\leavevmode\hbox{-}}{-}}
+\declare@shorthand{ukrainian}{"=}{\nobreak-\hskip\z@skip}
+\declare@shorthand{ukrainian}{"|}{%
+ \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@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\@Acdash{\ifdim\lastskip>\z@\unskip\nobreak\hskip.2em\fi
+ \cyrdash\hskip.2em\ignorespaces}%
+\def\@Bcdash{\leavevmode\ifdim\lastskip>\z@\unskip\fi
+ \nobreak\cyrdash\penalty\exhyphenpenalty\hskip\z@skip\ignorespaces}%
+\def\@Ccdash{\leavevmode
+ \nobreak\cyrdash\nobreak\hskip.35em\ignorespaces}%
+\ProvideTextCommandDefault{\cyrdash}{\iflanguage{ukrainian}%
+ {\hbox to.8em{--\hss--}}{\textemdash}}
+\declare@shorthand{ukrainian}{",}{\nobreak\hskip.2em\ignorespaces}
+\if@ukr@uni@ode
+ %\captionsukrainian
+ \addto\captionsukrainian{%
+ \def\prefacename{Вступ}% [babel]
+ \def\refname{Література}% [only article]
+ \def\abstractname{Анотація}% [only article, report]
+ \def\bibname{Бібліоґрафія}% [only book, report]
+ \def\chaptername{Глава}% [only book, report]
+ \def\appendixname{Додаток}%
+ \def\contentsname{Зміст}%
+ \let\tocname=\contentsname
+ \def\listfigurename{Перелік ілюстрацій}%
+ \def\listtablename{Перелік таблиць}%
+ \def\indexname{Предметний покажчик}%
+ \def\authorname{Іменний покажчик}%
+ \def\figurename{Рис.}%
+ \def\tablename{Таблиця}%
+ \def\partname{Частина}%
+ \def\enclname{вкл.}%
+ \def\ccname{вих.}%
+ \def\headtoname{вх.}%
+ \def\pagename{с.}% [letter]
+ \def\seename{див.}%
+ \def\alsoname{див.\ також}%
+ \def\proofname{Доведення}% [amsthm]
+ \def\glossaryname{Словник термінів}%
+ \def\acronymname{Абревіатури}% [glossaries] {Acronyms}
+ \def\lstlistingname{Лістинг}% [listings] (the environment) {Listing}
+ \def\lstlistlistingname{Лістинги}% [listings] (the "List of") {Listings}
+ \def\notesname{Нотатки}% [endnotes] {Notes}
+ }%
+ %% =========================================
+ %% nomencl
+ \ifdefined\nomname
+ \addto\captionsukrainian{%
+ \def\nomname{Позначення}%
+ \def\eqdeclaration#1{, див.\nobreakspace(#1)}%
+ \def\pagedeclaration#1{, стор.\nobreakspace#1}%
+ }%
+ \fi
+ %% =========================================
+ %% RevTeX4 & RevTeX4-1
+ %%\@ifclassloaded{revtex4-1}
+ %%{<true code>}
+ %%{<false coode>}%
+ %\@ifclassloaded{revtex4-1}
+ %{%
+ \ifnum\@ifclassloaded{revtex4}{1}{\@ifclassloaded{revtex4-1}{1}{0}}>0
+ \addto\captionsukrainian{%
+ \def\lofname{\listfigurename}
+ \def\lotname{\listtablename}
+ \def\figuresname{Рисунки}%{Figures}%
+ \def\tablesname{Таблиці}%{Tables}%
+ \def\appendixesname{Додатки}%{Appendixes}%
+ \def\acknowledgmentsname{Подяки}%{Acknowledgments}
+ \def\andname{та}%{and}
+ \def\@pacs@name{PACS коди: }%{PACS numbers: }%
+ \def\@keys@name{Ключові слова: }%{Keywords: }%
+ \def\Dated@name{Дата: }%{Dated: }%
+ \def\Received@name{Отримано }%{Received }%
+ \def\Revised@name{Виправлена версія }%{Revised }%
+ \def\Accepted@name{Прийнято }%{Accepted }%
+ \def\Published@name{Опубліковано }%{Published }%
+ }%
+ %}{}%
+ \fi
+\else
\addto\captionsukrainian{%
\def\prefacename{{\cyr\CYRV\cyrs\cyrt\cyru\cyrp}}%
\def\refname{%
@@ -147,11 +223,13 @@
\def\chaptername{{\cyr\CYRR\cyro\cyrz\cyrd\cyrii\cyrl}}%
\def\appendixname{{\cyr\CYRD\cyro\cyrd\cyra\cyrt\cyro\cyrk}}%
\def\contentsname{{\cyr\CYRZ\cyrm\cyrii\cyrs\cyrt}}%
+ \let\tocname=\contentsname
\def\listfigurename{{\cyr\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk
\ \cyrii\cyrl\cyryu\cyrs\cyrt\cyrr\cyra\cyrc\cyrii\cyrishrt}}%
\def\listtablename{{\cyr\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk
\ \cyrt\cyra\cyrb\cyrl\cyri\cyrc\cyrsftsn}}%
- \def\indexname{{\cyr\CYRP\cyro\cyrk\cyra\cyrzh\cyrch\cyri\cyrk}}%
+ \def\indexname{{\cyr\CYRP\cyrr\cyre\cyrd\cyrm\cyre\cyrt\cyrn\cyri\cyrishrt
+ \ \cyrp\cyro\cyrk\cyra\cyrzh\cyrch\cyri\cyrk}}%
\def\authorname{{\cyr\CYRII\cyrm\cyre\cyrn\cyrn\cyri\cyrishrt
\ \cyrp\cyro\cyrk\cyra\cyrzh\cyrch\cyri\cyrk}}%
\def\figurename{{\cyr\CYRR\cyri\cyrs.}}%
@@ -159,14 +237,55 @@
\def\partname{{\cyr\CYRCH\cyra\cyrs\cyrt\cyri\cyrn\cyra}}%
\def\enclname{{\cyr\cyrv\cyrk\cyrl\cyra\cyrd\cyrk\cyra}}%
\def\ccname{{\cyr\cyrk\cyro\cyrp\cyrii\cyrya}}%
- \def\headtoname{{\cyr\CYRD\cyro}}%
+ \def\headtoname{{\cyr\cyrv\cyrh.}}%
\def\pagename{{\cyr\cyrs.}}%
\def\seename{{\cyr\cyrd\cyri\cyrv.}}%
\def\alsoname{{\cyr\cyrd\cyri\cyrv.\ \cyrt\cyra\cyrk\cyro\cyrzh}}
\def\proofname{{\cyr\CYRD\cyro\cyrv\cyre\cyrd\cyre\cyrn\cyrn\cyrya}}%
\def\glossaryname{{\cyr\CYRS\cyrl\cyro\cyrv\cyrn\cyri\cyrk\ %
\cyrt\cyre\cyrr\cyrm\cyrii\cyrn\cyrii\cyrv}}%
- }
+ \def\nomname{\CYRP\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}%
+ \def\notesname{\CYRN\cyro\cyrt\cyra\cyrt\cyrk\cyri}%
+ }%
+ %% =========================================
+ %% RevTeX4 & RevTeX4-1
+ \ifnum \@ifclassloaded{revtex4}{1}{\@ifclassloaded{revtex4-1}{1}{0}}>0
+ \addto\captionsukrainian{%
+ \def\lofname{\listfigurename}
+ \def\lotname{\listtablename}
+ \def\figuresname{\CYRR\cyri\cyrs\cyru\cyrn\cyrk\cyri}%{Figures}%
+ \def\tablesname{\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrii}%{Tables}%
+ \def\appendixesname{\CYRD\cyro\cyrd\cyra\cyrt\cyrk\cyri}%{Appendixes}%
+ \def\acknowledgmentsname{\CYRP\cyro\cyrd\cyrya\cyrk\cyri}%{Acknowledgments}
+ \def\andname{\cyrt\cyra}%{and}
+ \def\@pacs@name{PACS \cyrk\cyro\cyrd\cyri: }%{PACS numbers: }%
+ \def\@keys@name{\CYRK\cyrl\cyryu\cyrch\cyro\cyrv\cyrii
+ \ \cyrs\cyrl\cyro\cyrv\cyra: }%{Keywords: }%
+ \def\Dated@name{\CYRD\cyra\cyrt\cyra: }%{Dated: }%
+ \def\Received@name{\CYRO\cyrt\cyrr\cyri\cyrm\cyra\cyrn\cyro }%{Received }%
+ \def\Revised@name{\CYRV\cyri\cyrp\cyrr\cyra\cyrv\cyrl\cyre\cyrn\cyro }%{Revised }%
+ \def\Accepted@name{\CYRP\cyrr\cyri\cyrishrt\cyrn\cyrya\cyrt\cyro }%{Accepted }%
+ \def\Published@name{\CYRO\cyrp\cyru\cyrb\cyrl\cyrii\cyrk\cyro\cyrv\cyra\cyrn\cyro }%{Published }%
+ }%
+ \fi
+\fi
+\if@ukr@uni@ode
+ \addto\dateukrainian{%
+ \def\today{\number\day~\ifcase\month\or
+ січня\or
+ лютого\or
+ березня\or
+ квітня\or
+ травня\or
+ червня\or
+ липня\or
+ серпня\or
+ вересня\or
+ жовтня\or
+ листопада\or
+ грудня\fi
+ \space \number\year~р.}}
+\else
\def\dateukrainian{%
\def\today{\number\day~\ifcase\month\or
\cyrs\cyrii\cyrch\cyrn\cyrya\or
@@ -182,140 +301,107 @@
\cyrl\cyri\cyrs\cyrt\cyro\cyrp\cyra\cyrd\cyra\or
\cyrg\cyrr\cyru\cyrd\cyrn\cyrya\fi
\space\number\year~\cyrr.}}
+\fi
+\providehyphenmins{\CurrentOption}{\tw@\tw@}
+\providehyphenmins{ukrainian}{\tw@\tw@}
\addto\extrasukrainian{\cyrillictext}
\addto\noextrasukrainian{\latintext}
-\addto\extrasukrainian{\lccode`\'=`\'}
-\addto\noextrasukrainian{\lccode`\'=0}
-\initiate@active@char{"}
\addto\extrasukrainian{\languageshorthands{ukrainian}}
-\addto\extrasukrainian{%
- \bbl@activate{"}}
-\addto\noextrasukrainian{%
- \bbl@deactivate{"}}
-\begingroup \catcode`\"12
-\def\reserved@a{\endgroup
- \def\@SS{\mathchar"7019 }
- \def\dq{"}}
-\reserved@a
-\declare@shorthand{ukrainian}{"`}{\glqq}
-\declare@shorthand{ukrainian}{"'}{\grqq}
-\declare@shorthand{ukrainian}{"<}{\flqq}
-\declare@shorthand{ukrainian}{">}{\frqq}
-\declare@shorthand{ukrainian}{""}{\hskip\z@skip}
-\declare@shorthand{ukrainian}{"~}{\textormath{\leavevmode\hbox{-}}{-}}
-\declare@shorthand{ukrainian}{"=}{\nobreak-\hskip\z@skip}
-\declare@shorthand{ukrainian}{"|}{%
- \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@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\@Acdash{\ifdim\lastskip>\z@\unskip\nobreak\hskip.2em\fi
- \cyrdash\hskip.2em\ignorespaces}%
-\def\@Bcdash{\leavevmode\ifdim\lastskip>\z@\unskip\fi
- \nobreak\cyrdash\penalty\exhyphenpenalty\hskip\z@skip\ignorespaces}%
-\def\@Ccdash{\leavevmode
- \nobreak\cyrdash\nobreak\hskip.35em\ignorespaces}%
-\ifx\cyrdash\undefined
- \def\cyrdash{\hbox to.8em{--\hss--}}
-\fi
-\declare@shorthand{ukrainian}{",}{\nobreak\hskip.2em\ignorespaces}
-\def\mdqon{\bbl@activate{"}}
-\def\mdqoff{\bbl@deactivate{"}}
-\providehyphenmins{\CurrentOption}{\tw@\tw@}
-\ifx\englishhyphenmins\undefined
- \def\englishhyphenmins{\tw@\thr@@}
-\fi
+\addto\extrasukrainian{\bbl@activate{"}}
+\addto\noextrasukrainian{\bbl@deactivate{"}}
\addto\extrasukrainian{\bbl@frenchspacing}
\addto\noextrasukrainian{\bbl@nonfrenchspacing}
-\def\Asbuk#1{\expandafter\@Asbuk\csname c@#1\endcsname}
-\def\@Asbuk#1{\ifcase#1\or
- \CYRA\or\CYRB\or\CYRV\or\CYRG\or\CYRD\or\CYRE\or\CYRIE\or
- \CYRZH\or\CYRZ\or\CYRI\or\CYRII\or\CYRYI\or\CYRISHRT\or
- \CYRK\or\CYRL\or\CYRM\or\CYRN\or\CYRO\or\CYRP\or\CYRR\or
- \CYRS\or\CYRT\or\CYRU\or\CYRF\or\CYRH\or\CYRC\or\CYRCH\or
- \CYRSH\or\CYRSHCH\or\CYRYU\or\CYRYA\else\@ctrerr\fi}
-\def\asbuk#1{\expandafter\@asbuk\csname c@#1\endcsname}
-\def\@asbuk#1{\ifcase#1\or
- \cyra\or\cyrb\or\cyrv\or\cyrg\or\cyrd\or\cyre\or\cyrie\or
- \cyrzh\or\cyrz\or\cyri\or\cyrii\or\cyryi\or\cyrishrt\or
- \cyrk\or\cyrl\or\cyrm\or\cyrn\or\cyro\or\cyrp\or\cyrr\or
- \cyrs\or\cyrt\or\cyru\or\cyrf\or\cyrh\or\cyrc\or\cyrch\or
- \cyrsh\or\cyrshch\or\cyryu\or\cyrya\else\@ctrerr\fi}
-\@ifundefined{sym\cyrillicencoding letters}{}{%
-\SetSymbolFont{\cyrillicencoding letters}{bold}\cyrillicencoding
- \rmdefault\bfdefault\updefault
-\DeclareSymbolFontAlphabet\cyrmathrm{\cyrillicencoding letters}
-\DeclareMathAlphabet\cyrmathbf\cyrillicencoding
- \rmdefault\bfdefault\updefault
-\DeclareMathAlphabet\cyrmathsf\cyrillicencoding
- \sfdefault\mddefault\updefault
-\DeclareMathAlphabet\cyrmathit\cyrillicencoding
- \rmdefault\mddefault\itdefault
-\DeclareMathAlphabet\cyrmathtt\cyrillicencoding
- \ttdefault\mddefault\updefault
-\SetMathAlphabet\cyrmathsf{bold}\cyrillicencoding
- \sfdefault\bfdefault\updefault
-\SetMathAlphabet\cyrmathit{bold}\cyrillicencoding
- \rmdefault\bfdefault\itdefault
+\def\Asbuk#1{\expandafter\ukrainian@Alph\csname c@#1\endcsname}
+\if@ukr@uni@ode
+ \def\ukrainian@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 Х\or
+ Ц\or Ч\or Ш\or Щ\or Ю\or Я\else\@ctrerr\fi}
+\else
+ \def\ukrainian@Alph#1{\ifcase#1\or
+ \CYRA\or\CYRB\or\CYRV\or\CYRG\or\CYRD\or\CYRE\or\CYRYE\or\CYRZH\or
+ \CYRZ\or\CYRI\or\CYRII\or\CYRYI\or\CYRK\or\CYRL\or\CYRM\or\CYRN\or\CYRO\or
+ \CYRP\or\CYRR\or\CYRS\or\CYRT\or\CYRU\or\CYRF\or\CYRH\or
+ \CYRC\or\CYRCH\or\CYRSH\or\CYRSHCH\or\CYRYU\or
+ \CYRYA\else\@ctrerr\fi}
+\fi
+\def\asbuk#1{\expandafter\ukrainian@alph\csname c@#1\endcsname}
+\if@ukr@uni@ode
+ \def\ukrainian@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 х\or
+ ц\or ч\or ш\or щ\or ю\or я\else\@ctrerr\fi}
+\else
+ \def\ukrainian@alph#1{\ifcase#1\or
+ \cyra\or\cyrb\or\cyrv\or\cyrg\or\cyrd\or\cyre\or\cyrye\or\cyrzh\or
+ \cyrz\or\cyri\or\cyrii\or\cyryi\or\cyrk\or\cyrl\or\cyrm\or\cyrn\or\cyro\or
+ \cyrp\or\cyrr\or\cyrs\or\cyrt\or\cyru\or\cyrf\or\cyrh\or
+ \cyrc\or\cyrch\or\cyrsh\or\cyrshch\or\cyryu\or
+ \cyrya\else\@ctrerr\fi}
+\fi
+\bbl@declare@ttribute{ukrainian}{ancient}{%
+ \PackageInfo{babel}{ukrainian attribute set to ancient}%
+ \let\captionsukrainian=\captionsukrainian@ancient
+ \let\dateukrainian=\dateukrainian@ancient
}
+\@onlypreamble\captionsukrainian@ancient
+\@onlypreamble\dateukrainian@ancient
\def\sh{\mathop{\operator@font sh}\nolimits}
\def\ch{\mathop{\operator@font ch}\nolimits}
\def\tg{\mathop{\operator@font tg}\nolimits}
+\def\ctg{\mathop{\operator@font ctg}\nolimits}
\def\arctg{\mathop{\operator@font arctg}\nolimits}
\def\arcctg{\mathop{\operator@font arcctg}\nolimits}
-\addto\extrasrussian{%
+\addto\extrasukrainian{%
\babel@save{\th}%
\let\ltx@th\th
\def\th{\textormath{\ltx@th}%
{\mathop{\operator@font th}\nolimits}}%
}
-\def\ctg{\mathop{\operator@font ctg}\nolimits}
\def\cth{\mathop{\operator@font cth}\nolimits}
\def\cosec{\mathop{\operator@font cosec}\nolimits}
\def\Prob{\mathop{\kern\z@\mathsf{P}}\nolimits}
\def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits}
-\def\nsd{\mathop{\cyrmathrm{\cyrn.\cyrs.\cyrd.}}\nolimits}
-\def\nsk{\mathop{\cyrmathrm{\cyrn.\cyrs.\cyrk.}}\nolimits}
-\def\NSD{\mathop{\cyrmathrm{\CYRN\CYRS\CYRD}}\nolimits}
-\def\NSK{\mathop{\cyrmathrm{\CYRN\CYRS\CYRK}}\nolimits}
- \def\nod{\mathop{\cyrmathrm{\cyrn.\cyro.\cyrd.}}\nolimits} % ??????
- \def\nok{\mathop{\cyrmathrm{\cyrn.\cyro.\cyrk.}}\nolimits} % ??????
- \def\NOD{\mathop{\cyrmathrm{\CYRN\CYRO\CYRD}}\nolimits} % ??????
- \def\NOK{\mathop{\cyrmathrm{\CYRN\CYRO\CYRK}}\nolimits} % ??????
-\def\Proj{\mathop{\cyrmathrm{\CYRP\cyrr}}\nolimits}
-\DeclareRobustCommand{\No}{%
- \ifmmode{\nfss@text{\textnumero}}\else\textnumero\fi}
+\if@ukr@uni@ode
+ \def\nsd{\mathop{\mathrm{н.с.д.}}\nolimits}
+ \def\nsk{\mathop{\mathrm{н.с.к.}}\nolimits}
+ \def\NSD{\mathop{\mathrm{НСД}}\nolimits}
+ \def\NSK{\mathop{\mathrm{НСК}}\nolimits}
+ \def\Proj{\mathop{\mathrm{Пр}}\nolimits}
+\else
+ \def\nsd{\mathop{\textrm{\textup{\cyrn.\cyrs.\cyrd.}}}\nolimits}
+ \def\nsk{\mathop{\textrm{\textup{\cyrn.\cyrs.\cyrk.}}}\nolimits}
+ \def\NSD{\mathop{\textrm{\textup{\CYRN\CYRS\CYRD}}}\nolimits}
+ \def\NSK{\mathop{\textrm{\textup{\CYRN\CYRS\CYRK}}}\nolimits}
+ \def\Proj{\mathop{\textrm{\textup{\CYRP\cyrr}}}\nolimits}
+\fi
\ldf@finish{ukrainian}
-%%
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\endinput
+%% ----------------------------------------------------------------
+%% Copyright 2017 Sergiy М. Ponomarenko
+%% Copyright 2011-2017 Igor A. Kotelnikov.
+%% Copyright 2000 Aleksey Novodvorsky
+%% Copyright 1995-2008 Olga Lapko.
+%% Copyright 1989-2012 Johannes L. Braams.
+%%
+%% This file is a part of the Ukrainian-Babel package.
+%%
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License (LPPL), either
+%% version 1.3c of this license or (at your option) any later
+%% version. The latest version of this license is in the file:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% The package is "maintained" (as per LPPL maintenance status) by
+%% Sergiy М. Ponomarenko.
+%%
+%% The package consists of the file ukraineb.dtx
+%% and the derived files ukraineb.ins,
+%% ukraineb.ldf,
+%% ukraineb.pdf,
+%% README.
+%% ----------------------------------------------------------------
%%
%% End of file `ukraineb.ldf'.