From 69e924ee6c8d31ad1ad84dfe14dd724fe50553df Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 8 Nov 2019 21:40:42 +0000 Subject: datetime2-serbian (8nov19) git-svn-id: svn://tug.org/texlive/trunk@52695 c570f23f-e606-0410-a88d-b1316a301751 --- .../datetime2-serbian/datetime2-serbian-ascii.ldf | 174 --------- .../datetime2-serbian-base-ascii.ldf | 345 ++++++++++++++++++ .../datetime2-serbian-base-utf8.ldf | 344 ++++++++++++++++++ .../datetime2-serbian/datetime2-serbian-base.ldf | 126 +++++++ .../datetime2-serbian/datetime2-serbian-utf8.ldf | 160 -------- .../latex/datetime2-serbian/datetime2-serbian.ldf | 401 +++++++++++++-------- .../latex/datetime2-serbian/datetime2-serbianc.ldf | 340 +++++++++++++++++ .../datetime2-serbian/datetime2-sr-Cyrl-BA.ldf | 340 +++++++++++++++++ .../datetime2-serbian/datetime2-sr-Cyrl-ME.ldf | 340 +++++++++++++++++ .../datetime2-serbian/datetime2-sr-Cyrl-RS.ldf | 340 +++++++++++++++++ .../latex/datetime2-serbian/datetime2-sr-Cyrl.ldf | 340 +++++++++++++++++ .../datetime2-serbian/datetime2-sr-Latn-BA.ldf | 340 +++++++++++++++++ .../datetime2-serbian/datetime2-sr-Latn-ME.ldf | 340 +++++++++++++++++ .../datetime2-serbian/datetime2-sr-Latn-RS.ldf | 340 +++++++++++++++++ .../latex/datetime2-serbian/datetime2-sr-Latn.ldf | 340 +++++++++++++++++ 15 files changed, 4125 insertions(+), 485 deletions(-) delete mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-ascii.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-ascii.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-utf8.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base.ldf delete mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-utf8.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbianc.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-BA.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-ME.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-RS.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-BA.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-ME.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-RS.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn.ldf (limited to 'Master/texmf-dist/tex/latex/datetime2-serbian') diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-ascii.ldf deleted file mode 100644 index b74b3fc2653..00000000000 --- a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-ascii.ldf +++ /dev/null @@ -1,174 +0,0 @@ -%% -%% This is file `datetime2-serbian-ascii.ldf', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% datetime2-serbian.dtx (with options: `datetime2-serbian-ascii.ldf,package') -%% -%% datetime2-serbian.dtx -%% Copyright 2019 Nicola Talbot -%% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license of (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 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status `inactive'. -%% -%% This work consists of the files datetime2-serbian.dtx and -%% datetime2-serbian.ins and the derived files -%% datetime2-serbian-utf8.ldf, datetime2-serbian-ascii.ldf and -%% datetime2-serbian.ldf. -%% -%% \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 \~} -\ProvidesDateTimeModule{serbian-ascii}[2019/09/14 v1.0] -\newcommand*{\DTMserbianordinal}[1]{% - \number#1.% -} -\newcommand*{\DTMserbiancyrmonthname}[1]{% - \ifcase#1 - \or - \protect\cyrje\protect\cyra\protect\cyrn\protect\cyru\protect\cyra - \protect\cyrr - \or - \protect\cyrf\protect\cyrie\protect\cyrb\protect\cyrr\protect\cyru - \protect\cyrr - \or - \protect\cyrm\protect\cyra\protect\cyrr\protect\cyrt - \or - \protect\cyra\protect\cyrp\protect\cyrr\protect\cyri\protect\cyrl - \or - \protect\cyrm\protect\cyra\protect\cyrje - \or - \protect\cyrje\protect\cyru\protect\cyrn - \or - \protect\cyrje\protect\cyru\protect\cyrl - \or - \protect\cyra\protect\cyrv\protect\cyrg\protect\cyru\protect\cyrs - \protect\cyrt - \or - \protect\cyrs\protect\cyre\protect\cyrp\protect\cyrt\protect\cyre - \protect\cyrm\protect\cyrb\protect\cyra\protect\cyrr - \or - \protect\cyro\protect\cyrk\protect\cyrt\protect\cyro\protect\cyrb - \protect\cyra\protect\cyrr - \or - \protect\cyrn\protect\cyro\protect\cyrv\protect\cyre\protect\cyrm - \protect\cyrb\protect\cyra\protect\cyrr - \or - \protect\cyrd\protect\cyre\protect\cyrc\protect\cyre\protect\cyrm - \protect\cyrb\protect\cyra\protect\cyrr - \fi -} -\newcommand*{\DTMserbiancyrMonthname}[1]{% - \ifcase#1 - \or - \protect\CYRJE\protect\cyra\protect\cyrn\protect\cyru\protect\cyra - \protect\cyrr - \or - \protect\CYRF\protect\cyrie\protect\cyrb\protect\cyrr\protect\cyru - \protect\cyrr - \or - \protect\CYRM\protect\cyra\protect\cyrr\protect\cyrt - \or - \protect\CYRA\protect\cyrp\protect\cyrr\protect\cyri\protect\cyrl - \or - \protect\CYRM\protect\cyra\protect\cyrje - \or - \protect\CYRJE\protect\cyru\protect\cyrn - \or - \protect\CYRJE\protect\cyru\protect\cyrl - \or - \protect\CYRA\protect\cyrv\protect\cyrg\protect\cyru\protect\cyrs - \protect\cyrt - \or - \protect\CYRS\protect\cyre\protect\cyrp\protect\cyrt\protect\cyre - \protect\cyrm\protect\cyrb\protect\cyra\protect\cyrr - \or - \protect\CYRO\protect\cyrk\protect\cyrt\protect\cyro\protect\cyrb - \protect\cyra\protect\cyrr - \or - \protect\CYRN\protect\cyro\protect\cyrv\protect\cyre\protect\cyrm - \protect\cyrb\protect\cyra\protect\cyrr - \or - \protect\CYRD\protect\cyre\protect\cyrc\protect\cyre\protect\cyrm - \protect\cyrb\protect\cyra\protect\cyrr - \fi -} -\newcommand*{\DTMserbianlatinmonthname}[1]{% - \ifcase#1 - \or - januar% - \or - februar% - \or - mart% - \or - april% - \or - maj% - \or - juni% - \or - juli% - \or - avgust% - \or - septembar% - \or - oktobar% - \or - novembar% - \or - decembar% - \fi -} -\newcommand*{\DTMserbianlatinMonthname}[1]{% - \ifcase#1 - \or - Januar% - \or - Februar% - \or - Mart% - \or - April% - \or - Maj% - \or - Juni% - \or - Juli% - \or - Avgust% - \or - Septembar% - \or - Oktobar% - \or - Novembar% - \or - Decembar% - \fi -} -\endinput -%% -%% End of file `datetime2-serbian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-ascii.ldf new file mode 100644 index 00000000000..dc54416c84f --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-ascii.ldf @@ -0,0 +1,345 @@ +%% +%% This is file `datetime2-serbian-base-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-serbian-base-ascii.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{serbian-base-ascii}[2019/11/07 v2.0] +%%\subsubsection{Latin month names} +\newcommand*{\DTMserbianlatnoimonthname}[1]{% + \ifcase#1 + \or% + januar% + \or% + februar% + \or% + mart% + \or% + april% + \or% + maj% + \or% + jun% + \or% + jul% + \or% + avgust% + \or% + septembar% + \or% + oktobar% + \or% + novembar% + \or% + decembar% + \fi +} +\newcommand*{\DTMserbianlatnoiMonthname}[1]{% + \ifcase#1 + \or% + Januar% + \or% + Februar% + \or% + Mart% + \or% + April% + \or% + Maj% + \or% + Jun% + \or% + Jul% + \or% + Avgust% + \or% + Septembar% + \or% + Oktobar% + \or% + Novembar% + \or% + Decembar% + \fi +} +\newcommand*{\DTMserbianlatimonthname}[1]{% + \ifnum#1=6% + juni% + \else\ifnum\#1=7% + juli% + \else + \DTMserbianlatnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbianlatiMonthname}[1]{% + \ifnum#1=6% + Juni% + \else\ifnum\#1=7% + Juli% + \else + \DTMserbianlatnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbianlatekweekdayname}[1]{% + \ifcase#1 + ponedeljak% + \or% + utorak% + \or% + sreda% + \or% + \v cetvrtak% + \or% + petak% + \or% + subota% + \or% + nedelja% + \fi% +} +\newcommand*{\DTMserbianlatekWeekdayname}[1]{% + \ifcase#1 + Ponedeljak% + \or% + Utorak% + \or% + Sreda% + \or% + \v Cetvrtak% + \or% + Petak% + \or% + Subota% + \or% + Nedelja% + \fi% +} +\newcommand*{\DTMserbianlatijweekdayname}[1]{% + \ifcase#1 + ponedjeljak% + \or% + utorak% + \or% + srijeda% + \or% + \v cetvrtak% + \or% + petak% + \or% + subota% + \or% + nedjelja% + \fi% +} +\newcommand*{\DTMserbianlatijWeekdayname}[1]{% + \ifcase#1 + Ponedjeljak% + \or% + Utorak% + \or% + Srijeda% + \or% + \v Cetvrtak% + \or% + Petak% + \or% + Subota% + \or% + Nedjelja% + \fi% +} +\newcommand*{\DTMserbiancyrnoimonthname}[1]{% + \ifcase#1 + \or% + \cyrje\cyra\cyrn\cyru\cyra\cyrr% + \or% + \cyrf\cyre\cyrb\cyrr\cyru\cyra\cyrr% + \or% + \cyrm\cyra\cyrr\cyrt% + \or% + \cyra\cyrp\cyrr\cyri\cyrl% + \or% + \cyrm\cyra\cyrje% + \or% + \cyrje\cyru\cyrn% + \or% + \cyrje\cyru\cyrl% + \or% + \cyra\cyrv\cyrg\cyru\cyrs\cyrt% + \or% + \cyrs\cyre\cyrp\cyrt\cyre\cyrm\cyrb\cyra\cyrr% + \or% + \cyro\cyrk\cyrt\cyro\cyrb\cyra\cyrr% + \or% + \cyrn\cyro\cyrv\cyre\cyrm\cyrb\cyra\cyrr% + \or% + \cyrd\cyre\cyrc\cyre\cyrm\cyrb\cyra\cyrr% + \fi +} +\newcommand*{\DTMserbiancyrnoiMonthname}[1]{% + \ifcase#1 + \or% + \CYRJE\cyra\cyrn\cyru\cyra\cyrr% + \or% + \CYRF\cyre\cyrb\cyrr\cyru\cyra\cyrr% + \or% + \CYRM\cyra\cyrr\cyrt% + \or% + \CYRA\cyrp\cyrr\cyri\cyrl% + \or% + \CYRM\cyra\cyrje% + \or% + \CYRJE\cyru\cyrn% + \or% + \CYRJE\cyru\cyrl% + \or% + \CYRA\cyrv\cyrg\cyru\cyrs\cyrt% + \or% + \CYRS\cyre\cyrp\cyrt\cyre\cyrm\cyrb\cyra\cyrr% + \or% + \CYRO\cyrk\cyrt\cyro\cyrb\cyra\cyrr% + \or% + \CYRN\cyro\cyrv\cyre\cyrm\cyrb\cyra\cyrr% + \or% + \CYRD\cyre\cyrc\cyre\cyrm\cyrb\cyra\cyrr% + \fi +} +\newcommand*{\DTMserbiancyrimonthname}[1]{% + \ifnum#1=6% + \cyrje\cyru\cyrn\cyri% + \else\ifnum\#1=7% + \cyrje\cyru\cyrl\cyri% + \else + \DTMserbiancyrnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbiancyriMonthname}[1]{% + \ifnum#1=6% + \CYRJE\cyru\cyrn\cyri% + \else\ifnum\#1=7% + \CYRJE\cyru\cyrl\cyri% + \else + \DTMserbiancyrnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbiancyrekweekdayname}[1]{% + \ifcase#1 + \cyrp\cyro\cyrn\cyre\cyrd\cyre\cyrlje\cyra\cyrk% + \or% + \cyru\cyrt\cyro\cyrr\cyra\cyrk% + \or% + \cyrs\cyrr\cyre\cyrd\cyra% + \or% + \cyrch\cyre\cyrt\cyrv\cyrr\cyrt\cyra\cyrk% + \or% + \cyrp\cyre\cyrt\cyra\cyrk% + \or% + \cyrs\cyru\cyrb\cyro\cyrt\cyra% + \or% + \cyrn\cyre\cyrd\cyre\cyrlje\cyra% + \fi% +} +\newcommand*{\DTMserbiancyrekWeekdayname}[1]{% + \ifcase#1 + \CYRP\cyro\cyrn\cyre\cyrd\cyre\cyrlje\cyra\cyrk% + \or% + \CYRU\cyrt\cyro\cyrr\cyra\cyrk% + \or% + \CYRS\cyrr\cyre\cyrd\cyra% + \or% + \CYRCH\cyre\cyrt\cyrv\cyrr\cyrt\cyra\cyrk% + \or% + \CYRP\cyre\cyrt\cyra\cyrk% + \or% + \CYRS\cyru\cyrb\cyro\cyrt\cyra% + \or% + \CYRN\cyre\cyrd\cyre\cyrlje\cyra% + \fi% +} +\newcommand*{\DTMserbiancyrijweekdayname}[1]{% + \ifcase#1 + \cyrp\cyro\cyrn\cyre\cyrd\cyrje\cyre\cyrlje\cyra\cyrk% + \or% + \cyru\cyrt\cyro\cyrr\cyra\cyrk% + \or% + \cyrs\cyrr\cyri\cyrje\cyre\cyrd\cyra% + \or% + \cyrch\cyre\cyrt\cyrv\cyrr\cyrt\cyra\cyrk% + \or% + \cyrp\cyre\cyrt\cyra\cyrk% + \or% + \cyrs\cyru\cyrb\cyro\cyrt\cyra% + \or% + \cyrn\cyre\cyrd\cyrje\cyre\cyrlje\cyra% + \fi% +} +\newcommand*{\DTMserbiancyrijWeekdayname}[1]{% + \ifcase#1 + \CYRP\cyro\cyrn\cyre\cyrd\cyrje\cyre\cyrlje\cyra\cyrk% + \or% + \CYRU\cyrt\cyro\cyrr\cyra\cyrk% + \or% + \CYRS\cyrr\cyri\cyrje\cyre\cyrd\cyra% + \or% + \CYRCH\cyre\cyrt\cyrv\cyrr\cyrt\cyra\cyrk% + \or% + \CYRP\cyre\cyrt\cyra\cyrk% + \or% + \CYRS\cyru\cyrb\cyro\cyrt\cyra% + \or% + \CYRN\cyre\cyrd\cyrje\cyre\cyrlje\cyra% + \fi% +} +\endinput +%% +%% End of file `datetime2-serbian-base-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-utf8.ldf new file mode 100644 index 00000000000..9d74637d928 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base-utf8.ldf @@ -0,0 +1,344 @@ +%% +%% This is file `datetime2-serbian-base-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-serbian-base-utf8.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{serbian-base-utf8}[2019/11/07 v2.0] +\newcommand*{\DTMserbianlatnoimonthname}[1]{% + \ifcase#1 + \or% + januar% + \or% + februar% + \or% + mart% + \or% + april% + \or% + maj% + \or% + jun% + \or% + jul% + \or% + avgust% + \or% + septembar% + \or% + oktobar% + \or% + novembar% + \or% + decembar% + \fi +} +\newcommand*{\DTMserbianlatnoiMonthname}[1]{% + \ifcase#1 + \or% + Januar% + \or% + Februar% + \or% + Mart% + \or% + April% + \or% + Maj% + \or% + Jun% + \or% + Jul% + \or% + Avgust% + \or% + Septembar% + \or% + Oktobar% + \or% + Novembar% + \or% + Decembar% + \fi +} +\newcommand*{\DTMserbianlatimonthname}[1]{% + \ifnum#1=6% + juni% + \else\ifnum\#1=7% + juli% + \else + \DTMserbianlatnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbianlatiMonthname}[1]{% + \ifnum#1=6% + Juni% + \else\ifnum\#1=7% + Juli% + \else + \DTMserbianlatnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbianlatekweekdayname}[1]{% + \ifcase#1 + ponedeljak% + \or% + utorak% + \or% + sreda% + \or% + četvrtak% + \or% + petak% + \or% + subota% + \or% + nedelja% + \fi% +} +\newcommand*{\DTMserbianlatekWeekdayname}[1]{% + \ifcase#1 + Ponedeljak% + \or% + Utorak% + \or% + Sreda% + \or% + Četvrtak% + \or% + Petak% + \or% + Subota% + \or% + Nedelja% + \fi% +} +\newcommand*{\DTMserbianlatijweekdayname}[1]{% + \ifcase#1 + ponedjeljak% + \or% + utorak% + \or% + srijeda% + \or% + četvrtak% + \or% + petak% + \or% + subota% + \or% + nedjelja% + \fi% +} +\newcommand*{\DTMserbianlatijWeekdayname}[1]{% + \ifcase#1 + Ponedjeljak% + \or% + Utorak% + \or% + Srijeda% + \or% + Četvrtak% + \or% + Petak% + \or% + Subota% + \or% + Nedjelja% + \fi% +} +\newcommand*{\DTMserbiancyrnoimonthname}[1]{% + \ifcase#1 + \or% + јануар% + \or% + фебруар% + \or% + март% + \or% + април% + \or% + мај% + \or% + јун% + \or% + јул% + \or% + август% + \or% + септембар% + \or% + октобар% + \or% + новембар% + \or% + децембар% + \fi +} +\newcommand*{\DTMserbiancyrnoiMonthname}[1]{% + \ifcase#1 + \or% + Јануар% + \or% + Фебруар% + \or% + Март% + \or% + Април% + \or% + Мај% + \or% + Јун% + \or% + Јул% + \or% + Август% + \or% + Септембар% + \or% + Октобар% + \or% + Новембар% + \or% + Децембар% + \fi +} +\newcommand*{\DTMserbiancyrimonthname}[1]{% + \ifnum#1=6% + јуни% + \else\ifnum\#1=7% + јули% + \else + \DTMserbiancyrnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbiancyriMonthname}[1]{% + \ifnum#1=6% + Јуни% + \else\ifnum\#1=7% + Јули% + \else + \DTMserbiancyrnoimonthname% + \fi\fi +} +\newcommand*{\DTMserbiancyrekweekdayname}[1]{% + \ifcase#1 + понедељак% + \or% + уторак% + \or% + среда% + \or% + четвртак% + \or% + петак% + \or% + субота% + \or% + недеља% + \fi% +} +\newcommand*{\DTMserbiancyrekWeekdayname}[1]{% + \ifcase#1 + Понедељак% + \or% + Уторак% + \or% + Среда% + \or% + Четвртак% + \or% + Петак% + \or% + Субота% + \or% + Недеља% + \fi% +} +\newcommand*{\DTMserbiancyrijweekdayname}[1]{% + \ifcase#1 + понедјељак% + \or% + уторак% + \or% + сриједа% + \or% + четвртак% + \or% + петак% + \or% + субота% + \or% + недјеља% + \fi% +} +\newcommand*{\DTMserbiancyrijWeekdayname}[1]{% + \ifcase#1 + Понедјељак% + \or% + Уторак% + \or% + Сриједа% + \or% + Четвртак% + \or% + Петак% + \or% + Субота% + \or% + Недјеља% + \fi% +} +\endinput +%% +%% End of file `datetime2-serbian-base-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base.ldf new file mode 100644 index 00000000000..ba8542abe2a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-base.ldf @@ -0,0 +1,126 @@ +%% +%% This is file `datetime2-serbian-base.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-serbian-base.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{serbian-base}[2019/11/07 v2.0] +\newcommand*{\DTMserbianordinalROMAN}[1]{% + \ifcase#1 + \or% + I% + \or% + II% + \or% + III% + \or% + IV% + \or% + V% + \or% + VI% + \or% + VII% + \or% + VIII% + \or% + IX% + \or% + X% + \or% + XI% + \or% + XII% + \fi +} +\newcommand*{\DTMserbianordinalroman}[1]{% + \ifcase#1 + \or% + i% + \or% + ii% + \or% + iii% + \or% + iv% + \or% + v% + \or% + vi% + \or% + vii% + \or% + viii% + \or% + ix% + \or% + x% + \or% + xi% + \or% + xii% + \fi +} +\RequirePackage{ifxetex,ifluatex} +\ifxetex% + \RequireDateTimeModule{serbian-base-utf8} +\else + \ifluatex% + \RequireDateTimeModule{serbian-base-utf8} + \else + \RequireDateTimeModule{serbian-base-ascii} + \fi +\fi +\endinput +%% +%% End of file `datetime2-serbian-base.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-utf8.ldf deleted file mode 100644 index fe9b997bafc..00000000000 --- a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-utf8.ldf +++ /dev/null @@ -1,160 +0,0 @@ -%% -%% This is file `datetime2-serbian-utf8.ldf', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% datetime2-serbian.dtx (with options: `datetime2-serbian-utf8.ldf,package') -%% -%% datetime2-serbian.dtx -%% Copyright 2019 Nicola Talbot -%% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license of (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 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status `inactive'. -%% -%% This work consists of the files datetime2-serbian.dtx and -%% datetime2-serbian.ins and the derived files -%% datetime2-serbian-utf8.ldf, datetime2-serbian-ascii.ldf and -%% datetime2-serbian.ldf. -%% -%% \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 \~} -\ProvidesDateTimeModule{serbian-utf8}[2019/09/14 v1.0] -\newcommand*{\DTMserbianordinal}[1]{% - \number#1.% -} -\newcommand*{\DTMserbiancyrmonthname}[1]{% - \ifcase#1 - \or - јануар% - \or - фебруар% - \or - март% - \or - април% - \or - мај% - \or - јун% - \or - јул% - \or - август% - \or - септембар% - \or - октобар% - \or - новембар% - \or - децембар% - \fi -} -\newcommand*{\DTMserbiancyrMonthname}[1]{% - \ifcase#1 - \or - Јануар% - \or - Фебруар% - \or - Март% - \or - Април% - \or - Мај% - \or - Јун% - \or - Јул% - \or - Август% - \or - Септембар% - \or - Октобар% - \or - Новембар% - \or - Децембар% - \fi -} -\newcommand*{\DTMserbianlatinmonthname}[1]{% - \ifcase#1 - \or - januar% - \or - februar% - \or - mart% - \or - april% - \or - maj% - \or - juni% - \or - juli% - \or - avgust% - \or - septembar% - \or - oktobar% - \or - novembar% - \or - decembar% - \fi -} -\newcommand*{\DTMserbianlatinMonthname}[1]{% - \ifcase#1 - \or - Januar% - \or - Februar% - \or - Mart% - \or - April% - \or - Maj% - \or - Juni% - \or - Juli% - \or - Avgust% - \or - Septembar% - \or - Oktobar% - \or - Novembar% - \or - Decembar% - \fi -} -\endinput -%% -%% End of file `datetime2-serbian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian.ldf index 6ff1d487e51..a41aef2f6d7 100644 --- a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian.ldf @@ -7,6 +7,7 @@ %% datetime2-serbian.dtx (with options: `datetime2-serbian.ldf,package') %% %% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović %% Copyright 2019 Nicola Talbot %% %% This work may be distributed and/or modified under the @@ -17,12 +18,26 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% -%% This work has the LPPL maintenance status `inactive'. +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. %% %% This work consists of the files datetime2-serbian.dtx and -%% datetime2-serbian.ins and the derived files -%% datetime2-serbian-utf8.ldf, datetime2-serbian-ascii.ldf and -%% datetime2-serbian.ldf. +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% %% %% \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 @@ -39,189 +54,273 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{serbian}[2019/09/14 v1.0] -\RequirePackage{ifxetex,ifluatex} -\ifxetex - \RequireDateTimeModule{serbian-utf8} -\else - \ifluatex - \RequireDateTimeModule{serbian-utf8} - \else - \RequireDateTimeModule{serbian-ascii} - \fi -\fi +\ProvidesDateTimeModule{serbian}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMserbiandowdaysep}{,\space} \newcommand*{\DTMserbiandaymonthsep}{% - \DTMtexorpdfstring{\protect~}{\space}% + \DTMtexorpdfstring{\protect~}{\space}% } \newcommand*{\DTMserbianmonthyearsep}{\space} \newcommand*{\DTMserbiandatetimesep}{\space} \newcommand*{\DTMserbiantimezonesep}{\space} \newcommand*{\DTMserbiandatesep}{.} \newcommand*{\DTMserbiantimesep}{.} -\DTMdefkey{serbian}{daymonthsep}{\renewcommand*{\DTMserbiandaymonthsep}{#1}} -\DTMdefkey{serbian}{monthyearsep}{\renewcommand*{\DTMserbianmonthyearsep}{#1}} -\DTMdefkey{serbian}{datetimesep}{\renewcommand*{\DTMserbiandatetimesep}{#1}} -\DTMdefkey{serbian}{timezonesep}{\renewcommand*{\DTMserbiantimezonesep}{#1}} -\DTMdefkey{serbian}{datesep}{\renewcommand*{\DTMserbiandatesep}{#1}} -\DTMdefkey{serbian}{timesep}{\renewcommand*{\DTMserbiantimesep}{#1}} -\newcommand*{\DTMserbianmonthname}{\DTMserbiancyrmonthname} -\newcommand*{\DTMserbianMonthname}{\DTMserbiancyrMonthname} -\DTMdefchoicekey{serbian}{alphabet}[\val\nr]{cyrillic,latin}{% - \ifcase\nr\relax - \renewcommand*{\DTMserbianmonthname}{\DTMserbiancyrmonthname}% - \renewcommand*{\DTMserbianMonthname}{\DTMserbiancyrMonthname}% - \or - \renewcommand*{\DTMserbianmonthname}{\DTMserbianlatinmonthname}% - \renewcommand*{\DTMserbianMonthname}{\DTMserbianlatinMonthname}% - \fi +\DTMdefkey{serbian}{dowdaysep}% + {\renewcommand*{\DTMserbiandowdaysep}{#1}} +\DTMdefkey{serbian}{daymonthsep}% + {\renewcommand*{\DTMserbiandaymonthsep}{#1}} +\DTMdefkey{serbian}{monthyearsep}% + {\renewcommand*{\DTMserbianmonthyearsep}{#1}} +\DTMdefkey{serbian}{datetimesep}% + {\renewcommand*{\DTMserbiandatetimesep}{#1}} +\DTMdefkey{serbian}{timezonesep}% + {\renewcommand*{\DTMserbiantimezonesep}{#1}} +\DTMdefkey{serbian}{datesep}% + {\renewcommand*{\DTMserbiandatesep}{#1}} +\DTMdefkey{serbian}{timesep}% + {\renewcommand*{\DTMserbiantimesep}{#1}} +\newcommand*{\DTMserbianweekdayname}% +{\DTMserbianlatekweekdayname} + +\newcommand*{\DTMserbianWeekdayname}% + {\DTMserbianlatekWeekdayname} +\DTMdefchoicekey{serbian}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMserbianweekdayname}% + {\DTMserbianlatekweekdayname}% + \renewcommand*{\DTMserbianWeekdayname}% + {\DTMserbianlatekWeekdayname}% + \or% + \renewcommand*{\DTMserbianweekdayname}% + {\DTMserbianlatijweekdayname}% + \renewcommand*{\DTMserbianWeekdayname} + {\DTMserbianlatijWeekdayname}% + \fi } +\DTMdefboolkey{serbian}{monthi}[true]{} +\DTMsetbool{serbian}{monthi}{false} +\DTMdefboolkey{serbian}{leadingzero}[true]{} +\DTMsetbool{serbian}{leadingzero}{false} + \newcommand*{\DTMserbiandayordinal}[1]{% + \DTMifbool{serbian}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMserbiandatesep}% + \newcommand*{\DTMserbianyearordinal}[1]{% + \number#1\DTMserbiandatesep}% +\newcommand*{\DTMserbiannoimonthname}{\DTMserbianlatnoimonthname} +\newcommand*{\DTMserbiannoiMonthname}{\DTMserbianlatnoiMonthname} +\newcommand*{\DTMserbianimonthname}{\DTMserbianlatimonthname} +\newcommand*{\DTMserbianiMonthname}{\DTMserbianlatiMonthname} \DTMdefboolkey{serbian}{mapzone}[true]{} \DTMsetbool{serbian}{mapzone}{true} \DTMdefboolkey{serbian}{showdayofmonth}[true]{} \DTMsetbool{serbian}{showdayofmonth}{true} \DTMdefboolkey{serbian}{showyear}[true]{} \DTMsetbool{serbian}{showyear}{true} -\DTMnewstyle - {serbian}% label - {% date style - \renewcommand*\DTMdisplaydate[4]{% - \DTMifbool{serbian}{showdayofmonth} - {\DTMserbianordinal{##3}\DTMserbiandaymonthsep}% - {}% - \DTMserbianmonthname{##2}% - \DTMifbool{serbian}{showyear}% - {% - \DTMserbianmonthyearsep - \number##1 - }% - {}% - }% - \renewcommand*\DTMDisplaydate[4]{% - \DTMifbool{serbian}{showdayofmonth} - {% - \DTMserbianordinal{##3}\DTMserbiandaymonthsep - \DTMserbianmonthname{##2}% - }% - {% - \DTMserbianMonthname{##2}% - }% - \DTMifbool{serbian}{showyear}% - {% - \DTMserbianmonthyearsep - \number##1 - }% - {}% - }% - }% - {% time style (use default) - \DTMsettimestyle{default}% - }% - {% zone style - \DTMresetzones - \DTMserbianzonemaps - \renewcommand*{\DTMdisplayzone}[2]{% - \DTMifbool{serbian}{mapzone}% - {\DTMusezonemapordefault{##1}{##2}}% - {% - \ifnum##1<0 \else+\fi\DTMtwodigits{##1}% - \ifDTMshowzoneminutes\DTMserbiantimesep\DTMtwodigits{##2}\fi - }% - }% - }% - {% full style - \renewcommand*{\DTMdisplay}[9]{% - \ifDTMshowdate - \DTMdisplaydate{##1}{##2}{##3}{##4}% - \DTMserbiandatetimesep +\DTMnewstyle% +{serbian}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbianweekdayname{##4}% + \DTMserbiandowdaysep% + \fi + \fi + \DTMifbool{serbian}{showdayofmonth} + {\DTMserbiandayordinal{##3}\DTMserbiandaymonthsep}% + {}% + \DTMifbool{serbian}{monthi}% + {\DTMserbianimonthname{##2}}% + {\DTMserbiannoimonthname{##2}}% + \DTMifbool{serbian}{showyear}% + {% + \DTMserbianmonthyearsep% + \DTMserbianyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbianWeekdayname{##4}% + \DTMserbiandowdaysep% + \fi + \fi + \DTMifbool{serbian}{showdayofmonth} + {% + \DTMserbiandayordinal{##3}\DTMserbiandaymonthsep% + \DTMifbool{serbian}{monthi}% + {\DTMserbianimonthname{##2}}% + {\DTMserbiannoimonthname{##2}}% + }% + {% + \DTMifbool{serbian}{monthi}% + {\DTMserbianiMonthname{##2}}% + {\DTMserbiannoiMonthname{##2}}% + }% + \DTMifbool{serbian}{showyear}% + {% + \DTMserbianmonthyearsep% + \DTMserbianyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{serbian}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMserbiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMserbiantimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMserbianzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{serbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMserbiantimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiandatetimesep% \fi \DTMdisplaytime{##5}{##6}{##7}% - \ifDTMshowzone - \DTMserbiantimezonesep - \DTMdisplayzone{##8}{##9}% + \ifDTMshowzone% + \DTMserbiantimezonesep% + \DTMdisplayzone{##8}{##9}% \fi - }% - \renewcommand*{\DTMDisplay}[9]{% - \ifDTMshowdate - \DTMDisplaydate{##1}{##2}{##3}{##4}% - \DTMserbiandatetimesep + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiandatetimesep% \fi \DTMdisplaytime{##5}{##6}{##7}% - \ifDTMshowzone - \DTMserbiantimezonesep - \DTMdisplayzone{##8}{##9}% + \ifDTMshowzone% + \DTMserbiantimezonesep% + \DTMdisplayzone{##8}{##9}% \fi - }% - }% -\DTMnewstyle - {serbian-numeric}% label - {% date style - \renewcommand*\DTMdisplaydate[4]{% - \DTMifbool{serbian}{showdayofmonth}% - {% - \number##3 % space intended - \DTMserbiandatesep - }% - {}% - \number##2 % space intended - \DTMifbool{serbian}{showyear}% - {% - \DTMserbiandatesep - \number##1 % space intended - }% - {}% + }% +}% + \newcommand*{\DTMserbianmonthordinal}[1]{% + \DTMifbool{serbian}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{serbian}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMserbianmonthordinal}[1]{% + \DTMifbool{serbian}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMserbiandatesep}% + \or% + \renewcommand*{\DTMserbianmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMserbianmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{serbian-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbianweekdayname{##4}% + \DTMserbiandowdaysep% + \fi + \fi + \DTMifbool{serbian}{showdayofmonth}% + {\DTMserbiandayordinal{##3}\DTMserbiandaymonthsep}% + {}% + \DTMserbianmonthordinal{##2}% + \DTMifbool{serbian}{showyear}% + {% + \DTMserbianmonthyearsep% + \DTMserbianyearordinal{##1}% }% - \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% - }% - {% time style - \renewcommand*\DTMdisplaytime[3]{% - \number##1 - \DTMserbiantimesep\DTMtwodigits{##2}% - \ifDTMshowseconds\DTMserbiantimesep\DTMtwodigits{##3}\fi + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbianWeekdayname{##4}% + \DTMserbiandowdaysep% + \fi + \fi + \DTMifbool{serbian}{showdayofmonth}% + {\DTMserbiandayordinal{##3}\DTMserbiandaymonthsep}% + {}% + \DTMserbianmonthordinal{##2}% + \DTMifbool{serbian}{showyear}% + {% + \DTMserbianmonthyearsep% + \DTMserbianyearordinal{##1}% }% - }% - {% zone style - \DTMresetzones - \DTMserbianzonemaps - \renewcommand*{\DTMdisplayzone}[2]{% - \DTMifbool{serbian}{mapzone}% - {\DTMusezonemapordefault{##1}{##2}}% - {% - \ifnum##1<0 \else+\fi\DTMtwodigits{##1}% - \ifDTMshowzoneminutes\DTMserbiantimesep\DTMtwodigits{##2}\fi - }% - }% - }% - {% full style - \renewcommand*{\DTMdisplay}[9]{% - \ifDTMshowdate - \DTMdisplaydate{##1}{##2}{##3}{##4}% - \DTMserbiandatetimesep + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{serbian}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMserbiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMserbiantimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMserbianzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{serbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMserbiantimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiandatetimesep% \fi \DTMdisplaytime{##5}{##6}{##7}% - \ifDTMshowzone - \DTMserbiantimezonesep - \DTMdisplayzone{##8}{##9}% + \ifDTMshowzone% + \DTMserbiantimezonesep% + \DTMdisplayzone{##8}{##9}% \fi - }% - \renewcommand*{\DTMDisplay}{\DTMdisplay}% - } + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} \newcommand*{\DTMserbianzonemaps}{% \DTMdefzonemap{01}{00}{CET}% \DTMdefzonemap{02}{00}{CEST}% } -\DTMifcaseregional +\DTMifcaseregional% {}% do nothing -{\DTMsetstyle{serbian}} -{\DTMsetstyle{serbian-numeric}} +{\DTMsetstyle{serbian}}% +{\DTMsetstyle{serbian-numeric}}% \ifcsundef{date\CurrentTrackedDialect} {% - \ifundef\dateserbian + \ifundef\dateserbian% {% do nothing }% {% \def\dateserbian{% - \DTMifcaseregional + \DTMifcaseregional% {}% do nothing {\DTMsetstyle{serbian}}% {\DTMsetstyle{serbian-numeric}}% @@ -230,7 +329,7 @@ }% {% \csdef{date\CurrentTrackedDialect}{% - \DTMifcaseregional + \DTMifcaseregional% {}% do nothing {\DTMsetstyle{serbian}}% {\DTMsetstyle{serbian-numeric}}% diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbianc.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbianc.ldf new file mode 100644 index 00000000000..4ad37b3886b --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbianc.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-serbianc.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-serbianc.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{serbianc}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMserbiancdowdaysep}{,\space} +\newcommand*{\DTMserbiancdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMserbiancmonthyearsep}{\space} +\newcommand*{\DTMserbiancdatetimesep}{\space} +\newcommand*{\DTMserbianctimezonesep}{\space} +\newcommand*{\DTMserbiancdatesep}{.} +\newcommand*{\DTMserbianctimesep}{.} +\DTMdefkey{serbianc}{dowdaysep}% + {\renewcommand*{\DTMserbiancdowdaysep}{#1}} +\DTMdefkey{serbianc}{daymonthsep}% + {\renewcommand*{\DTMserbiancdaymonthsep}{#1}} +\DTMdefkey{serbianc}{monthyearsep}% + {\renewcommand*{\DTMserbiancmonthyearsep}{#1}} +\DTMdefkey{serbianc}{datetimesep}% + {\renewcommand*{\DTMserbiancdatetimesep}{#1}} +\DTMdefkey{serbianc}{timezonesep}% + {\renewcommand*{\DTMserbianctimezonesep}{#1}} +\DTMdefkey{serbianc}{datesep}% + {\renewcommand*{\DTMserbiancdatesep}{#1}} +\DTMdefkey{serbianc}{timesep}% + {\renewcommand*{\DTMserbianctimesep}{#1}} +\newcommand*{\DTMserbiancweekdayname}% +{\DTMserbiancyrekweekdayname} + +\newcommand*{\DTMserbiancWeekdayname}% + {\DTMserbiancyrekWeekdayname} +\DTMdefchoicekey{serbianc}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMserbiancweekdayname}% + {\DTMserbiancyrekweekdayname}% + \renewcommand*{\DTMserbiancWeekdayname}% + {\DTMserbiancyrekWeekdayname}% + \or% + \renewcommand*{\DTMserbiancweekdayname}% + {\DTMserbiancyrijweekdayname}% + \renewcommand*{\DTMserbiancWeekdayname} + {\DTMserbiancyrijWeekdayname}% + \fi +} +\DTMdefboolkey{serbianc}{monthi}[true]{} +\DTMsetbool{serbianc}{monthi}{false} +\DTMdefboolkey{serbianc}{leadingzero}[true]{} +\DTMsetbool{serbianc}{leadingzero}{false} + \newcommand*{\DTMserbiancdayordinal}[1]{% + \DTMifbool{serbianc}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMserbiancdatesep}% + \newcommand*{\DTMserbiancyearordinal}[1]{% + \number#1\DTMserbiancdatesep}% +\newcommand*{\DTMserbiancnoimonthname}{\DTMserbiancyrnoimonthname} +\newcommand*{\DTMserbiancnoiMonthname}{\DTMserbiancyrnoiMonthname} +\newcommand*{\DTMserbiancimonthname}{\DTMserbiancyrimonthname} +\newcommand*{\DTMserbianciMonthname}{\DTMserbiancyriMonthname} +\DTMdefboolkey{serbianc}{mapzone}[true]{} +\DTMsetbool{serbianc}{mapzone}{true} +\DTMdefboolkey{serbianc}{showdayofmonth}[true]{} +\DTMsetbool{serbianc}{showdayofmonth}{true} +\DTMdefboolkey{serbianc}{showyear}[true]{} +\DTMsetbool{serbianc}{showyear}{true} +\DTMnewstyle% +{serbianc}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbiancweekdayname{##4}% + \DTMserbiancdowdaysep% + \fi + \fi + \DTMifbool{serbianc}{showdayofmonth} + {\DTMserbiancdayordinal{##3}\DTMserbiancdaymonthsep}% + {}% + \DTMifbool{serbianc}{monthi}% + {\DTMserbiancimonthname{##2}}% + {\DTMserbiancnoimonthname{##2}}% + \DTMifbool{serbianc}{showyear}% + {% + \DTMserbiancmonthyearsep% + \DTMserbiancyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbiancWeekdayname{##4}% + \DTMserbiancdowdaysep% + \fi + \fi + \DTMifbool{serbianc}{showdayofmonth} + {% + \DTMserbiancdayordinal{##3}\DTMserbiancdaymonthsep% + \DTMifbool{serbianc}{monthi}% + {\DTMserbiancimonthname{##2}}% + {\DTMserbiancnoimonthname{##2}}% + }% + {% + \DTMifbool{serbianc}{monthi}% + {\DTMserbianciMonthname{##2}}% + {\DTMserbiancnoiMonthname{##2}}% + }% + \DTMifbool{serbianc}{showyear}% + {% + \DTMserbiancmonthyearsep% + \DTMserbiancyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{serbianc}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMserbianctimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMserbianctimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMserbianczonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{serbianc}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMserbianctimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiancdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMserbianctimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiancdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMserbianctimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMserbiancmonthordinal}[1]{% + \DTMifbool{serbianc}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{serbianc}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMserbiancmonthordinal}[1]{% + \DTMifbool{serbianc}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMserbiancdatesep}% + \or% + \renewcommand*{\DTMserbiancmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMserbiancmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{serbianc-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbiancweekdayname{##4}% + \DTMserbiancdowdaysep% + \fi + \fi + \DTMifbool{serbianc}{showdayofmonth}% + {\DTMserbiancdayordinal{##3}\DTMserbiancdaymonthsep}% + {}% + \DTMserbiancmonthordinal{##2}% + \DTMifbool{serbianc}{showyear}% + {% + \DTMserbiancmonthyearsep% + \DTMserbiancyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMserbiancWeekdayname{##4}% + \DTMserbiancdowdaysep% + \fi + \fi + \DTMifbool{serbianc}{showdayofmonth}% + {\DTMserbiancdayordinal{##3}\DTMserbiancdaymonthsep}% + {}% + \DTMserbiancmonthordinal{##2}% + \DTMifbool{serbianc}{showyear}% + {% + \DTMserbiancmonthyearsep% + \DTMserbiancyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{serbianc}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMserbianctimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMserbianctimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMserbianczonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{serbianc}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMserbianctimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiancdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMserbianctimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMserbianczonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{serbianc}}% +{\DTMsetstyle{serbianc-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbianc% + {% do nothing + }% + {% + \def\dateserbianc{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{serbianc}}% + {\DTMsetstyle{serbianc-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{serbianc}}% + {\DTMsetstyle{serbianc-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-serbianc.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-BA.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-BA.ldf new file mode 100644 index 00000000000..7538f13b66e --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-BA.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Cyrl-BA.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Cyrl-BA.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Cyrl-BA}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrCyrlBAdowdaysep}{,\space} +\newcommand*{\DTMsrCyrlBAdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrCyrlBAmonthyearsep}{\space} +\newcommand*{\DTMsrCyrlBAdatetimesep}{\space} +\newcommand*{\DTMsrCyrlBAtimezonesep}{\space} +\newcommand*{\DTMsrCyrlBAdatesep}{.} +\newcommand*{\DTMsrCyrlBAtimesep}{.} +\DTMdefkey{sr-Cyrl-BA}{dowdaysep}% + {\renewcommand*{\DTMsr-Cyrl-BAdowdaysep}{#1}} +\DTMdefkey{sr-Cyrl-BA}{daymonthsep}% + {\renewcommand*{\DTMsr-Cyrl-BAdaymonthsep}{#1}} +\DTMdefkey{sr-Cyrl-BA}{monthyearsep}% + {\renewcommand*{\DTMsr-Cyrl-BAmonthyearsep}{#1}} +\DTMdefkey{sr-Cyrl-BA}{datetimesep}% + {\renewcommand*{\DTMsr-Cyrl-BAdatetimesep}{#1}} +\DTMdefkey{sr-Cyrl-BA}{timezonesep}% + {\renewcommand*{\DTMsr-Cyrl-BAtimezonesep}{#1}} +\DTMdefkey{sr-Cyrl-BA}{datesep}% + {\renewcommand*{\DTMsr-Cyrl-BAdatesep}{#1}} +\DTMdefkey{sr-Cyrl-BA}{timesep}% + {\renewcommand*{\DTMsr-Cyrl-BAtimesep}{#1}} +\newcommand*{\DTMsrCyrlBAweekdayname}% +{\DTMserbiancyrijweekdayname} + +\newcommand*{\DTMsrCyrlBAWeekdayname}% + {\DTMserbiancyrijWeekdayname} +\DTMdefchoicekey{sr-Cyrl-BA}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlBAweekdayname}% + {\DTMserbiancyrekweekdayname}% + \renewcommand*{\DTMsrCyrlBAWeekdayname}% + {\DTMserbiancyrekWeekdayname}% + \or% + \renewcommand*{\DTMsrCyrlBAweekdayname}% + {\DTMserbiancyrijweekdayname}% + \renewcommand*{\DTMsrCyrlBAWeekdayname} + {\DTMserbiancyrijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Cyrl-BA}{monthi}[true]{} +\DTMsetbool{sr-Cyrl-BA}{monthi}{false} +\DTMdefboolkey{sr-Cyrl-BA}{leadingzero}[true]{} +\DTMsetbool{sr-Cyrl-BA}{leadingzero}{false} + \newcommand*{\DTMsrCyrlBAdayordinal}[1]{% + \DTMifbool{sr-Cyrl-BA}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrCyrlBAdatesep}% + \newcommand*{\DTMsrCyrlBAyearordinal}[1]{% + \number#1\DTMsrCyrlBAdatesep}% +\newcommand*{\DTMsrCyrlBAnoimonthname}{\DTMserbiancyrnoimonthname} +\newcommand*{\DTMsrCyrlBAnoiMonthname}{\DTMserbiancyrnoiMonthname} +\newcommand*{\DTMsrCyrlBAimonthname}{\DTMserbiancyrimonthname} +\newcommand*{\DTMsrCyrlBAiMonthname}{\DTMserbiancyriMonthname} +\DTMdefboolkey{sr-Cyrl-BA}{mapzone}[true]{} +\DTMsetbool{sr-Cyrl-BA}{mapzone}{true} +\DTMdefboolkey{sr-Cyrl-BA}{showdayofmonth}[true]{} +\DTMsetbool{sr-Cyrl-BA}{showdayofmonth}{true} +\DTMdefboolkey{sr-Cyrl-BA}{showyear}[true]{} +\DTMsetbool{sr-Cyrl-BA}{showyear}{true} +\DTMnewstyle% +{sr-Cyrl-BA}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlBAweekdayname{##4}% + \DTMsrCyrlBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-BA}{showdayofmonth} + {\DTMsrCyrlBAdayordinal{##3}\DTMsrCyrlBAdaymonthsep}% + {}% + \DTMifbool{sr-Cyrl-BA}{monthi}% + {\DTMsrCyrlBAimonthname{##2}}% + {\DTMsrCyrlBAnoimonthname{##2}}% + \DTMifbool{sr-Cyrl-BA}{showyear}% + {% + \DTMsrCyrlBAmonthyearsep% + \DTMsrCyrlBAyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlBAWeekdayname{##4}% + \DTMsrCyrlBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-BA}{showdayofmonth} + {% + \DTMsrCyrlBAdayordinal{##3}\DTMsrCyrlBAdaymonthsep% + \DTMifbool{sr-Cyrl-BA}{monthi}% + {\DTMsrCyrlBAimonthname{##2}}% + {\DTMsrCyrlBAnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Cyrl-BA}{monthi}% + {\DTMsrCyrlBAiMonthname{##2}}% + {\DTMsrCyrlBAnoiMonthname{##2}}% + }% + \DTMifbool{sr-Cyrl-BA}{showyear}% + {% + \DTMsrCyrlBAmonthyearsep% + \DTMsrCyrlBAyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl-BA}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrlBAtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrlBAtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlBAzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl-BA}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrlBAtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlBAdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlBAtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlBAdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlBAtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrCyrlBAmonthordinal}[1]{% + \DTMifbool{sr-Cyrl-BA}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Cyrl-BA}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlBAmonthordinal}[1]{% + \DTMifbool{sr-Cyrl-BA}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrCyrlBAdatesep}% + \or% + \renewcommand*{\DTMsrCyrlBAmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrCyrlBAmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Cyrl-BA-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlBAweekdayname{##4}% + \DTMsrCyrlBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-BA}{showdayofmonth}% + {\DTMsrCyrlBAdayordinal{##3}\DTMsrCyrlBAdaymonthsep}% + {}% + \DTMsrCyrlBAmonthordinal{##2}% + \DTMifbool{sr-Cyrl-BA}{showyear}% + {% + \DTMsrCyrlBAmonthyearsep% + \DTMsrCyrlBAyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlBAWeekdayname{##4}% + \DTMsrCyrlBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-BA}{showdayofmonth}% + {\DTMsrCyrlBAdayordinal{##3}\DTMsrCyrlBAdaymonthsep}% + {}% + \DTMsrCyrlBAmonthordinal{##2}% + \DTMifbool{sr-Cyrl-BA}{showyear}% + {% + \DTMsrCyrlBAmonthyearsep% + \DTMsrCyrlBAyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl-BA}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrlBAtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrlBAtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlBAzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl-BA}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrlBAtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlBAdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlBAtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Cyrl-BAzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Cyrl-BA}}% +{\DTMsetstyle{sr-Cyrl-BA-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbianc% + {% do nothing + }% + {% + \def\dateserbianc{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl-BA}}% + {\DTMsetstyle{sr-Cyrl-BA-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl-BA}}% + {\DTMsetstyle{sr-Cyrl-BA-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Cyrl-BA.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-ME.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-ME.ldf new file mode 100644 index 00000000000..87bdf5cf9ee --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-ME.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Cyrl-ME.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Cyrl-ME.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Cyrl-ME}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrCyrlMEdowdaysep}{,\space} +\newcommand*{\DTMsrCyrlMEdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrCyrlMEmonthyearsep}{\space} +\newcommand*{\DTMsrCyrlMEdatetimesep}{\space} +\newcommand*{\DTMsrCyrlMEtimezonesep}{\space} +\newcommand*{\DTMsrCyrlMEdatesep}{.} +\newcommand*{\DTMsrCyrlMEtimesep}{.} +\DTMdefkey{sr-Cyrl-ME}{dowdaysep}% + {\renewcommand*{\DTMsr-Cyrl-MEdowdaysep}{#1}} +\DTMdefkey{sr-Cyrl-ME}{daymonthsep}% + {\renewcommand*{\DTMsr-Cyrl-MEdaymonthsep}{#1}} +\DTMdefkey{sr-Cyrl-ME}{monthyearsep}% + {\renewcommand*{\DTMsr-Cyrl-MEmonthyearsep}{#1}} +\DTMdefkey{sr-Cyrl-ME}{datetimesep}% + {\renewcommand*{\DTMsr-Cyrl-MEdatetimesep}{#1}} +\DTMdefkey{sr-Cyrl-ME}{timezonesep}% + {\renewcommand*{\DTMsr-Cyrl-MEtimezonesep}{#1}} +\DTMdefkey{sr-Cyrl-ME}{datesep}% + {\renewcommand*{\DTMsr-Cyrl-MEdatesep}{#1}} +\DTMdefkey{sr-Cyrl-ME}{timesep}% + {\renewcommand*{\DTMsr-Cyrl-MEtimesep}{#1}} +\newcommand*{\DTMsrCyrlMEweekdayname}% +{\DTMserbiancyrijweekdayname} + +\newcommand*{\DTMsrCyrlMEWeekdayname}% + {\DTMserbiancyrijWeekdayname} +\DTMdefchoicekey{sr-Cyrl-ME}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlMEweekdayname}% + {\DTMserbiancyrekweekdayname}% + \renewcommand*{\DTMsrCyrlMEWeekdayname}% + {\DTMserbiancyrekWeekdayname}% + \or% + \renewcommand*{\DTMsrCyrlMEweekdayname}% + {\DTMserbiancyrijweekdayname}% + \renewcommand*{\DTMsrCyrlMEWeekdayname} + {\DTMserbiancyrijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Cyrl-ME}{monthi}[true]{} +\DTMsetbool{sr-Cyrl-ME}{monthi}{false} +\DTMdefboolkey{sr-Cyrl-ME}{leadingzero}[true]{} +\DTMsetbool{sr-Cyrl-ME}{leadingzero}{false} + \newcommand*{\DTMsrCyrlMEdayordinal}[1]{% + \DTMifbool{sr-Cyrl-ME}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrCyrlMEdatesep}% + \newcommand*{\DTMsrCyrlMEyearordinal}[1]{% + \number#1\DTMsrCyrlMEdatesep}% +\newcommand*{\DTMsrCyrlMEnoimonthname}{\DTMserbiancyrnoimonthname} +\newcommand*{\DTMsrCyrlMEnoiMonthname}{\DTMserbiancyrnoiMonthname} +\newcommand*{\DTMsrCyrlMEimonthname}{\DTMserbiancyrimonthname} +\newcommand*{\DTMsrCyrlMEiMonthname}{\DTMserbiancyriMonthname} +\DTMdefboolkey{sr-Cyrl-ME}{mapzone}[true]{} +\DTMsetbool{sr-Cyrl-ME}{mapzone}{true} +\DTMdefboolkey{sr-Cyrl-ME}{showdayofmonth}[true]{} +\DTMsetbool{sr-Cyrl-ME}{showdayofmonth}{true} +\DTMdefboolkey{sr-Cyrl-ME}{showyear}[true]{} +\DTMsetbool{sr-Cyrl-ME}{showyear}{true} +\DTMnewstyle% +{sr-Cyrl-ME}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlMEweekdayname{##4}% + \DTMsrCyrlMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-ME}{showdayofmonth} + {\DTMsrCyrlMEdayordinal{##3}\DTMsrCyrlMEdaymonthsep}% + {}% + \DTMifbool{sr-Cyrl-ME}{monthi}% + {\DTMsrCyrlMEimonthname{##2}}% + {\DTMsrCyrlMEnoimonthname{##2}}% + \DTMifbool{sr-Cyrl-ME}{showyear}% + {% + \DTMsrCyrlMEmonthyearsep% + \DTMsrCyrlMEyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlMEWeekdayname{##4}% + \DTMsrCyrlMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-ME}{showdayofmonth} + {% + \DTMsrCyrlMEdayordinal{##3}\DTMsrCyrlMEdaymonthsep% + \DTMifbool{sr-Cyrl-ME}{monthi}% + {\DTMsrCyrlMEimonthname{##2}}% + {\DTMsrCyrlMEnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Cyrl-ME}{monthi}% + {\DTMsrCyrlMEiMonthname{##2}}% + {\DTMsrCyrlMEnoiMonthname{##2}}% + }% + \DTMifbool{sr-Cyrl-ME}{showyear}% + {% + \DTMsrCyrlMEmonthyearsep% + \DTMsrCyrlMEyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl-ME}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrlMEtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrlMEtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlMEzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl-ME}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrlMEtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlMEdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlMEtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlMEdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlMEtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrCyrlMEmonthordinal}[1]{% + \DTMifbool{sr-Cyrl-ME}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Cyrl-ME}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlMEmonthordinal}[1]{% + \DTMifbool{sr-Cyrl-ME}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrCyrlMEdatesep}% + \or% + \renewcommand*{\DTMsrCyrlMEmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrCyrlMEmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Cyrl-ME-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlMEweekdayname{##4}% + \DTMsrCyrlMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-ME}{showdayofmonth}% + {\DTMsrCyrlMEdayordinal{##3}\DTMsrCyrlMEdaymonthsep}% + {}% + \DTMsrCyrlMEmonthordinal{##2}% + \DTMifbool{sr-Cyrl-ME}{showyear}% + {% + \DTMsrCyrlMEmonthyearsep% + \DTMsrCyrlMEyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlMEWeekdayname{##4}% + \DTMsrCyrlMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-ME}{showdayofmonth}% + {\DTMsrCyrlMEdayordinal{##3}\DTMsrCyrlMEdaymonthsep}% + {}% + \DTMsrCyrlMEmonthordinal{##2}% + \DTMifbool{sr-Cyrl-ME}{showyear}% + {% + \DTMsrCyrlMEmonthyearsep% + \DTMsrCyrlMEyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl-ME}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrlMEtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrlMEtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlMEzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl-ME}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrlMEtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlMEdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlMEtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Cyrl-MEzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Cyrl-ME}}% +{\DTMsetstyle{sr-Cyrl-ME-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbianc% + {% do nothing + }% + {% + \def\dateserbianc{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl-ME}}% + {\DTMsetstyle{sr-Cyrl-ME-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl-ME}}% + {\DTMsetstyle{sr-Cyrl-ME-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Cyrl-ME.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-RS.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-RS.ldf new file mode 100644 index 00000000000..2028783a63f --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl-RS.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Cyrl-RS.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Cyrl-RS.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Cyrl-RS}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrCyrlRSdowdaysep}{,\space} +\newcommand*{\DTMsrCyrlRSdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrCyrlRSmonthyearsep}{\space} +\newcommand*{\DTMsrCyrlRSdatetimesep}{\space} +\newcommand*{\DTMsrCyrlRStimezonesep}{\space} +\newcommand*{\DTMsrCyrlRSdatesep}{.} +\newcommand*{\DTMsrCyrlRStimesep}{.} +\DTMdefkey{sr-Cyrl-RS}{dowdaysep}% + {\renewcommand*{\DTMsr-Cyrl-RSdowdaysep}{#1}} +\DTMdefkey{sr-Cyrl-RS}{daymonthsep}% + {\renewcommand*{\DTMsr-Cyrl-RSdaymonthsep}{#1}} +\DTMdefkey{sr-Cyrl-RS}{monthyearsep}% + {\renewcommand*{\DTMsr-Cyrl-RSmonthyearsep}{#1}} +\DTMdefkey{sr-Cyrl-RS}{datetimesep}% + {\renewcommand*{\DTMsr-Cyrl-RSdatetimesep}{#1}} +\DTMdefkey{sr-Cyrl-RS}{timezonesep}% + {\renewcommand*{\DTMsr-Cyrl-RStimezonesep}{#1}} +\DTMdefkey{sr-Cyrl-RS}{datesep}% + {\renewcommand*{\DTMsr-Cyrl-RSdatesep}{#1}} +\DTMdefkey{sr-Cyrl-RS}{timesep}% + {\renewcommand*{\DTMsr-Cyrl-RStimesep}{#1}} +\newcommand*{\DTMsrCyrlRSweekdayname}% +{\DTMserbiancyrijweekdayname} + +\newcommand*{\DTMsrCyrlRSWeekdayname}% + {\DTMserbiancyrijWeekdayname} +\DTMdefchoicekey{sr-Cyrl-RS}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlRSweekdayname}% + {\DTMserbiancyrekweekdayname}% + \renewcommand*{\DTMsrCyrlRSWeekdayname}% + {\DTMserbiancyrekWeekdayname}% + \or% + \renewcommand*{\DTMsrCyrlRSweekdayname}% + {\DTMserbiancyrijweekdayname}% + \renewcommand*{\DTMsrCyrlRSWeekdayname} + {\DTMserbiancyrijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Cyrl-RS}{monthi}[true]{} +\DTMsetbool{sr-Cyrl-RS}{monthi}{false} +\DTMdefboolkey{sr-Cyrl-RS}{leadingzero}[true]{} +\DTMsetbool{sr-Cyrl-RS}{leadingzero}{false} + \newcommand*{\DTMsrCyrlRSdayordinal}[1]{% + \DTMifbool{sr-Cyrl-RS}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrCyrlRSdatesep}% + \newcommand*{\DTMsrCyrlRSyearordinal}[1]{% + \number#1\DTMsrCyrlRSdatesep}% +\newcommand*{\DTMsrCyrlRSnoimonthname}{\DTMserbiancyrnoimonthname} +\newcommand*{\DTMsrCyrlRSnoiMonthname}{\DTMserbiancyrnoiMonthname} +\newcommand*{\DTMsrCyrlRSimonthname}{\DTMserbiancyrimonthname} +\newcommand*{\DTMsrCyrlRSiMonthname}{\DTMserbiancyriMonthname} +\DTMdefboolkey{sr-Cyrl-RS}{mapzone}[true]{} +\DTMsetbool{sr-Cyrl-RS}{mapzone}{true} +\DTMdefboolkey{sr-Cyrl-RS}{showdayofmonth}[true]{} +\DTMsetbool{sr-Cyrl-RS}{showdayofmonth}{true} +\DTMdefboolkey{sr-Cyrl-RS}{showyear}[true]{} +\DTMsetbool{sr-Cyrl-RS}{showyear}{true} +\DTMnewstyle% +{sr-Cyrl-RS}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlRSweekdayname{##4}% + \DTMsrCyrlRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-RS}{showdayofmonth} + {\DTMsrCyrlRSdayordinal{##3}\DTMsrCyrlRSdaymonthsep}% + {}% + \DTMifbool{sr-Cyrl-RS}{monthi}% + {\DTMsrCyrlRSimonthname{##2}}% + {\DTMsrCyrlRSnoimonthname{##2}}% + \DTMifbool{sr-Cyrl-RS}{showyear}% + {% + \DTMsrCyrlRSmonthyearsep% + \DTMsrCyrlRSyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlRSWeekdayname{##4}% + \DTMsrCyrlRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-RS}{showdayofmonth} + {% + \DTMsrCyrlRSdayordinal{##3}\DTMsrCyrlRSdaymonthsep% + \DTMifbool{sr-Cyrl-RS}{monthi}% + {\DTMsrCyrlRSimonthname{##2}}% + {\DTMsrCyrlRSnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Cyrl-RS}{monthi}% + {\DTMsrCyrlRSiMonthname{##2}}% + {\DTMsrCyrlRSnoiMonthname{##2}}% + }% + \DTMifbool{sr-Cyrl-RS}{showyear}% + {% + \DTMsrCyrlRSmonthyearsep% + \DTMsrCyrlRSyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl-RS}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrlRStimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrlRStimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlRSzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl-RS}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrlRStimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlRSdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlRStimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlRSdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlRStimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrCyrlRSmonthordinal}[1]{% + \DTMifbool{sr-Cyrl-RS}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Cyrl-RS}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlRSmonthordinal}[1]{% + \DTMifbool{sr-Cyrl-RS}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrCyrlRSdatesep}% + \or% + \renewcommand*{\DTMsrCyrlRSmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrCyrlRSmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Cyrl-RS-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlRSweekdayname{##4}% + \DTMsrCyrlRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-RS}{showdayofmonth}% + {\DTMsrCyrlRSdayordinal{##3}\DTMsrCyrlRSdaymonthsep}% + {}% + \DTMsrCyrlRSmonthordinal{##2}% + \DTMifbool{sr-Cyrl-RS}{showyear}% + {% + \DTMsrCyrlRSmonthyearsep% + \DTMsrCyrlRSyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlRSWeekdayname{##4}% + \DTMsrCyrlRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl-RS}{showdayofmonth}% + {\DTMsrCyrlRSdayordinal{##3}\DTMsrCyrlRSdaymonthsep}% + {}% + \DTMsrCyrlRSmonthordinal{##2}% + \DTMifbool{sr-Cyrl-RS}{showyear}% + {% + \DTMsrCyrlRSmonthyearsep% + \DTMsrCyrlRSyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl-RS}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrlRStimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrlRStimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlRSzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl-RS}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrlRStimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrlRSdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrlRStimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Cyrl-RSzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Cyrl-RS}}% +{\DTMsetstyle{sr-Cyrl-RS-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbianc% + {% do nothing + }% + {% + \def\dateserbianc{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl-RS}}% + {\DTMsetstyle{sr-Cyrl-RS-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl-RS}}% + {\DTMsetstyle{sr-Cyrl-RS-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Cyrl-RS.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl.ldf new file mode 100644 index 00000000000..d85900418c4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Cyrl.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Cyrl.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Cyrl.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Cyrl}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrCyrldowdaysep}{,\space} +\newcommand*{\DTMsrCyrldaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrCyrlmonthyearsep}{\space} +\newcommand*{\DTMsrCyrldatetimesep}{\space} +\newcommand*{\DTMsrCyrltimezonesep}{\space} +\newcommand*{\DTMsrCyrldatesep}{.} +\newcommand*{\DTMsrCyrltimesep}{.} +\DTMdefkey{sr-Cyrl}{dowdaysep}% + {\renewcommand*{\DTMsr-Cyrldowdaysep}{#1}} +\DTMdefkey{sr-Cyrl}{daymonthsep}% + {\renewcommand*{\DTMsr-Cyrldaymonthsep}{#1}} +\DTMdefkey{sr-Cyrl}{monthyearsep}% + {\renewcommand*{\DTMsr-Cyrlmonthyearsep}{#1}} +\DTMdefkey{sr-Cyrl}{datetimesep}% + {\renewcommand*{\DTMsr-Cyrldatetimesep}{#1}} +\DTMdefkey{sr-Cyrl}{timezonesep}% + {\renewcommand*{\DTMsr-Cyrltimezonesep}{#1}} +\DTMdefkey{sr-Cyrl}{datesep}% + {\renewcommand*{\DTMsr-Cyrldatesep}{#1}} +\DTMdefkey{sr-Cyrl}{timesep}% + {\renewcommand*{\DTMsr-Cyrltimesep}{#1}} +\newcommand*{\DTMsrCyrlweekdayname}% +{\DTMserbiancyrekweekdayname} + +\newcommand*{\DTMsrCyrlWeekdayname}% + {\DTMserbiancyrekWeekdayname} +\DTMdefchoicekey{sr-Cyrl}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlweekdayname}% + {\DTMserbiancyrekweekdayname}% + \renewcommand*{\DTMsrCyrlWeekdayname}% + {\DTMserbiancyrekWeekdayname}% + \or% + \renewcommand*{\DTMsrCyrlweekdayname}% + {\DTMserbiancyrijweekdayname}% + \renewcommand*{\DTMsrCyrlWeekdayname} + {\DTMserbiancyrijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Cyrl}{monthi}[true]{} +\DTMsetbool{sr-Cyrl}{monthi}{false} +\DTMdefboolkey{sr-Cyrl}{leadingzero}[true]{} +\DTMsetbool{sr-Cyrl}{leadingzero}{false} + \newcommand*{\DTMsrCyrldayordinal}[1]{% + \DTMifbool{sr-Cyrl}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrCyrldatesep}% + \newcommand*{\DTMsrCyrlyearordinal}[1]{% + \number#1\DTMsrCyrldatesep}% +\newcommand*{\DTMsrCyrlnoimonthname}{\DTMserbiancyrnoimonthname} +\newcommand*{\DTMsrCyrlnoiMonthname}{\DTMserbiancyrnoiMonthname} +\newcommand*{\DTMsrCyrlimonthname}{\DTMserbiancyrimonthname} +\newcommand*{\DTMsrCyrliMonthname}{\DTMserbiancyriMonthname} +\DTMdefboolkey{sr-Cyrl}{mapzone}[true]{} +\DTMsetbool{sr-Cyrl}{mapzone}{true} +\DTMdefboolkey{sr-Cyrl}{showdayofmonth}[true]{} +\DTMsetbool{sr-Cyrl}{showdayofmonth}{true} +\DTMdefboolkey{sr-Cyrl}{showyear}[true]{} +\DTMsetbool{sr-Cyrl}{showyear}{true} +\DTMnewstyle% +{sr-Cyrl}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlweekdayname{##4}% + \DTMsrCyrldowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl}{showdayofmonth} + {\DTMsrCyrldayordinal{##3}\DTMsrCyrldaymonthsep}% + {}% + \DTMifbool{sr-Cyrl}{monthi}% + {\DTMsrCyrlimonthname{##2}}% + {\DTMsrCyrlnoimonthname{##2}}% + \DTMifbool{sr-Cyrl}{showyear}% + {% + \DTMsrCyrlmonthyearsep% + \DTMsrCyrlyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlWeekdayname{##4}% + \DTMsrCyrldowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl}{showdayofmonth} + {% + \DTMsrCyrldayordinal{##3}\DTMsrCyrldaymonthsep% + \DTMifbool{sr-Cyrl}{monthi}% + {\DTMsrCyrlimonthname{##2}}% + {\DTMsrCyrlnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Cyrl}{monthi}% + {\DTMsrCyrliMonthname{##2}}% + {\DTMsrCyrlnoiMonthname{##2}}% + }% + \DTMifbool{sr-Cyrl}{showyear}% + {% + \DTMsrCyrlmonthyearsep% + \DTMsrCyrlyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrltimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrltimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrltimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrldatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrltimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrldatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrltimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrCyrlmonthordinal}[1]{% + \DTMifbool{sr-Cyrl}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Cyrl}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrCyrlmonthordinal}[1]{% + \DTMifbool{sr-Cyrl}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrCyrldatesep}% + \or% + \renewcommand*{\DTMsrCyrlmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrCyrlmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Cyrl-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlweekdayname{##4}% + \DTMsrCyrldowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl}{showdayofmonth}% + {\DTMsrCyrldayordinal{##3}\DTMsrCyrldaymonthsep}% + {}% + \DTMsrCyrlmonthordinal{##2}% + \DTMifbool{sr-Cyrl}{showyear}% + {% + \DTMsrCyrlmonthyearsep% + \DTMsrCyrlyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrCyrlWeekdayname{##4}% + \DTMsrCyrldowdaysep% + \fi + \fi + \DTMifbool{sr-Cyrl}{showdayofmonth}% + {\DTMsrCyrldayordinal{##3}\DTMsrCyrldaymonthsep}% + {}% + \DTMsrCyrlmonthordinal{##2}% + \DTMifbool{sr-Cyrl}{showyear}% + {% + \DTMsrCyrlmonthyearsep% + \DTMsrCyrlyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Cyrl}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrCyrltimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrCyrltimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrCyrlzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Cyrl}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrCyrltimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrCyrldatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrCyrltimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Cyrlzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Cyrl}}% +{\DTMsetstyle{sr-Cyrl-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbianc% + {% do nothing + }% + {% + \def\dateserbianc{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl}}% + {\DTMsetstyle{sr-Cyrl-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Cyrl}}% + {\DTMsetstyle{sr-Cyrl-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Cyrl.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-BA.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-BA.ldf new file mode 100644 index 00000000000..2298f1b412a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-BA.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Latn-BA.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Latn-BA.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Latn-BA}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrLatnBAdowdaysep}{,\space} +\newcommand*{\DTMsrLatnBAdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrLatnBAmonthyearsep}{\space} +\newcommand*{\DTMsrLatnBAdatetimesep}{\space} +\newcommand*{\DTMsrLatnBAtimezonesep}{\space} +\newcommand*{\DTMsrLatnBAdatesep}{.} +\newcommand*{\DTMsrLatnBAtimesep}{.} +\DTMdefkey{sr-Latn-BA}{dowdaysep}% + {\renewcommand*{\DTMsr-Latn-BAdowdaysep}{#1}} +\DTMdefkey{sr-Latn-BA}{daymonthsep}% + {\renewcommand*{\DTMsr-Latn-BAdaymonthsep}{#1}} +\DTMdefkey{sr-Latn-BA}{monthyearsep}% + {\renewcommand*{\DTMsr-Latn-BAmonthyearsep}{#1}} +\DTMdefkey{sr-Latn-BA}{datetimesep}% + {\renewcommand*{\DTMsr-Latn-BAdatetimesep}{#1}} +\DTMdefkey{sr-Latn-BA}{timezonesep}% + {\renewcommand*{\DTMsr-Latn-BAtimezonesep}{#1}} +\DTMdefkey{sr-Latn-BA}{datesep}% + {\renewcommand*{\DTMsr-Latn-BAdatesep}{#1}} +\DTMdefkey{sr-Latn-BA}{timesep}% + {\renewcommand*{\DTMsr-Latn-BAtimesep}{#1}} +\newcommand*{\DTMsrLatnBAweekdayname}% +{\DTMserbianlatijweekdayname} + +\newcommand*{\DTMsrLatnBAWeekdayname}% + {\DTMserbianlatijWeekdayname} +\DTMdefchoicekey{sr-Latn-BA}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnBAweekdayname}% + {\DTMserbianlatekweekdayname}% + \renewcommand*{\DTMsrLatnBAWeekdayname}% + {\DTMserbianlatekWeekdayname}% + \or% + \renewcommand*{\DTMsrLatnBAweekdayname}% + {\DTMserbianlatijweekdayname}% + \renewcommand*{\DTMsrLatnBAWeekdayname} + {\DTMserbianlatijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Latn-BA}{monthi}[true]{} +\DTMsetbool{sr-Latn-BA}{monthi}{false} +\DTMdefboolkey{sr-Latn-BA}{leadingzero}[true]{} +\DTMsetbool{sr-Latn-BA}{leadingzero}{false} + \newcommand*{\DTMsrLatnBAdayordinal}[1]{% + \DTMifbool{sr-Latn-BA}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrLatnBAdatesep}% + \newcommand*{\DTMsrLatnBAyearordinal}[1]{% + \number#1\DTMsrLatnBAdatesep}% +\newcommand*{\DTMsrLatnBAnoimonthname}{\DTMserbianlatnoimonthname} +\newcommand*{\DTMsrLatnBAnoiMonthname}{\DTMserbianlatnoiMonthname} +\newcommand*{\DTMsrLatnBAimonthname}{\DTMserbianlatimonthname} +\newcommand*{\DTMsrLatnBAiMonthname}{\DTMserbianlatiMonthname} +\DTMdefboolkey{sr-Latn-BA}{mapzone}[true]{} +\DTMsetbool{sr-Latn-BA}{mapzone}{true} +\DTMdefboolkey{sr-Latn-BA}{showdayofmonth}[true]{} +\DTMsetbool{sr-Latn-BA}{showdayofmonth}{true} +\DTMdefboolkey{sr-Latn-BA}{showyear}[true]{} +\DTMsetbool{sr-Latn-BA}{showyear}{true} +\DTMnewstyle% +{sr-Latn-BA}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnBAweekdayname{##4}% + \DTMsrLatnBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-BA}{showdayofmonth} + {\DTMsrLatnBAdayordinal{##3}\DTMsrLatnBAdaymonthsep}% + {}% + \DTMifbool{sr-Latn-BA}{monthi}% + {\DTMsrLatnBAimonthname{##2}}% + {\DTMsrLatnBAnoimonthname{##2}}% + \DTMifbool{sr-Latn-BA}{showyear}% + {% + \DTMsrLatnBAmonthyearsep% + \DTMsrLatnBAyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnBAWeekdayname{##4}% + \DTMsrLatnBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-BA}{showdayofmonth} + {% + \DTMsrLatnBAdayordinal{##3}\DTMsrLatnBAdaymonthsep% + \DTMifbool{sr-Latn-BA}{monthi}% + {\DTMsrLatnBAimonthname{##2}}% + {\DTMsrLatnBAnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Latn-BA}{monthi}% + {\DTMsrLatnBAiMonthname{##2}}% + {\DTMsrLatnBAnoiMonthname{##2}}% + }% + \DTMifbool{sr-Latn-BA}{showyear}% + {% + \DTMsrLatnBAmonthyearsep% + \DTMsrLatnBAyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn-BA}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatnBAtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatnBAtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnBAzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn-BA}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatnBAtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnBAdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnBAtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnBAdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnBAtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrLatnBAmonthordinal}[1]{% + \DTMifbool{sr-Latn-BA}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Latn-BA}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnBAmonthordinal}[1]{% + \DTMifbool{sr-Latn-BA}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrLatnBAdatesep}% + \or% + \renewcommand*{\DTMsrLatnBAmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrLatnBAmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Latn-BA-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnBAweekdayname{##4}% + \DTMsrLatnBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-BA}{showdayofmonth}% + {\DTMsrLatnBAdayordinal{##3}\DTMsrLatnBAdaymonthsep}% + {}% + \DTMsrLatnBAmonthordinal{##2}% + \DTMifbool{sr-Latn-BA}{showyear}% + {% + \DTMsrLatnBAmonthyearsep% + \DTMsrLatnBAyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnBAWeekdayname{##4}% + \DTMsrLatnBAdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-BA}{showdayofmonth}% + {\DTMsrLatnBAdayordinal{##3}\DTMsrLatnBAdaymonthsep}% + {}% + \DTMsrLatnBAmonthordinal{##2}% + \DTMifbool{sr-Latn-BA}{showyear}% + {% + \DTMsrLatnBAmonthyearsep% + \DTMsrLatnBAyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn-BA}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatnBAtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatnBAtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnBAzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn-BA}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatnBAtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnBAdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnBAtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Latn-BAzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Latn-BA}}% +{\DTMsetstyle{sr-Latn-BA-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbian% + {% do nothing + }% + {% + \def\dateserbian{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn-BA}}% + {\DTMsetstyle{sr-Latn-BA-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn-BA}}% + {\DTMsetstyle{sr-Latn-BA-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Latn-BA.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-ME.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-ME.ldf new file mode 100644 index 00000000000..b49ceec3cbd --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-ME.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Latn-ME.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Latn-ME.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Latn-ME}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrLatnMEdowdaysep}{,\space} +\newcommand*{\DTMsrLatnMEdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrLatnMEmonthyearsep}{\space} +\newcommand*{\DTMsrLatnMEdatetimesep}{\space} +\newcommand*{\DTMsrLatnMEtimezonesep}{\space} +\newcommand*{\DTMsrLatnMEdatesep}{.} +\newcommand*{\DTMsrLatnMEtimesep}{.} +\DTMdefkey{sr-Latn-ME}{dowdaysep}% + {\renewcommand*{\DTMsr-Latn-MEdowdaysep}{#1}} +\DTMdefkey{sr-Latn-ME}{daymonthsep}% + {\renewcommand*{\DTMsr-Latn-MEdaymonthsep}{#1}} +\DTMdefkey{sr-Latn-ME}{monthyearsep}% + {\renewcommand*{\DTMsr-Latn-MEmonthyearsep}{#1}} +\DTMdefkey{sr-Latn-ME}{datetimesep}% + {\renewcommand*{\DTMsr-Latn-MEdatetimesep}{#1}} +\DTMdefkey{sr-Latn-ME}{timezonesep}% + {\renewcommand*{\DTMsr-Latn-MEtimezonesep}{#1}} +\DTMdefkey{sr-Latn-ME}{datesep}% + {\renewcommand*{\DTMsr-Latn-MEdatesep}{#1}} +\DTMdefkey{sr-Latn-ME}{timesep}% + {\renewcommand*{\DTMsr-Latn-MEtimesep}{#1}} +\newcommand*{\DTMsrLatnMEweekdayname}% +{\DTMserbianlatijweekdayname} + +\newcommand*{\DTMsrLatnMEWeekdayname}% + {\DTMserbianlatijWeekdayname} +\DTMdefchoicekey{sr-Latn-ME}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnMEweekdayname}% + {\DTMserbianlatekweekdayname}% + \renewcommand*{\DTMsrLatnMEWeekdayname}% + {\DTMserbianlatekWeekdayname}% + \or% + \renewcommand*{\DTMsrLatnMEweekdayname}% + {\DTMserbianlatijweekdayname}% + \renewcommand*{\DTMsrLatnMEWeekdayname} + {\DTMserbianlatijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Latn-ME}{monthi}[true]{} +\DTMsetbool{sr-Latn-ME}{monthi}{false} +\DTMdefboolkey{sr-Latn-ME}{leadingzero}[true]{} +\DTMsetbool{sr-Latn-ME}{leadingzero}{false} + \newcommand*{\DTMsrLatnMEdayordinal}[1]{% + \DTMifbool{sr-Latn-ME}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrLatnMEdatesep}% + \newcommand*{\DTMsrLatnMEyearordinal}[1]{% + \number#1\DTMsrLatnMEdatesep}% +\newcommand*{\DTMsrLatnMEnoimonthname}{\DTMserbianlatnoimonthname} +\newcommand*{\DTMsrLatnMEnoiMonthname}{\DTMserbianlatnoiMonthname} +\newcommand*{\DTMsrLatnMEimonthname}{\DTMserbianlatimonthname} +\newcommand*{\DTMsrLatnMEiMonthname}{\DTMserbianlatiMonthname} +\DTMdefboolkey{sr-Latn-ME}{mapzone}[true]{} +\DTMsetbool{sr-Latn-ME}{mapzone}{true} +\DTMdefboolkey{sr-Latn-ME}{showdayofmonth}[true]{} +\DTMsetbool{sr-Latn-ME}{showdayofmonth}{true} +\DTMdefboolkey{sr-Latn-ME}{showyear}[true]{} +\DTMsetbool{sr-Latn-ME}{showyear}{true} +\DTMnewstyle% +{sr-Latn-ME}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnMEweekdayname{##4}% + \DTMsrLatnMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-ME}{showdayofmonth} + {\DTMsrLatnMEdayordinal{##3}\DTMsrLatnMEdaymonthsep}% + {}% + \DTMifbool{sr-Latn-ME}{monthi}% + {\DTMsrLatnMEimonthname{##2}}% + {\DTMsrLatnMEnoimonthname{##2}}% + \DTMifbool{sr-Latn-ME}{showyear}% + {% + \DTMsrLatnMEmonthyearsep% + \DTMsrLatnMEyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnMEWeekdayname{##4}% + \DTMsrLatnMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-ME}{showdayofmonth} + {% + \DTMsrLatnMEdayordinal{##3}\DTMsrLatnMEdaymonthsep% + \DTMifbool{sr-Latn-ME}{monthi}% + {\DTMsrLatnMEimonthname{##2}}% + {\DTMsrLatnMEnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Latn-ME}{monthi}% + {\DTMsrLatnMEiMonthname{##2}}% + {\DTMsrLatnMEnoiMonthname{##2}}% + }% + \DTMifbool{sr-Latn-ME}{showyear}% + {% + \DTMsrLatnMEmonthyearsep% + \DTMsrLatnMEyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn-ME}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatnMEtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatnMEtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnMEzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn-ME}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatnMEtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnMEdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnMEtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnMEdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnMEtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrLatnMEmonthordinal}[1]{% + \DTMifbool{sr-Latn-ME}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Latn-ME}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnMEmonthordinal}[1]{% + \DTMifbool{sr-Latn-ME}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrLatnMEdatesep}% + \or% + \renewcommand*{\DTMsrLatnMEmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrLatnMEmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Latn-ME-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnMEweekdayname{##4}% + \DTMsrLatnMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-ME}{showdayofmonth}% + {\DTMsrLatnMEdayordinal{##3}\DTMsrLatnMEdaymonthsep}% + {}% + \DTMsrLatnMEmonthordinal{##2}% + \DTMifbool{sr-Latn-ME}{showyear}% + {% + \DTMsrLatnMEmonthyearsep% + \DTMsrLatnMEyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnMEWeekdayname{##4}% + \DTMsrLatnMEdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-ME}{showdayofmonth}% + {\DTMsrLatnMEdayordinal{##3}\DTMsrLatnMEdaymonthsep}% + {}% + \DTMsrLatnMEmonthordinal{##2}% + \DTMifbool{sr-Latn-ME}{showyear}% + {% + \DTMsrLatnMEmonthyearsep% + \DTMsrLatnMEyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn-ME}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatnMEtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatnMEtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnMEzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn-ME}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatnMEtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnMEdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnMEtimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Latn-MEzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Latn-ME}}% +{\DTMsetstyle{sr-Latn-ME-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbian% + {% do nothing + }% + {% + \def\dateserbian{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn-ME}}% + {\DTMsetstyle{sr-Latn-ME-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn-ME}}% + {\DTMsetstyle{sr-Latn-ME-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Latn-ME.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-RS.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-RS.ldf new file mode 100644 index 00000000000..c165c996dfc --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn-RS.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Latn-RS.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Latn-RS.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Latn-RS}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrLatnRSdowdaysep}{,\space} +\newcommand*{\DTMsrLatnRSdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrLatnRSmonthyearsep}{\space} +\newcommand*{\DTMsrLatnRSdatetimesep}{\space} +\newcommand*{\DTMsrLatnRStimezonesep}{\space} +\newcommand*{\DTMsrLatnRSdatesep}{.} +\newcommand*{\DTMsrLatnRStimesep}{.} +\DTMdefkey{sr-Latn-RS}{dowdaysep}% + {\renewcommand*{\DTMsr-Latn-RSdowdaysep}{#1}} +\DTMdefkey{sr-Latn-RS}{daymonthsep}% + {\renewcommand*{\DTMsr-Latn-RSdaymonthsep}{#1}} +\DTMdefkey{sr-Latn-RS}{monthyearsep}% + {\renewcommand*{\DTMsr-Latn-RSmonthyearsep}{#1}} +\DTMdefkey{sr-Latn-RS}{datetimesep}% + {\renewcommand*{\DTMsr-Latn-RSdatetimesep}{#1}} +\DTMdefkey{sr-Latn-RS}{timezonesep}% + {\renewcommand*{\DTMsr-Latn-RStimezonesep}{#1}} +\DTMdefkey{sr-Latn-RS}{datesep}% + {\renewcommand*{\DTMsr-Latn-RSdatesep}{#1}} +\DTMdefkey{sr-Latn-RS}{timesep}% + {\renewcommand*{\DTMsr-Latn-RStimesep}{#1}} +\newcommand*{\DTMsrLatnRSweekdayname}% +{\DTMserbianlatekweekdayname} + +\newcommand*{\DTMsrLatnRSWeekdayname}% + {\DTMserbianlatekWeekdayname} +\DTMdefchoicekey{sr-Latn-RS}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnRSweekdayname}% + {\DTMserbianlatekweekdayname}% + \renewcommand*{\DTMsrLatnRSWeekdayname}% + {\DTMserbianlatekWeekdayname}% + \or% + \renewcommand*{\DTMsrLatnRSweekdayname}% + {\DTMserbianlatijweekdayname}% + \renewcommand*{\DTMsrLatnRSWeekdayname} + {\DTMserbianlatijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Latn-RS}{monthi}[true]{} +\DTMsetbool{sr-Latn-RS}{monthi}{false} +\DTMdefboolkey{sr-Latn-RS}{leadingzero}[true]{} +\DTMsetbool{sr-Latn-RS}{leadingzero}{false} + \newcommand*{\DTMsrLatnRSdayordinal}[1]{% + \DTMifbool{sr-Latn-RS}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrLatnRSdatesep}% + \newcommand*{\DTMsrLatnRSyearordinal}[1]{% + \number#1\DTMsrLatnRSdatesep}% +\newcommand*{\DTMsrLatnRSnoimonthname}{\DTMserbianlatnoimonthname} +\newcommand*{\DTMsrLatnRSnoiMonthname}{\DTMserbianlatnoiMonthname} +\newcommand*{\DTMsrLatnRSimonthname}{\DTMserbianlatimonthname} +\newcommand*{\DTMsrLatnRSiMonthname}{\DTMserbianlatiMonthname} +\DTMdefboolkey{sr-Latn-RS}{mapzone}[true]{} +\DTMsetbool{sr-Latn-RS}{mapzone}{true} +\DTMdefboolkey{sr-Latn-RS}{showdayofmonth}[true]{} +\DTMsetbool{sr-Latn-RS}{showdayofmonth}{true} +\DTMdefboolkey{sr-Latn-RS}{showyear}[true]{} +\DTMsetbool{sr-Latn-RS}{showyear}{true} +\DTMnewstyle% +{sr-Latn-RS}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnRSweekdayname{##4}% + \DTMsrLatnRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-RS}{showdayofmonth} + {\DTMsrLatnRSdayordinal{##3}\DTMsrLatnRSdaymonthsep}% + {}% + \DTMifbool{sr-Latn-RS}{monthi}% + {\DTMsrLatnRSimonthname{##2}}% + {\DTMsrLatnRSnoimonthname{##2}}% + \DTMifbool{sr-Latn-RS}{showyear}% + {% + \DTMsrLatnRSmonthyearsep% + \DTMsrLatnRSyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnRSWeekdayname{##4}% + \DTMsrLatnRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-RS}{showdayofmonth} + {% + \DTMsrLatnRSdayordinal{##3}\DTMsrLatnRSdaymonthsep% + \DTMifbool{sr-Latn-RS}{monthi}% + {\DTMsrLatnRSimonthname{##2}}% + {\DTMsrLatnRSnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Latn-RS}{monthi}% + {\DTMsrLatnRSiMonthname{##2}}% + {\DTMsrLatnRSnoiMonthname{##2}}% + }% + \DTMifbool{sr-Latn-RS}{showyear}% + {% + \DTMsrLatnRSmonthyearsep% + \DTMsrLatnRSyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn-RS}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatnRStimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatnRStimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnRSzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn-RS}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatnRStimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnRSdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnRStimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnRSdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnRStimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrLatnRSmonthordinal}[1]{% + \DTMifbool{sr-Latn-RS}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Latn-RS}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnRSmonthordinal}[1]{% + \DTMifbool{sr-Latn-RS}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrLatnRSdatesep}% + \or% + \renewcommand*{\DTMsrLatnRSmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrLatnRSmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Latn-RS-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnRSweekdayname{##4}% + \DTMsrLatnRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-RS}{showdayofmonth}% + {\DTMsrLatnRSdayordinal{##3}\DTMsrLatnRSdaymonthsep}% + {}% + \DTMsrLatnRSmonthordinal{##2}% + \DTMifbool{sr-Latn-RS}{showyear}% + {% + \DTMsrLatnRSmonthyearsep% + \DTMsrLatnRSyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnRSWeekdayname{##4}% + \DTMsrLatnRSdowdaysep% + \fi + \fi + \DTMifbool{sr-Latn-RS}{showdayofmonth}% + {\DTMsrLatnRSdayordinal{##3}\DTMsrLatnRSdaymonthsep}% + {}% + \DTMsrLatnRSmonthordinal{##2}% + \DTMifbool{sr-Latn-RS}{showyear}% + {% + \DTMsrLatnRSmonthyearsep% + \DTMsrLatnRSyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn-RS}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatnRStimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatnRStimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnRSzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn-RS}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatnRStimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatnRSdatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatnRStimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Latn-RSzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Latn-RS}}% +{\DTMsetstyle{sr-Latn-RS-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbian% + {% do nothing + }% + {% + \def\dateserbian{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn-RS}}% + {\DTMsetstyle{sr-Latn-RS-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn-RS}}% + {\DTMsetstyle{sr-Latn-RS-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Latn-RS.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn.ldf new file mode 100644 index 00000000000..5c8e0e372a5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-sr-Latn.ldf @@ -0,0 +1,340 @@ +%% +%% This is file `datetime2-sr-Latn.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-sr-Latn.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2019 Andrej Radović +%% Copyright 2019 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (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 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Andrej Radović. +%% +%% This work consists of the files datetime2-serbian.dtx and +%% datetime2-serbian.ins and the derived files are as follows: +%% datetime2-serbian-base.ldf +%% datetime2-serbian-base-utf8.ldf +%% datetime2-serbian-base-ascii.ldf +%% datetime2-serbian.ldf +%% datetime2-sr-Latn.ldf +%% datetime2-sr-Latn-RS.ldf +%% datetime2-sr-Latn-ME.ldf +%% datetime2-sr-Latn-BA.ldf +%% datetime2-serbianc.ldf +%% datetime2-sr-Cyrl.ldf +%% datetime2-sr-Cyrl-RS.ldf +%% datetime2-sr-Cyrl-ME.ldf +%% datetime2-sr-Cyrl-BA.ldf +%% +%% +%% \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 \~} +\ProvidesDateTimeModule{sr-Latn}[2019/11/07 v2.0] +\RequireDateTimeModule{serbian-base} +\newcommand*{\DTMsrLatndowdaysep}{,\space} +\newcommand*{\DTMsrLatndaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMsrLatnmonthyearsep}{\space} +\newcommand*{\DTMsrLatndatetimesep}{\space} +\newcommand*{\DTMsrLatntimezonesep}{\space} +\newcommand*{\DTMsrLatndatesep}{.} +\newcommand*{\DTMsrLatntimesep}{.} +\DTMdefkey{sr-Latn}{dowdaysep}% + {\renewcommand*{\DTMsr-Latndowdaysep}{#1}} +\DTMdefkey{sr-Latn}{daymonthsep}% + {\renewcommand*{\DTMsr-Latndaymonthsep}{#1}} +\DTMdefkey{sr-Latn}{monthyearsep}% + {\renewcommand*{\DTMsr-Latnmonthyearsep}{#1}} +\DTMdefkey{sr-Latn}{datetimesep}% + {\renewcommand*{\DTMsr-Latndatetimesep}{#1}} +\DTMdefkey{sr-Latn}{timezonesep}% + {\renewcommand*{\DTMsr-Latntimezonesep}{#1}} +\DTMdefkey{sr-Latn}{datesep}% + {\renewcommand*{\DTMsr-Latndatesep}{#1}} +\DTMdefkey{sr-Latn}{timesep}% + {\renewcommand*{\DTMsr-Latntimesep}{#1}} +\newcommand*{\DTMsrLatnweekdayname}% +{\DTMserbianlatekweekdayname} + +\newcommand*{\DTMsrLatnWeekdayname}% + {\DTMserbianlatekWeekdayname} +\DTMdefchoicekey{sr-Latn}% + {pronunciation}[\@dtm@val\@dtm@nr]{ekavian,ijekavian}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnweekdayname}% + {\DTMserbianlatekweekdayname}% + \renewcommand*{\DTMsrLatnWeekdayname}% + {\DTMserbianlatekWeekdayname}% + \or% + \renewcommand*{\DTMsrLatnweekdayname}% + {\DTMserbianlatijweekdayname}% + \renewcommand*{\DTMsrLatnWeekdayname} + {\DTMserbianlatijWeekdayname}% + \fi +} +\DTMdefboolkey{sr-Latn}{monthi}[true]{} +\DTMsetbool{sr-Latn}{monthi}{false} +\DTMdefboolkey{sr-Latn}{leadingzero}[true]{} +\DTMsetbool{sr-Latn}{leadingzero}{false} + \newcommand*{\DTMsrLatndayordinal}[1]{% + \DTMifbool{sr-Latn}{leadingzero}% + {\DTMtwodigits{#1}}% + {\number#1}\DTMsrLatndatesep}% + \newcommand*{\DTMsrLatnyearordinal}[1]{% + \number#1\DTMsrLatndatesep}% +\newcommand*{\DTMsrLatnnoimonthname}{\DTMserbianlatnoimonthname} +\newcommand*{\DTMsrLatnnoiMonthname}{\DTMserbianlatnoiMonthname} +\newcommand*{\DTMsrLatnimonthname}{\DTMserbianlatimonthname} +\newcommand*{\DTMsrLatniMonthname}{\DTMserbianlatiMonthname} +\DTMdefboolkey{sr-Latn}{mapzone}[true]{} +\DTMsetbool{sr-Latn}{mapzone}{true} +\DTMdefboolkey{sr-Latn}{showdayofmonth}[true]{} +\DTMsetbool{sr-Latn}{showdayofmonth}{true} +\DTMdefboolkey{sr-Latn}{showyear}[true]{} +\DTMsetbool{sr-Latn}{showyear}{true} +\DTMnewstyle% +{sr-Latn}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnweekdayname{##4}% + \DTMsrLatndowdaysep% + \fi + \fi + \DTMifbool{sr-Latn}{showdayofmonth} + {\DTMsrLatndayordinal{##3}\DTMsrLatndaymonthsep}% + {}% + \DTMifbool{sr-Latn}{monthi}% + {\DTMsrLatnimonthname{##2}}% + {\DTMsrLatnnoimonthname{##2}}% + \DTMifbool{sr-Latn}{showyear}% + {% + \DTMsrLatnmonthyearsep% + \DTMsrLatnyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnWeekdayname{##4}% + \DTMsrLatndowdaysep% + \fi + \fi + \DTMifbool{sr-Latn}{showdayofmonth} + {% + \DTMsrLatndayordinal{##3}\DTMsrLatndaymonthsep% + \DTMifbool{sr-Latn}{monthi}% + {\DTMsrLatnimonthname{##2}}% + {\DTMsrLatnnoimonthname{##2}}% + }% + {% + \DTMifbool{sr-Latn}{monthi}% + {\DTMsrLatniMonthname{##2}}% + {\DTMsrLatnnoiMonthname{##2}}% + }% + \DTMifbool{sr-Latn}{showyear}% + {% + \DTMsrLatnmonthyearsep% + \DTMsrLatnyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatntimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatntimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatntimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatndatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatntimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate% + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatndatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatntimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% + \newcommand*{\DTMsrLatnmonthordinal}[1]{% + \DTMifbool{sr-Latn}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}% +\DTMdefchoicekey{sr-Latn}{monthord}% +[\@dtm@val\@dtm@nr]{arabic,roman,romanlsc}{% + \ifcase\@dtm@nr\relax + \renewcommand*{\DTMsrLatnmonthordinal}[1]{% + \DTMifbool{sr-Latn}{leadingzero}% + {\DTMtwodigits{##1}}{\number##1}\DTMsrLatndatesep}% + \or% + \renewcommand*{\DTMsrLatnmonthordinal}[1]{% + \DTMtexorpdfstring{\protect\DTMserbianordinalROMAN{##1}}% + {serbianordinalROMAN{##1}}}% + \or% + \renewcommand*{\DTMsrLatnmonthordinal}[1]{% + \DTMtexorpdfstring{\textsc{\protect\DTMserbianordinalroman{##1}}}% + {serbianordinalROMAN{##1}}}% + \fi +} +\DTMnewstyle% +{sr-Latn-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnweekdayname{##4}% + \DTMsrLatndowdaysep% + \fi + \fi + \DTMifbool{sr-Latn}{showdayofmonth}% + {\DTMsrLatndayordinal{##3}\DTMsrLatndaymonthsep}% + {}% + \DTMsrLatnmonthordinal{##2}% + \DTMifbool{sr-Latn}{showyear}% + {% + \DTMsrLatnmonthyearsep% + \DTMsrLatnyearordinal{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow% + \ifnum##4>-1 + \DTMsrLatnWeekdayname{##4}% + \DTMsrLatndowdaysep% + \fi + \fi + \DTMifbool{sr-Latn}{showdayofmonth}% + {\DTMsrLatndayordinal{##3}\DTMsrLatndaymonthsep}% + {}% + \DTMsrLatnmonthordinal{##2}% + \DTMifbool{sr-Latn}{showyear}% + {% + \DTMsrLatnmonthyearsep% + \DTMsrLatnyearordinal{##1}% + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMifbool{sr-Latn}{leadingzero}{\DTMtwodigits{##1}}{\number##1}% + \DTMsrLatntimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsrLatntimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones% + \DTMsrLatnzonemaps% + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{sr-Latn}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0 + \else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsrLatntimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate% + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsrLatndatetimesep% + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone% + \DTMsrLatntimezonesep% + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\newcommand*{\DTMsr-Latnzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional% +{}% do nothing +{\DTMsetstyle{sr-Latn}}% +{\DTMsetstyle{sr-Latn-numeric}}% +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbian% + {% do nothing + }% + {% + \def\dateserbian{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn}}% + {\DTMsetstyle{sr-Latn-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional% + {}% do nothing + {\DTMsetstyle{sr-Latn}}% + {\DTMsetstyle{sr-Latn-numeric}}% + }% +}% +\endinput +%% +%% End of file `datetime2-sr-Latn.ldf'. -- cgit v1.2.3