summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-11-11 21:43:31 +0000
committerKarl Berry <karl@freefriends.org>2019-11-11 21:43:31 +0000
commita9b431f0fc003d22ebc69720bce6e5630983192c (patch)
tree09a31e918a1ebb143a1c029d88063d42f3894de5 /Master/texmf-dist/source
parent031d843212706c4f7534e312f3078eeb5bac494b (diff)
datetime2-serbian (11nov19)
git-svn-id: svn://tug.org/texlive/trunk@52737 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx897
1 files changed, 525 insertions, 372 deletions
diff --git a/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx b/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx
index 8409c539c22..ec37cb4dc13 100644
--- a/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx
+++ b/Master/texmf-dist/source/latex/datetime2-serbian/datetime2-serbian.dtx
@@ -25,14 +25,14 @@
% \iffalse
%<*driver>
\documentclass[11pt]{ltxdoc}
+\CheckSum{3849}
-
-\usepackage{alltt}
-\usepackage{hologo}
-\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
+
+\usepackage{hologo}
+\usepackage{graphicx}
\usepackage{multicol}
\usepackage[dvipsnames]{xcolor}
\usepackage[english]{babel}
@@ -91,7 +91,6 @@ hyperindex=false%
\renewcommand*{\aclabelfont}[1]{{\acsfont{#1}}}
-%%\CheckSum{692}
\renewcommand*{\usage}[1]{\hyperpage{#1}}
\renewcommand*{\main}[1]{\hyperpage{#1}}
@@ -151,9 +150,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\MakeShortVerb{"}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Restyled the documentation.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
%
%\title{{\rmfamily\normalfont\spacedallcaps{%
@@ -164,9 +164,9 @@ top=3.25cm,bottom=3cm]{geometry}
% \url{r.andrej@gmail.com}
% \and
% \spacedlowsmallcaps{Nicola L. C. Talbot} \\
-% \spacedlowsmallcaps{(inactive)}
+% {\textsf{(inactive)}}
%}
-%\date{{\sffamily\scshape 2019-11-07 (v2.0)}}
+%\date{{\sffamily\scshape 2019-11-11 (v2.0.1)}}
%\maketitle
%
% \renewcommand{\abstractname}{\normalfont\normalsize\spacedlowsmallcaps{Abstract}}
@@ -186,9 +186,10 @@ top=3.25cm,bottom=3cm]{geometry}
% style will be changed by \cs{date}\meta{language}.
%\end{abstract}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a proper introduction.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \noindent
% As of version 2.0, there is support for both Ekavian and Ijekavian
@@ -231,9 +232,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
% \section{The Documentation}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added installation guide.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \subsection{Installation}
% Extract the language definition files first:
@@ -308,9 +310,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{document}
%\end{verbatim}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions and documented their use.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \subsection{Regions and scripts}\label{sub:regions}
%
% Serbian language is a rare example of synchronic digraphia --- a situation
@@ -343,22 +346,24 @@ top=3.25cm,bottom=3cm]{geometry}
%
%
% \subsection{Settings (Serbian-related)}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added documentation for new settings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% These settings can be changed using \sty{\\DTMlangsetup}.
% Here's an example showing how to set both multiple--choice and boolean
% settings.
%\begin{verbatim}
-% \DTMlangsetup[serbian]{pronunciation=ijekavian, monthi}
+%\DTMlangsetup[serbian]{pronunciation=ijekavian, monthi}
%\end{verbatim}
%
%
% \subsubsectionopt{pronunciation}\label{sub:pronu}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% May take values "ekavian" and "ijekavian", which denote the two most
% frequently used pronunciations in Serbian language.
% The only difference is in the way weekdays are written.
@@ -366,66 +371,82 @@ top=3.25cm,bottom=3cm]{geometry}
% The default value is Ekavian by default for "serbian", "serbianc", "sr-*-RS"
% and Ijekavian for the rest of the regions.
%
-% \smallskip
+% \changes{2.0.1}{2019-11-11}{Fixed paragraph indentation.}
+% \bigskip
+% \noindent
% ponedeljak, 4. novembar 2019. \hfill \emph{Ekavian pronunciation} \\
% ponedjeljak, 4. novembar 2019. \hfill \emph{Ijekavian pronunciation}
%
%
% \subsubsectionopt{monthi}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% This is a boolean key.
% If "false" (the default), the months June and July are spelled as \emph{Jun}
% and \emph{Jul}.
% If "true", the months June and July are spelled as \emph{Juni} and
% \emph{Juli}.
%
-% \smallskip
+% \changes{2.0.1}{2019-11-11}{Fixed paragraph indentation.}
+% \bigskip
+% \noindent
% 15. juni 1389. \hfill "monthi=true" \\
% 15. jun 1389. \hfill "monthi=false"
%
% \subsubsectionopt{leadingzero}\label{sub:leadingzero}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for toggling leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% This is a boolean key.
% If "false" (the default), there is no leading zero for hours, days or months.
% If "true", there is.
%
-% \smallskip
+% \changes{2.0.1}{2019-11-11}{Fixed paragraph indentation.}
+% \bigskip
+% \noindent
% уторак, 2. 4. 2019. 8.03 CET \hfill "leadingzero=false" \\
% уторак, 02. 04. 2019. 08.03 CET \hfill "leadingzero=true"
%
% \subsubsectionopt{monthord}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Changed colon \rightarrow{} period.}
% This key defines the way the month ordinal is written in Serbian "*-numeric"
% formats.
+% This key defines the way the month ordinal is written in Serbian "*-numeric"
% It takes values "arabic" (the default), "roman" and "romanlsc".
% The "arabic" setting results in an arabic numeral (subject to
-% \nameref{sub:leadingzero}) followed by a colon.
-% The "roman" setting results in an uppercase Roman numeral without a colon
+% \nameref{sub:leadingzero}) followed by a period.
+%
+% The "roman" setting results in an uppercase Roman numeral without a period
% suffix.
% The "romansc" setting results in a lowercase small caps Roman numeral without
-% a colon suffix (this looks better than regular uppercase when usign old style
-% figures).
+% a period suffix (this looks better than regular uppercase when usign old
+% style figures).
%
-% \smallskip
+% \changes{2.0.1}{2019-11-11}{Fixed paragraph indentation.}
+% \changes{2.0.1}{2019-11-11}{Fixed wrong example.}
+% \bigskip
+% \noindent
% уторак, 2. 4. 2019. 8.03 CET \hfill "monthord=arabic" \\
% \liningnums{уторак, 2. IV 2019. 8.03 CET} \hfill "monthord=roman" with
% "\liningnums" \\
-% \oldstylenums{уторак, 02. \textsc{iv} 2019. 08.03 CET} \hfill
+% \oldstylenums{уторак, 2. \textsc{iv} 2019. 8.03 CET} \hfill
% "monthord=romanlsc" with "\oldstylenums"
%
% \subsection{Other features and settings}
%
% \subsubsection{Showing the weekday}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% All language modules shipped with \sty{datetime2-serbian} support showing the
% weekday.
% To enable this feature, pass the \opt{showdow} option to the \sty{datetime2}
@@ -518,20 +539,21 @@ top=3.25cm,bottom=3cm]{geometry}
%\fi
%\subsection{Base package localization strings}
%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraphs.}
% This file contains the code common to all the Serbian regional
% variations.
-%
% The localization strings are later imported with the appropriate encoding.
%
%\changes{1.0}{2015-03-31}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Separated the base package from the regionless style.
% The base package now only declares common localization strings and includes
% adequately encoded localization strings from their respective packages.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
-\ProvidesDateTimeModule{serbian-base}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{serbian-base}[2019/11/11 v2.0.1]
% \end{macrocode}
%
%
@@ -603,8 +625,7 @@ top=3.25cm,bottom=3cm]{geometry}
}
% \end{macrocode}
%\end{macro}
-%
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% We will now include the appropriate localization data.
%
% Packages \sty{ifxetex} and \sty{ifluatex} provide a way to determine if the
@@ -648,13 +669,14 @@ top=3.25cm,bottom=3cm]{geometry}
% This file is loaded if \hologo{XeLaTeX} or \hologo{LuaLaTeX} are used.
%
%\changes{1.0}{2015-03-31}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings are now declared within the Python build script
% and both the \acs{utf-8} and \acs{licr} encoded strings are generated from
% said files on build, before uploading to CTAN.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{serbian-base-utf8}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{serbian-base-utf8}[2019/11/11 v2.0.1]
% \end{macrocode}
%
%\subsubsection{Latin month names}
@@ -1090,14 +1112,15 @@ top=3.25cm,bottom=3cm]{geometry}
% quite insane.
%
%\changes{1.0}{2015-03-31}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings are now declared within the Python build script
% and both the \acs{utf-8} and \acs{licr} encoded strings are generated from
% said files on build, before uploading to CTAN.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
-\ProvidesDateTimeModule{serbian-base-ascii}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{serbian-base-ascii}[2019/11/11 v2.0.1]
% \end{macrocode}
%
%%\subsubsection{Latin month names}
@@ -1527,24 +1550,29 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{serbian} Code
% (\texttt{datetime2-serbian.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{serbian}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{serbian}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% Load base Serbian module.
% \begin{macrocode}
\RequireDateTimeModule{serbian-base}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{serbian} style}
%
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
% Allow the user a way of configuring the "serbian" and
% "serbian-numeric" styles by providing macros for various format
% elements.
@@ -1552,7 +1580,6 @@ top=3.25cm,bottom=3cm]{geometry}
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMserbiandowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -1627,9 +1654,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMserbianweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -1647,9 +1675,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{serbian}%
@@ -1667,10 +1696,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -1680,10 +1710,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbian}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -1694,8 +1725,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{serbian}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMserbiandayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -1713,13 +1742,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMserbiandatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMserbiannoimonthname}
@@ -1745,7 +1774,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMserbianiMonthname}{\DTMserbianlatiMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -1755,7 +1784,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbian}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -1765,7 +1794,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbian}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -1775,9 +1804,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbian}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{serbian}% label
@@ -1883,11 +1913,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{serbian}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "serbian-numeric" style.
% \begin{macrocode}
@@ -1908,13 +1939,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -1997,6 +2030,7 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
\newcommand*{\DTMserbianzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
@@ -2004,7 +2038,6 @@ top=3.25cm,bottom=3cm]{geometry}
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -2012,14 +2045,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -2039,6 +2072,9 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
{\DTMsetstyle{serbian}}%
{\DTMsetstyle{serbian-numeric}}%
}%
@@ -2060,32 +2096,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Latn} Code
% (\texttt{datetime2-sr-Latn.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Latn}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Latn}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbian}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Latn} style}
%
-% Allow the user a way of configuring the "srLatn" and
-% "srLatn-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Latn" and
+% "sr-Latn-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrLatndowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -2160,9 +2200,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrLatnweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -2180,9 +2221,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Latn}%
@@ -2200,10 +2242,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -2213,10 +2256,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -2227,8 +2271,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Latn}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrLatndayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -2246,13 +2288,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrLatndatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrLatnnoimonthname}
@@ -2278,7 +2320,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrLatniMonthname}{\DTMserbianlatiMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -2288,7 +2330,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -2298,7 +2340,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -2308,9 +2350,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Latn}% label
@@ -2416,11 +2459,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Latn}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srLatn-numeric" style.
% \begin{macrocode}
@@ -2441,13 +2485,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -2530,14 +2576,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Latnzonemaps}{%
+\newcommand*{\DTMsrLatnzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -2545,14 +2591,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Latn}}%
{\DTMsetstyle{sr-Latn-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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -2572,8 +2618,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Latn}}%
- {\DTMsetstyle{sr-Latn-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbian}}%
+ {\DTMsetstyle{serbian-numeric}}%
}%
}%
% \end{macrocode}
@@ -2593,32 +2642,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Latn-RS} Code
% (\texttt{datetime2-sr-Latn-RS.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Latn-RS}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Latn-RS}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbian}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Latn-RS} style}
%
-% Allow the user a way of configuring the "srLatnRS" and
-% "srLatnRS-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Latn-RS" and
+% "sr-Latn-RS-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrLatnRSdowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -2693,9 +2746,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrLatnRSweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -2713,9 +2767,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Latn-RS}%
@@ -2733,10 +2788,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -2746,10 +2802,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-RS}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -2760,8 +2817,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Latn-RS}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrLatnRSdayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -2779,13 +2834,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrLatnRSdatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrLatnRSnoimonthname}
@@ -2811,7 +2866,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrLatnRSiMonthname}{\DTMserbianlatiMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -2821,7 +2876,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-RS}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -2831,7 +2886,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-RS}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -2841,9 +2896,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-RS}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Latn-RS}% label
@@ -2949,11 +3005,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Latn-RS}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srLatnRS-numeric" style.
% \begin{macrocode}
@@ -2974,13 +3031,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -3063,14 +3122,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Latn-RSzonemaps}{%
+\newcommand*{\DTMsrLatnRSzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -3078,14 +3137,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Latn-RS}}%
{\DTMsetstyle{sr-Latn-RS-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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -3105,8 +3164,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Latn-RS}}%
- {\DTMsetstyle{sr-Latn-RS-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbian}}%
+ {\DTMsetstyle{serbian-numeric}}%
}%
}%
% \end{macrocode}
@@ -3126,32 +3188,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Latn-ME} Code
% (\texttt{datetime2-sr-Latn-ME.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Latn-ME}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Latn-ME}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbian}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Latn-ME} style}
%
-% Allow the user a way of configuring the "srLatnME" and
-% "srLatnME-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Latn-ME" and
+% "sr-Latn-ME-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrLatnMEdowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -3226,9 +3292,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrLatnMEweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -3246,9 +3313,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Latn-ME}%
@@ -3266,10 +3334,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -3279,10 +3348,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-ME}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -3293,8 +3363,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Latn-ME}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrLatnMEdayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -3312,13 +3380,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrLatnMEdatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrLatnMEnoimonthname}
@@ -3344,7 +3412,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrLatnMEiMonthname}{\DTMserbianlatiMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -3354,7 +3422,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-ME}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -3364,7 +3432,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-ME}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -3374,9 +3442,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-ME}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Latn-ME}% label
@@ -3482,11 +3551,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Latn-ME}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srLatnME-numeric" style.
% \begin{macrocode}
@@ -3507,13 +3577,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -3596,14 +3668,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Latn-MEzonemaps}{%
+\newcommand*{\DTMsrLatnMEzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -3611,14 +3683,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Latn-ME}}%
{\DTMsetstyle{sr-Latn-ME-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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -3638,8 +3710,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Latn-ME}}%
- {\DTMsetstyle{sr-Latn-ME-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbian}}%
+ {\DTMsetstyle{serbian-numeric}}%
}%
}%
% \end{macrocode}
@@ -3659,32 +3734,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Latn-BA} Code
% (\texttt{datetime2-sr-Latn-BA.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Latn-BA}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Latn-BA}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbian}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Latn-BA} style}
%
-% Allow the user a way of configuring the "srLatnBA" and
-% "srLatnBA-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Latn-BA" and
+% "sr-Latn-BA-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrLatnBAdowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -3759,9 +3838,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrLatnBAweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -3779,9 +3859,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Latn-BA}%
@@ -3799,10 +3880,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -3812,10 +3894,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-BA}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -3826,8 +3909,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Latn-BA}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrLatnBAdayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -3845,13 +3926,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrLatnBAdatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrLatnBAnoimonthname}
@@ -3877,7 +3958,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrLatnBAiMonthname}{\DTMserbianlatiMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -3887,7 +3968,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-BA}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -3897,7 +3978,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-BA}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -3907,9 +3988,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Latn-BA}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Latn-BA}% label
@@ -4015,11 +4097,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Latn-BA}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srLatnBA-numeric" style.
% \begin{macrocode}
@@ -4040,13 +4123,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -4129,14 +4214,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Latn-BAzonemaps}{%
+\newcommand*{\DTMsrLatnBAzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -4144,14 +4229,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Latn-BA}}%
{\DTMsetstyle{sr-Latn-BA-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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -4171,8 +4256,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Latn-BA}}%
- {\DTMsetstyle{sr-Latn-BA-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbian}}%
+ {\DTMsetstyle{serbian-numeric}}%
}%
}%
% \end{macrocode}
@@ -4192,24 +4280,29 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{serbianc} Code
% (\texttt{datetime2-serbianc.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{serbianc}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{serbianc}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% Load base Serbian module.
% \begin{macrocode}
\RequireDateTimeModule{serbian-base}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{serbianc} style}
%
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
% Allow the user a way of configuring the "serbianc" and
% "serbianc-numeric" styles by providing macros for various format
% elements.
@@ -4217,7 +4310,6 @@ top=3.25cm,bottom=3cm]{geometry}
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMserbiancdowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -4292,9 +4384,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMserbiancweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -4312,9 +4405,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{serbianc}%
@@ -4332,10 +4426,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -4345,10 +4440,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbianc}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -4359,8 +4455,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{serbianc}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMserbiancdayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -4378,13 +4472,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMserbiancdatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMserbiancnoimonthname}
@@ -4410,7 +4504,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMserbianciMonthname}{\DTMserbiancyriMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -4420,7 +4514,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbianc}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -4430,7 +4524,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbianc}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -4440,9 +4534,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{serbianc}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{serbianc}% label
@@ -4548,11 +4643,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{serbianc}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "serbianc-numeric" style.
% \begin{macrocode}
@@ -4573,13 +4669,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -4662,6 +4760,7 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
\newcommand*{\DTMserbianczonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
@@ -4669,7 +4768,6 @@ top=3.25cm,bottom=3cm]{geometry}
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -4677,14 +4775,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{serbianc}}%
{\DTMsetstyle{serbianc-numeric}}%
% \end{macrocode}
-%
% Redefine \cs{dateserbianc} (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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -4704,6 +4802,9 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
{\DTMsetstyle{serbianc}}%
{\DTMsetstyle{serbianc-numeric}}%
}%
@@ -4725,32 +4826,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Cyrl} Code
% (\texttt{datetime2-sr-Cyrl.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Cyrl}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Cyrl}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbianc}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Cyrl} style}
%
-% Allow the user a way of configuring the "srCyrl" and
-% "srCyrl-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Cyrl" and
+% "sr-Cyrl-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrCyrldowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -4825,9 +4930,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrCyrlweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -4845,9 +4951,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Cyrl}%
@@ -4865,10 +4972,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -4878,10 +4986,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -4892,8 +5001,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Cyrl}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrCyrldayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -4911,13 +5018,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrCyrldatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrCyrlnoimonthname}
@@ -4943,7 +5050,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrCyrliMonthname}{\DTMserbiancyriMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -4953,7 +5060,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -4963,7 +5070,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -4973,9 +5080,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Cyrl}% label
@@ -5081,11 +5189,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Cyrl}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srCyrl-numeric" style.
% \begin{macrocode}
@@ -5106,13 +5215,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -5195,14 +5306,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Cyrlzonemaps}{%
+\newcommand*{\DTMsrCyrlzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -5210,14 +5321,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Cyrl}}%
{\DTMsetstyle{sr-Cyrl-numeric}}%
% \end{macrocode}
-%
% Redefine \cs{dateserbianc} (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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -5237,8 +5348,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Cyrl}}%
- {\DTMsetstyle{sr-Cyrl-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbianc}}%
+ {\DTMsetstyle{serbianc-numeric}}%
}%
}%
% \end{macrocode}
@@ -5258,32 +5372,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Cyrl-RS} Code
% (\texttt{datetime2-sr-Cyrl-RS.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Cyrl-RS}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Cyrl-RS}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbianc}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Cyrl-RS} style}
%
-% Allow the user a way of configuring the "srCyrlRS" and
-% "srCyrlRS-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Cyrl-RS" and
+% "sr-Cyrl-RS-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrCyrlRSdowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -5358,9 +5476,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrCyrlRSweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -5378,9 +5497,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Cyrl-RS}%
@@ -5398,10 +5518,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -5411,10 +5532,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-RS}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -5425,8 +5547,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Cyrl-RS}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrCyrlRSdayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -5444,13 +5564,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrCyrlRSdatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrCyrlRSnoimonthname}
@@ -5476,7 +5596,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrCyrlRSiMonthname}{\DTMserbiancyriMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -5486,7 +5606,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-RS}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -5496,7 +5616,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-RS}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -5506,9 +5626,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-RS}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Cyrl-RS}% label
@@ -5614,11 +5735,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Cyrl-RS}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srCyrlRS-numeric" style.
% \begin{macrocode}
@@ -5639,13 +5761,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -5728,14 +5852,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Cyrl-RSzonemaps}{%
+\newcommand*{\DTMsrCyrlRSzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -5743,14 +5867,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Cyrl-RS}}%
{\DTMsetstyle{sr-Cyrl-RS-numeric}}%
% \end{macrocode}
-%
% Redefine \cs{dateserbianc} (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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -5770,8 +5894,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Cyrl-RS}}%
- {\DTMsetstyle{sr-Cyrl-RS-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbianc}}%
+ {\DTMsetstyle{serbianc-numeric}}%
}%
}%
% \end{macrocode}
@@ -5791,32 +5918,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Cyrl-ME} Code
% (\texttt{datetime2-sr-Cyrl-ME.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Cyrl-ME}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Cyrl-ME}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbianc}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Cyrl-ME} style}
%
-% Allow the user a way of configuring the "srCyrlME" and
-% "srCyrlME-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Cyrl-ME" and
+% "sr-Cyrl-ME-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrCyrlMEdowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -5891,9 +6022,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrCyrlMEweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -5911,9 +6043,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Cyrl-ME}%
@@ -5931,10 +6064,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -5944,10 +6078,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-ME}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -5958,8 +6093,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Cyrl-ME}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrCyrlMEdayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -5977,13 +6110,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrCyrlMEdatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrCyrlMEnoimonthname}
@@ -6009,7 +6142,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrCyrlMEiMonthname}{\DTMserbiancyriMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -6019,7 +6152,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-ME}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -6029,7 +6162,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-ME}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -6039,9 +6172,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-ME}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Cyrl-ME}% label
@@ -6147,11 +6281,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Cyrl-ME}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srCyrlME-numeric" style.
% \begin{macrocode}
@@ -6172,13 +6307,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -6261,14 +6398,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Cyrl-MEzonemaps}{%
+\newcommand*{\DTMsrCyrlMEzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -6276,14 +6413,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Cyrl-ME}}%
{\DTMsetstyle{sr-Cyrl-ME-numeric}}%
% \end{macrocode}
-%
% Redefine \cs{dateserbianc} (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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -6303,8 +6440,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Cyrl-ME}}%
- {\DTMsetstyle{sr-Cyrl-ME-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbianc}}%
+ {\DTMsetstyle{serbianc-numeric}}%
}%
}%
% \end{macrocode}
@@ -6324,32 +6464,36 @@ top=3.25cm,bottom=3cm]{geometry}
%\subsection{Serbian \sty{sr-Cyrl-BA} Code
% (\texttt{datetime2-sr-Cyrl-BA.ldf})}
%\changes{1.0}{2015-03-24}{Initial release}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions, all settings made available to regions so all changes can be
% region-specific.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
-\ProvidesDateTimeModule{sr-Cyrl-BA}[2019/11/07 v2.0]
+\ProvidesDateTimeModule{sr-Cyrl-BA}[2019/11/11 v2.0.1]
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% All localization strings loaded from base module.
%}
-%
-% Load base Serbian module.
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% Load appropriate regionless Serbian module.
% \begin{macrocode}
-\RequireDateTimeModule{serbian-base}
+\RequireDateTimeModule{serbianc}
% \end{macrocode}
%
+%
+%
%\subsubsection{Defining the \sty{sr-Cyrl-BA} style}
%
-% Allow the user a way of configuring the "srCyrlBA" and
-% "srCyrlBA-numeric" styles by providing macros for various format
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Fixed region name error.}
+% Allow the user a way of configuring the "sr-Cyrl-BA" and
+% "sr-Cyrl-BA-numeric" styles by providing macros for various format
% elements.
%
% This doesn't use the package-wide separators such as \cs{dtm@datetimesep} in
% case other date formats are also required.
%
-%
%\begin{macro}{\DTMsrCyrlBAdowdaysep}
% The separator between weekday and day.
% \begin{macrocode}
@@ -6424,9 +6568,10 @@ top=3.25cm,bottom=3cm]{geometry}
%
%\subsubsection{Switches and settings}
%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%\begin{macro}{\DTMsrCyrlBAweekdayname}
% Define the weekday name, lowercase.
% \begin{macrocode}
@@ -6444,9 +6589,10 @@ top=3.25cm,bottom=3cm]{geometry}
%\end{macro}
%
% Provide a way to switch between Ekavian and Ijekavian pronunciation.
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch between Ekavian and Ijekavian pronunciation.
%}
+ %\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
%
% \begin{macrocode}
\DTMdefchoicekey{sr-Cyrl-BA}%
@@ -6464,10 +6610,11 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a way to switch June, July alternate spellings.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that can switch between (jun, jul) and (juni, juli)
% month spellings.
% \begin{macrocode}
@@ -6477,10 +6624,11 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-BA}{monthi}{false}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch for adding leading zeroes in day and month ordinals.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day and month ordinals should
% have leading zeroes.
% \begin{macrocode}
@@ -6491,8 +6639,6 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMsetbool{sr-Cyrl-BA}{leadingzero}{false}
% \end{macrocode}
%
-%
-%
%\begin{macro}{\DTMsrCyrlBAdayordinal}
% Define the day ordinal format to be used by this style.
% \begin{macrocode}
@@ -6510,13 +6656,13 @@ top=3.25cm,bottom=3cm]{geometry}
\number#1\DTMsrCyrlBAdatesep}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Removed the option to switch between writing systems, since that is
% accomplished by using different regions or regionless styles ("serbian" and
% "serbianc" for example).
%}
-%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define the month names.
%
%\begin{macro}{\DTMsrCyrlBAnoimonthname}
@@ -6542,7 +6688,7 @@ top=3.25cm,bottom=3cm]{geometry}
\newcommand*{\DTMsrCyrlBAiMonthname}{\DTMserbiancyriMonthname}
% \end{macrocode}
%\end{macro}
-%
+%\changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the time zone mappings
% should be used.
% \begin{macrocode}
@@ -6552,7 +6698,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-BA}{mapzone}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the day of month should be
% displayed.
% \begin{macrocode}
@@ -6562,7 +6708,7 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-BA}{showdayofmonth}{true}
% \end{macrocode}
-%
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a boolean key that determines if the year should be
% displayed.
% \begin{macrocode}
@@ -6572,9 +6718,10 @@ top=3.25cm,bottom=3cm]{geometry}
% \begin{macrocode}
\DTMsetbool{sr-Cyrl-BA}{showyear}{true}
% \end{macrocode}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\DTMnewstyle%
{sr-Cyrl-BA}% label
@@ -6680,11 +6827,12 @@ top=3.25cm,bottom=3cm]{geometry}
\DTMifbool{sr-Cyrl-BA}{leadingzero}{\DTMtwodigits{#1}}{\number#1}.}%
% \end{macrocode}
%\end{macro}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added a switch between multiple numeric month ordinal formats used in
% Serbian.
%}
+% \changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define a setting to switch between Arabic, uppercase Roman and lowercase
% smallcaps Roman month format for the "srCyrlBA-numeric" style.
% \begin{macrocode}
@@ -6705,13 +6853,15 @@ top=3.25cm,bottom=3cm]{geometry}
\fi
}
% \end{macrocode}
-%
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Fixed the (previously entirely wrong) numeric date style.
%}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+%\changes{2.0.0}{2019-11-07}{%
% Added weekday names.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
+% \changes{2.0.1}{2019-11-11}{Removed extraneous paragraph indentation.}
% Define numeric style.
% \begin{macrocode}
\DTMnewstyle%
@@ -6794,14 +6944,14 @@ top=3.25cm,bottom=3cm]{geometry}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
% removed.
+%\changes{2.0.1}{2019-11-11}{Replaced wrong parameter for zonemapping.}
% \begin{macrocode}
-\newcommand*{\DTMsr-Cyrl-BAzonemaps}{%
+\newcommand*{\DTMsrCyrlBAzonemaps}{%
\DTMdefzonemap{01}{00}{CET}%
\DTMdefzonemap{02}{00}{CEST}%
}
% \end{macrocode}
%\end{macro}
-
% Switch style according to the \opt{useregional} setting.
% \begin{macrocode}
\DTMifcaseregional%
@@ -6809,14 +6959,14 @@ top=3.25cm,bottom=3cm]{geometry}
{\DTMsetstyle{sr-Cyrl-BA}}%
{\DTMsetstyle{sr-Cyrl-BA-numeric}}%
% \end{macrocode}
-%
% Redefine \cs{dateserbianc} (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.)
%\changes{1.1}{2019-09-14}{removed spurious space}
-%\changes{2.0}{2019-11-07}{%
+%\changes{2.0.0}{2019-11-07}{%
% Added regions.
%}
+%\changes{2.0.1}{2019-11-11}{Adopted semantic versioning.}
% \begin{macrocode}
\ifcsundef{date\CurrentTrackedDialect}
{%
@@ -6836,8 +6986,11 @@ top=3.25cm,bottom=3cm]{geometry}
\csdef{date\CurrentTrackedDialect}{%
\DTMifcaseregional%
{}% do nothing
- {\DTMsetstyle{sr-Cyrl-BA}}%
- {\DTMsetstyle{sr-Cyrl-BA-numeric}}%
+% \end{macrocode}
+%\changes{2.0.1}{2019-11-11}{Fixed non-regional variant for regional code.}
+% \begin{macrocode}
+ {\DTMsetstyle{serbianc}}%
+ {\DTMsetstyle{serbianc-numeric}}%
}%
}%
% \end{macrocode}