summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-16 21:16:38 +0000
committerKarl Berry <karl@freefriends.org>2022-02-16 21:16:38 +0000
commit92a238ceeb6e36c0b8ce4d156f690bc76c3bae0f (patch)
treea00c5439ae7b78a094f7c06631b8ad46672ad117 /Master/texmf-dist/source/generic
parent6a2f550c3d03ff584ae06539ecb58d0b031a5e98 (diff)
babel-serbian (16feb22)
git-svn-id: svn://tug.org/texlive/trunk@62041 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r--Master/texmf-dist/source/generic/babel-serbian/serbian.dtx26
-rw-r--r--Master/texmf-dist/source/generic/babel-serbian/serbian.ins8
2 files changed, 26 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/generic/babel-serbian/serbian.dtx b/Master/texmf-dist/source/generic/babel-serbian/serbian.dtx
index 106ac9b7aa4..70f9a2c38da 100644
--- a/Master/texmf-dist/source/generic/babel-serbian/serbian.dtx
+++ b/Master/texmf-dist/source/generic/babel-serbian/serbian.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 2019--2021 Uroš Stefanović and any individual authors
+% Copyright 2019--2022 Uroš Stefanović and any individual authors
% listed elsewhere in this file. All rights reserved.
% Earlier Maintainers: Dejan Muhamedagić, Slobodan Janković, Javier Bezos López, Johannes L. Braams
%
@@ -32,7 +32,7 @@
%<code>\ProvidesLanguage{serbian}
%\fi
%\ProvidesFile{serbian.dtx}
- [2021/04/10 2.1 Serbian Latin support for the Babel system]
+ [2022/02/16 2.2 Serbian Latin support for the Babel system]
%\iffalse
%% File `serbian.dtx'
%
@@ -98,7 +98,9 @@
% If you prefer to use `juni' and `juli' instead of default `jun' and `jul',
% use the \Lopt{datei} attribute. Also, the |\today*| macro prints the date without dot after the year
% (used when after the date is the punctuation mark, such as comma).
-% Alternatively, the commands |\todayRoman| and |\todayRoman*| prints the current date using Roman numerals for months.
+% Alternatively, the commands |\todayRoman| and |\todayRoman*| prints the current date using Roman numerals for months;
+% |\todayGen| and |\todayGen*| prints the current month name in the genitive case,
+% and |\todayArabic| and |\todayArabic*| prints the current month as a number.
%
% The alphabetical enumerations in texts use the Latin alphabet and alphabetic order,
% but the letters q, w, x and y are omitted by the rules of the Serbian language (22 letters are used).
@@ -271,6 +273,7 @@
% \end{macrocode}
%
% The macro |\dateserbian| redefines the commands |\today|, |\today*|, |\todayRoman| and |\todayRoman*| to produce Serbian dates.
+% Also, the commands |\todayGen|, |\todayGen*|, |\todayArabic| and |\todayArabic*| are provided.
%
% \begin{macrocode}
\def\dateserbian{%
@@ -287,8 +290,23 @@
oktobar\or
novembar\or
decembar\fi}%
+ \def\month@serbian@gen{\ifcase\month\or
+ januara\or
+ februara\or
+ marta\or
+ aprila\or
+ maja\or
+ juna\or
+ jula\or
+ avgusta\or
+ septembra\or
+ oktobra\or
+ novembra\or
+ decembra\fi}%
\def\today{\number\day.~\month@serbian\ \number\year\@ifstar{}{.}}%
- \def\todayRoman{\number\day.~\@Roman\month~\number\year\@ifstar{}{.}}}
+ \def\todayRoman{\number\day.~\@Roman\month~\number\year\@ifstar{}{.}}%
+ \def\todayGen{\number\day.~\month@serbian@gen\ \number\year\@ifstar{}{.}}%
+ \def\todayArabic{\number\day.~\number\month.~\number\year\@ifstar{}{.}}}
\let\dateserbian@datei=\dateserbian
\addto\dateserbian@datei{
\def\month@serbian@datei{\ifnum\month=6 juni%
diff --git a/Master/texmf-dist/source/generic/babel-serbian/serbian.ins b/Master/texmf-dist/source/generic/babel-serbian/serbian.ins
index aa495cf06af..8ab31c34152 100644
--- a/Master/texmf-dist/source/generic/babel-serbian/serbian.ins
+++ b/Master/texmf-dist/source/generic/babel-serbian/serbian.ins
@@ -3,7 +3,7 @@
%% driver files from the doc files in this package when run through
%% LaTeX or TeX.
%%
-%% Copyright 2019--2021 Uroš Stefanović and any individual authors
+%% Copyright 2019--2022 Uroš Stefanović and any individual authors
%% listed elsewhere in this file. All rights reserved.
%% Earlier Maintainers: Dejan Muhamedagić, Slobodan Janković, Javier Bezos López, Johannes L. Braams
%%
@@ -29,7 +29,7 @@
%%
%% --------------- start of docstrip commands ------------------
%%
-\def\filedate{2021/04/10}
+\def\filedate{2022/02/16}
\def\batchfile{serbian.ins}
\input docstrip.tex
@@ -51,7 +51,7 @@
\declarepreamble\mainpreamble
This is a generated file.
-Copyright 2019--2021 Uroš Stefanović and any individual authors
+Copyright 2019--2022 Uroš Stefanović and any individual authors
listed elsewhere in this file. All rights reserved.
This file is intended to be used with the Babel system.
@@ -77,7 +77,7 @@ extension .ins) which are part of the distribution.
\declarepreamble\fdpreamble
This is a generated file.
-Copyright 2019--2021 Uroš Stefanović and any individual authors
+Copyright 2019--2022 Uroš Stefanović and any individual authors
listed elsewhere in this file. All rights reserved.
This file is intended to be used with the Babel system.