From c7a57ea6f456b584d13cd215bc515d956145b276 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 1 Apr 2015 20:41:35 +0000 Subject: datetime2-* git-svn-id: svn://tug.org/texlive/trunk@36699 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/latex/datetime2-serbian/README | 57 ++ .../latex/datetime2-serbian/datetime2-serbian.pdf | Bin 0 -> 86831 bytes .../latex/datetime2-serbian/datetime2-serbian.dtx | 806 +++++++++++++++++++++ .../latex/datetime2-serbian/datetime2-serbian.ins | 61 ++ .../datetime2-serbian/datetime2-serbian-ascii.ldf | 174 +++++ .../datetime2-serbian/datetime2-serbian-utf8.ldf | 160 ++++ .../latex/datetime2-serbian/datetime2-serbian.ldf | 241 ++++++ Master/tlpkg/bin/tlpkg-ctan-check | 4 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 6 + Master/tlpkg/tlpsrc/datetime2-serbian.tlpsrc | 0 10 files changed, 1508 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/datetime2-serbian/README create mode 100644 Master/texmf-dist/doc/latex/datetime2-serbian/datetime2-serbian.pdf create mode 100644 Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx create mode 100644 Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.ins create 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-utf8.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian.ldf create mode 100644 Master/tlpkg/tlpsrc/datetime2-serbian.tlpsrc diff --git a/Master/texmf-dist/doc/latex/datetime2-serbian/README b/Master/texmf-dist/doc/latex/datetime2-serbian/README new file mode 100644 index 00000000000..7f39f59f56c --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-serbian/README @@ -0,0 +1,57 @@ +Serbian Language Module for datetime2 Package + +Author: Nicola L. C. Talbot (inactive) + +Licence: LPPL + +Required Packages: datetime2, tracklang + +This module is unmaintained. If you want to volunteer to take over +the maintenance contact me at www.dickimaw-books.com/contact.html + +Example usage: + +\documentclass{article} +\usepackage[serbian]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[serbian]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{serbian} +\usepackage[serbian]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-serbian.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-serbian/ + +Documentation: + +xelatex datetime2-serbian.dtx +makeindex -s gind.ist datetime2-serbian.idx +makeindex -s gglo.ist -o datetime2-serbian.gls datetime2-serbian.glo +xelatex datetime2-serbian.dtx +xelatex datetime2-serbian.dtx + +Move datetime2-serbian.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-serbian/ + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/license/lppl1.3 for the details of that +license. + diff --git a/Master/texmf-dist/doc/latex/datetime2-serbian/datetime2-serbian.pdf b/Master/texmf-dist/doc/latex/datetime2-serbian/datetime2-serbian.pdf new file mode 100644 index 00000000000..a7812cf8f08 Binary files /dev/null and b/Master/texmf-dist/doc/latex/datetime2-serbian/datetime2-serbian.pdf differ diff --git a/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx b/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx new file mode 100644 index 00000000000..2252459aa88 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx @@ -0,0 +1,806 @@ +%\iffalse +%<*package> +%% \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 \~} +% +%\fi +% \iffalse +% Doc-Source file to use with LaTeX2e +% Copyright (C) 2015 Nicola Talbot, all rights reserved. +% (New maintainer add relevant lines here.) +% \fi +% \iffalse +%<*driver> +\documentclass{ltxdoc} + +\usepackage{alltt} +\usepackage{graphicx} +\usepackage{fontspec} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Serbian Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} +\newfontfamily\cyrillicfont{Liberation Serif} + +\CheckSum{615} + +\renewcommand*{\usage}[1]{\hyperpage{#1}} +\renewcommand*{\main}[1]{\hyperpage{#1}} +\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}} +\setcounter{IndexColumns}{2} + +\newcommand*{\sty}[1]{\textsf{#1}} +\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}} + +\RecordChanges +\PageIndex +\CodelineNumbered + +\begin{document} +\DocInput{datetime2-serbian.dtx} +\end{document} +% +%\fi +% +%\MakeShortVerb{"} +% +%\title{Serbian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (v1.0)} +%\maketitle +% +%This module is currently unmaintained and may be subject to change. +%If you want to volunteer to take over maintanance, contact me at +%\url{http://www.dickimaw-books.com/contact.html} +% +%\begin{abstract} +%This is the Serbian language module for the \sty{datetime2} +%package. If you want to use the settings in this module you must +%install it in addition to installing \sty{datetime2}. If you use +%\sty{babel} or \sty{polyglossia}, you will need this module to +%prevent them from redefining \cs{today}. The \sty{datetime2} +% \opt{useregional} setting must be set to "text" or "numeric" +% for the language styles to be set. +% Alternatively, you can set the style in the document using +% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} +% depending on the value of the \opt{useregional} setting. +%\end{abstract} +% +%I've copied the date style from \texttt{babel-serbian}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Serbian. +%In particular, I don't know if the "serbian" time style is +%correct. Currently this just uses the "default" time style. Please +%be aware that this may change. Whoever takes over maintanance +%of this module may can change it as appropriate. +% +%The new maintainer should add the line: +%\begin{verbatim} +% The Current Maintainer of this work is Name. +%\end{verbatim} +%to the preamble part in \texttt{datetime2-serbian.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-serbian-utf8.ldf> +% \end{macrocode} +%\fi +%\subsection{UTF-8} +%This file contains the settings that use UTF-8 characters. This +%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure +%your text editor is set to UTF-8 if you want to view this code. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{serbian-utf8}[2015/03/31 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMserbianordinal} +% \begin{macrocode} +\newcommand*{\DTMserbianordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiancyrmonthname} +% Serbian month names. (Cyrillic alphabet.) +% \begin{macrocode} +\newcommand*{\DTMserbiancyrmonthname}[1]{% + \ifcase#1 + \or + јануар% + \or + фебруар% + \or + март% + \or + април% + \or + мај% + \or + јун% + \or + јул% + \or + август% + \or + септембар% + \or + октобар% + \or + новембар% + \or + децембар% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiancyrMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMserbiancyrMonthname}[1]{% + \ifcase#1 + \or + Јануар% + \or + Фебруар% + \or + Март% + \or + Април% + \or + Мај% + \or + Јун% + \or + Јул% + \or + Август% + \or + Септембар% + \or + Октобар% + \or + Новембар% + \or + Децембар% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbianlatinmonthname} +% Serbian month names. (Latin alphabet.) +% \begin{macrocode} +\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 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbianlatinMonthname} +% As above but capitalize. +% \begin{macrocode} +\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 +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +% +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-serbian-ascii.ldf> +% \end{macrocode} +%\fi +%\subsection{ASCII} +%This file contains the settings that use \LaTeX\ commands for +%non-ASCII characters. This should be input if neither XeLaTeX nor +%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with +%"utf8", this file should still be used not the +%\texttt{datetime2-serbian-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{serbian-ascii}[2015/03/31 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMserbianordinal} +% \begin{macrocode} +\newcommand*{\DTMserbianordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiancyrmonthname} +% Serbian month names. (Cyrillic alphabet.) I'm not sure if these +% are correct. +% \begin{macrocode} +\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 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiancyrMonthname} +% As above but capitalize. +% \begin{macrocode} +\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 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbianlatinmonthname} +% Serbian month names. (Latin alphabet.) +% \begin{macrocode} +\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 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbianlatinMonthname} +% As above but capitalize. +% \begin{macrocode} +\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 +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +% +% \end{macrocode} +%\fi +% +%\subsection{Main Serbian Module (\texttt{datetime2-serbian.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-serbian.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{serbian}[2015/03/31 v1.0] +% \end{macrocode} +% Need to find out if XeTeX or LuaTeX are being used. +% \begin{macrocode} +\RequirePackage{ifxetex,ifluatex} +% \end{macrocode} +% XeTeX and LuaTeX natively support UTF-8, so load +% \texttt{serbian-utf8} if either of those engines are used +% otherwise load \texttt{serbian-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{serbian-utf8} +\else + \ifluatex + \RequireDateTimeModule{serbian-utf8} + \else + \RequireDateTimeModule{serbian-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{serbian} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. For +% example, if a 12 hour style similar to the "englishampm" (from the +% "english-base" module) is required. +% +% Allow the user a way of configuring the "serbian" and +% "serbian-numeric" styles. This doesn't use the package wide +% separators such as +% \cs{dtm@datetimesep} in case other date formats are also required. +%\begin{macro}{\DTMserbiandaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMserbiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbianmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMserbianmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiandatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMserbiandatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiantimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMserbiantimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiandatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMserbiandatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMserbiantimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMserbiantimesep}{.} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\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}} +% \end{macrocode} +% +%\begin{macro}{\DTMserbianmonthname} +% Provide a way to switch between Latin and Cyrillic month names. +% \begin{macrocode} +\newcommand*{\DTMserbianmonthname}{\DTMserbiancyrmonthname} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\DTMserbianMonthname} +% \begin{macrocode} +\newcommand*{\DTMserbianMonthname}{\DTMserbiancyrMonthname} +% \end{macrocode} +%\end{macro} +% +% \begin{macrocode} +\DTMdefchoicekey{serbian}{alphabet}[\val\nr]{cyrillic,latin}{% + \ifcase\nr\relax + \renewcommand*{\DTMserbianmonthname}{\DTMserbiancyrmonthname}% + \renewcommand*{\DTMserbianMonthname}{\DTMserbiancyrMonthname}% + \or + \renewcommand*{\DTMserbianmonthname}{\DTMserbianlatinmonthname}% + \renewcommand*{\DTMserbianMonthname}{\DTMserbianlatinMonthname}% + \fi +} +% \end{macrocode} +% +% TODO: provide a boolean key to switch between full and abbreviated +% formats if appropriate. (I don't know how the date should be +% abbreviated.) +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{serbian}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{serbian}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{serbian}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{serbian}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{serbian}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{serbian}{showyear}{true} +% \end{macrocode} +% +% Define the "serbian" style. (TODO: implement day of week?) +% \begin{macrocode} +\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 + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMserbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMserbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\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 + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \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}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMserbianzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. +% \begin{macrocode} +\newcommand*{\DTMserbianzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{serbian}} +{\DTMsetstyle{serbian-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateserbian} (or \cs{date}\meta{dialect}) to prevent +% \sty{babel} from resetting \cs{today}. (For this to work, +% \sty{babel} must already have been loaded if it's required.) +% \begin{macrocode} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbian + {% do nothing + }% + {% + \def\dateserbian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{serbian}}% + {\DTMsetstyle{serbian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{serbian}}% + {\DTMsetstyle{serbian-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +% +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.ins b/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.ins new file mode 100644 index 00000000000..fc13ef145a7 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-serbian.dtx + Copyright 2015 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. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-serbian-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-serbian.dtx}{datetime2-serbian-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-serbian-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-serbian.dtx}{datetime2-serbian-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-serbian.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-serbian.dtx}{datetime2-serbian.ldf,package}% + }% +} + +\endbatchfile + 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 new file mode 100644 index 00000000000..5e2fa19a52c --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-ascii.ldf @@ -0,0 +1,174 @@ +%% +%% 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 2015 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}[2015/03/31 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-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-utf8.ldf new file mode 100644 index 00000000000..e224658912f --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian-utf8.ldf @@ -0,0 +1,160 @@ +%% +%% 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 2015 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}[2015/03/31 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 new file mode 100644 index 00000000000..4f5f52b49a0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-serbian/datetime2-serbian.ldf @@ -0,0 +1,241 @@ +%% +%% This is file `datetime2-serbian.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-serbian.dtx (with options: `datetime2-serbian.ldf,package') +%% +%% datetime2-serbian.dtx +%% Copyright 2015 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}[2015/03/31 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{serbian-utf8} +\else + \ifluatex + \RequireDateTimeModule{serbian-utf8} + \else + \RequireDateTimeModule{serbian-ascii} + \fi +\fi +\newcommand*{\DTMserbiandaymonthsep}{% + \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 +} +\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 + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMserbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMserbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \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 + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \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}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMserbianzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{serbian}} +{\DTMsetstyle{serbian-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateserbian + {% do nothing + }% + {% + \def\dateserbian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{serbian}}% + {\DTMsetstyle{serbian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{serbian}}% + {\DTMsetstyle{serbian-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-serbian.ldf'. diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 10b7c836ffe..b4f0c06e077 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -172,7 +172,9 @@ my @TLP_working = qw( datetime2-latin datetime2-lsorbian datetime2-magyar datetime2-norsk datetime2-polish datetime2-portuges datetime2-romanian datetime2-russian datetime2-samin datetime2-scottish - datetime2-serbian datetime2-spanish datetime2-welsh + datetime2-serbian datetime2-slovak datetime2-slovene + datetime2-spanish datetime2-swedish datetime2-turkish datetime2-ukrainian + datetime2-usorbian datetime2-welsh dblfloatfix dccpaper dcpic de-macro decimal decorule dehyph-exptl dejavu delim delimtxt detlev-cm dhua diagbox diagmac2 dialogl diagnose dice dichokey diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 45601a2ced0..da36d1f578f 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -228,7 +228,13 @@ depend datetime2-russian depend datetime2-samin depend datetime2-scottish depend datetime2-serbian +depend datetime2-slovak +depend datetime2-slovene depend datetime2-spanish +depend datetime2-swedish +depend datetime2-turkish +depend datetime2-ukrainian +depend datetime2-usorbian depend datetime2-welsh depend dblfloatfix depend decimal diff --git a/Master/tlpkg/tlpsrc/datetime2-serbian.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-serbian.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3