summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx')
-rw-r--r--Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx345
1 files changed, 336 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx b/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx
index 3b91651d5a4..a867baee52c 100644
--- a/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx
+++ b/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx
@@ -1,3 +1,5 @@
+% !TeX program = xelatex
+
%\iffalse
%<*package>
%% \CharacterTable
@@ -35,10 +37,10 @@
pdfauthor={Nicola L.C. Talbot},
pdftitle={datetime2.sty Ukrainian Module}]{hyperref}
-\newfontfamily\cyrillicfont{Liberation Serif}
-\setmonofont{Liberation Mono}
+\newfontfamily\cyrillicfont{CMU Serif}
+\setmonofont{CMU Typewriter Text}
-\CheckSum{567}
+\CheckSum{1139}
\renewcommand*{\usage}[1]{\hyperpage{#1}}
\renewcommand*{\main}[1]{\hyperpage{#1}}
@@ -61,8 +63,8 @@
%\MakeShortVerb{"}
%
%\title{Ukrainian Module for datetime2 Package}
-%\author{Nicola L. C. Talbot (inactive)}
-%\date{2015-04-01 (v1.0)}
+%\author{Nicola L. C. Talbot (inactive)\\ Sergiy M. Ponomarenko}
+%\date{2017-06-11 (v1.1)}
%\maketitle
%
%This module is currently unmaintained and may be subject to change.
@@ -117,10 +119,11 @@
%This file contains the settings that use UTF-8 characters. This
%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure
%your text editor is set to UTF-8 if you want to view this code.
+%\changes{1.1}{2017-06-11}{Adding Ukrainian week days}
%\changes{1.0}{2015-04-01}{Initial release}
% Identify module
% \begin{macrocode}
-\ProvidesDateTimeModule{ukrainian-utf8}[2015/04/01 v1.0]
+\ProvidesDateTimeModule{ukrainian-utf8}[2017/06/111 v1.1]
% \end{macrocode}
%\begin{macro}{\DTMukrainianordinal}
% \begin{macrocode}
@@ -208,8 +211,168 @@
% \end{macrocode}
%\end{macro}
%
-%If abbreviated dates are supported, short month names should be
-%likewise provided.
+%\begin{macro}{\DTMukrainianshortmonthname}
+% Abbreviated Ukrainian month names.
+%\changes{1.01}{2017-06-11}{Add abbreviated month names}
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortmonthname}[1]{%
+ \ifcase#1
+ \or
+ січ.%
+ \or
+ лют.%
+ \or
+ бер.%
+ \or
+ квіт.%
+ \or
+ трав%
+ \or
+ черв.%
+ \or
+ лип.%
+ \or
+ серп.%
+ \or
+ вер.%
+ \or
+ жовт.%
+ \or
+ листоп.%
+ \or
+ груд.%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianshortMonthname}
+% As above but start with a capital.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortMonthname}[1]{%
+ \ifcase#1
+ \or
+ Січ.%
+ \or
+ Лют.%
+ \or
+ Бер.%
+ \or
+ Квіт.%
+ \or
+ Трав%
+ \or
+ Черв.%
+ \or
+ Лип.%
+ \or
+ Серп.%
+ \or
+ Вер.%
+ \or
+ Жовт.%
+ \or
+ Листоп.%
+ \or
+ Груд.%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianweekdayname}
+% Ukrainian day of week names.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianweekdayname}[1]{%
+ \ifcase#1
+ понеділок%
+ \or
+ вівторок%
+ \or
+ середа%
+ \or
+ четвер%
+ \or
+ п'ятниця%
+ \or
+ субота%
+ \or
+ неділя%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianWeekdayname}
+% As above but start with a capital.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianWeekdayname}[1]{%
+ \ifcase#1
+ Понеділок%
+ \or
+ Вівторок%
+ \or
+ Середа%
+ \or
+ Четвер%
+ \or
+ П'ятниця%
+ \or
+ Субота%
+ \or
+ Неділя%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianshortweekdayname}
+% Abbreviated Romanian day of week names.
+%\changes{1.01}{2017-06-11}{Add abbreviated day of week names}
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortweekdayname}[1]{%
+ \ifcase#1
+ пн.%
+ \or
+ вт.%
+ \or
+ ср.%
+ \or
+ чт%
+ \or
+ пт.%
+ \or
+ сб.%
+ \or
+ нд.%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianshortWeekdayname}
+% As above but start with a capital.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortWeekdayname}[1]{%
+ \ifcase#1
+ Пн.%
+ \or
+ Вт.%
+ \or
+ Ср.%
+ \or
+ Чт%
+ \or
+ Пт.%
+ \or
+ Сб.%
+ \or
+ Нд.%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
%
%\iffalse
% \begin{macrocode}
@@ -342,6 +505,170 @@
% \end{macrocode}
%\end{macro}
%
+%\begin{macro}{\DTMukrainianshortmonthname}
+% Abbreviated Ukrainian month names.
+%\changes{1.01}{2017-06-11}{Add abbreviated month names}
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortmonthname}[1]{%
+ \ifcase#1
+ \or
+ \protect\cyrs\protect\cyrii\protect\cyrch.
+ \or
+ \protect\cyrl\protect\cyryu\protect\cyrt.
+ \or
+ \protect\cyrb\protect\cyre\protect\cyrr.
+ \or
+ \protect\cyrk\protect\cyrv\protect\cyrii\protect\cyrt.
+ \or
+ \protect\cyrt\protect\cyrr\protect\cyra\protect\cyrv.
+ \or
+ \protect\cyrch\protect\cyre\protect\cyrr\protect\cyrv.
+ \or
+ \protect\cyrl\protect\cyri\protect\cyrp.
+ \or
+ \protect\cyrs\protect\cyre\protect\cyrr\protect\cyrp.
+ \or
+ \protect\cyrv\protect\cyre\protect\cyrr.
+ \or
+ \protect\cyrzh\protect\cyro\protect\cyrv\protect\cyrt.
+ \or
+ \protect\cyrl\protect\cyri\protect\cyrs\protect\cyrt\protect\cyro
+ \protect\cyrp.
+ \or
+ \protect\cyrg\protect\cyrr\protect\cyru\protect\cyrd.
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianshortMonthname}
+% As above but start with a capital.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortMonthname}[1]{%
+ \ifcase#1
+ \or
+ \protect\CYRS\protect\cyrii\protect\cyrch.
+ \or
+ \protect\CYRL\protect\cyryu\protect\cyrt.
+ \or
+ \protect\CYRB\protect\cyre\protect\cyrr.
+ \or
+ \protect\CYRK\protect\cyrv\protect\cyrii\protect\cyrt.
+ \or
+ \protect\CYRT\protect\cyrr\protect\cyra\protect\cyrv.
+ \or
+ \protect\CYRCH\protect\cyre\protect\cyrr\protect\cyrv.
+ \or
+ \protect\CYRL\protect\cyri\protect\cyrp.
+ \or
+ \protect\CYRS\protect\cyre\protect\cyrr\protect\cyrp.
+ \or
+ \protect\CYRV\protect\cyre\protect\cyrr.
+ \or
+ \protect\CYRZH\protect\cyro\protect\cyrv\protect\cyrt.
+ \or
+ \protect\CYRL\protect\cyri\protect\cyrs\protect\cyrt\protect\cyro
+ \protect\cyrp.
+ \or
+ \protect\CYRG\protect\cyrr\protect\cyru\protect\cyrd.
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianweekdayname}
+% Ukrainian day of week names.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianweekdayname}[1]{%
+ \ifcase#1
+ \protect\cyrp\protect\cyro\protect\cyrn\protect\cyre\protect\cyrd\protect\cyrii\protect\cyrl\protect\cyro\protect\cyrk%
+ \or
+ \protect\cyrv\protect\cyrii\protect\cyrv\protect\cyrt\protect\cyro\protect\cyrr\protect\cyro\protect\cyrk%
+ \or
+ \protect\cyrs\protect\cyre\protect\cyrr\protect\cyre\protect\cyrd\protect\cyra%
+ \or
+ \protect\cyrch\protect\cyre\protect\cyrt\protect\cyrv\protect\cyre\protect\cyrr%
+ \or
+ \protect\cyrp'\protect\cyrya\protect\cyrt\protect\cyrn\protect\cyri\protect\cyrc\protect\cyrya%
+ \or
+ \protect\cyrs\protect\cyru\protect\cyrb\protect\cyro\protect\cyrt\protect\cyra%
+ \or
+ \protect\cyrn\protect\cyre\protect\cyrd\protect\cyrii\protect\cyrl\protect\cyrya%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianWeekdayname}
+% As above but start with a capital.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianWeekdayname}[1]{%
+ \ifcase#1
+ \protect\CYRP\protect\cyro\protect\cyrn\protect\cyre\protect\cyrd\protect\cyrii\protect\cyrl\protect\cyro\protect\cyrk%
+ \or
+ \protect\CYRV\protect\cyrii\protect\cyrv\protect\cyrt\protect\cyro\protect\cyrr\protect\cyro\protect\cyrk%
+ \or
+ \protect\CYRS\protect\cyre\protect\cyrr\protect\cyre\protect\cyrd\protect\cyra%
+ \or
+ \protect\CYRCH\protect\cyre\protect\cyrt\protect\cyrv\protect\cyre\protect\cyrr%
+ \or
+ \protect\CYRP'\protect\cyrya\protect\cyrt\protect\cyrn\protect\cyri\protect\cyrc\protect\cyrya%
+ \or
+ \protect\CYRS\protect\cyru\protect\cyrb\protect\cyro\protect\cyrt\protect\cyra%
+ \or
+ \protect\CYRN\protect\cyre\protect\cyrd\protect\cyrii\protect\cyrl\protect\cyrya%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianshortweekdayname}
+% Abbreviated Ukrainian day of week names.
+%\changes{1.01}{2017-06-11}{Add abbreviated day of week names}
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortweekdayname}[1]{%
+ \ifcase#1
+ \protect\cyrp\protect\cyrn.%
+ \or
+ \protect\cyrv\protect\cyrt.%
+ \or
+ \protect\cyrs\protect\cyrr.%
+ \or
+ \protect\cyrch\protect\cyrt%
+ \or
+ \protect\cyrp\protect\cyrt.%
+ \or
+ \protect\cyrs\protect\cyrb.%
+ \or
+ \protect\cyrn\protect\cyrd.%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMukrainianshortWeekdayname}
+% As above but start with a capital.
+% \begin{macrocode}
+\newcommand*{\DTMukrainianshortWeekdayname}[1]{%
+ \ifcase#1
+ \protect\CYRP\protect\cyrn.%
+ \or
+ \protect\CYRV\protect\cyrt.%
+ \or
+ \protect\CYRS\protect\cyrr.%
+ \or
+ \protect\CYRCH\protect\cyrt.%
+ \or
+ \protect\CYRP\protect\cyrt.%
+ \or
+ \protect\CYRS\protect\cyrb.%
+ \or
+ \protect\CYRN\protect\cyrd.%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
%\iffalse
% \begin{macrocode}
%</datetime2-ukrainian-ascii.ldf>
@@ -359,7 +686,7 @@
%
% Identify Module
% \begin{macrocode}
-\ProvidesDateTimeModule{ukrainian}[2015/04/01 v1.0]
+\ProvidesDateTimeModule{ukrainian}[2017/06/11 v1.1]
% \end{macrocode}
% Need to find out if XeTeX or LuaTeX are being used.
% \begin{macrocode}