summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-10 22:03:09 +0000
committerKarl Berry <karl@freefriends.org>2017-04-10 22:03:09 +0000
commitbfd2694030c142af2dcd607342951bfe5728e53c (patch)
treec21e3491884727fe2db59446ad37c64d6055e2a1 /Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf
parentb0dfd5e7f300bcfe96ad84722848ce8137be7ac9 (diff)
datetime2-romanian
git-svn-id: svn://tug.org/texlive/trunk@43743 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf')
-rw-r--r--Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf118
1 files changed, 95 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf
index b3e6fcffdf7..125932dcaac 100644
--- a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf
+++ b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf
@@ -8,16 +8,19 @@
%%
%% datetime2-romanian.dtx
%% Copyright 2015 Nicola Talbot
+%% Copyright 2017 Paul A. Patience <pap@papatience.com>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
-%% of this license of (at your option) any later version.
+%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
-%% This work has the LPPL maintenance status `inactive'.
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Paul A. Patience.
%%
%% This work consists of the files datetime2-romanian.dtx and
%% datetime2-romanian.ins and the derived files
@@ -39,7 +42,7 @@
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-\ProvidesDateTimeModule{romanian}[2015/03/31 v1.0]
+\ProvidesDateTimeModule{romanian}[2017/04/08 v1.01]
\RequirePackage{ifxetex,ifluatex}
\ifxetex
\RequireDateTimeModule{romanian-utf8}
@@ -50,6 +53,7 @@
\RequireDateTimeModule{romanian-ascii}
\fi
\fi
+\newcommand*{\DTMromaniandowdaysep}{\space}
\newcommand*{\DTMromaniandaymonthsep}{%
\DTMtexorpdfstring{\protect~}{\space}%
}
@@ -58,12 +62,15 @@
\newcommand*{\DTMromaniantimezonesep}{\space}
\newcommand*{\DTMromaniandatesep}{.}
\newcommand*{\DTMromaniantimesep}{:}
+\DTMdefkey{romanian}{dowdaysep}{\renewcommand*{\DTMromaniandowdaysep}{#1}}
\DTMdefkey{romanian}{daymonthsep}{\renewcommand*{\DTMromaniandaymonthsep}{#1}}
\DTMdefkey{romanian}{monthyearsep}{\renewcommand*{\DTMromanianmonthyearsep}{#1}}
\DTMdefkey{romanian}{datetimesep}{\renewcommand*{\DTMromaniandatetimesep}{#1}}
\DTMdefkey{romanian}{timezonesep}{\renewcommand*{\DTMromaniantimezonesep}{#1}}
\DTMdefkey{romanian}{datesep}{\renewcommand*{\DTMromaniandatesep}{#1}}
\DTMdefkey{romanian}{timesep}{\renewcommand*{\DTMromaniantimesep}{#1}}
+\DTMdefboolkey{romanian}{abbr}[true]{}
+\DTMsetbool{romanian}{abbr}{false}
\DTMdefboolkey{romanian}{mapzone}[true]{}
\DTMsetbool{romanian}{mapzone}{true}
\DTMdefboolkey{romanian}{showdayofmonth}[true]{}
@@ -74,36 +81,101 @@
{romanian}% label
{% date style
\renewcommand*\DTMdisplaydate[4]{%
- \DTMifbool{romanian}{showdayofmonth}
- {\DTMromanianordinal{##3}\DTMromaniandaymonthsep}%
- {}%
- \DTMromanianmonthname{##2}%
- \DTMifbool{romanian}{showyear}%
+ \ifDTMshowdow
+ \ifnum##4>-1
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortweekdayname{##4}}%
+ {\DTMromanianweekdayname{##4}}%
+ \DTMromaniandowdaysep
+ \fi
+ \fi
+ \DTMifbool{romanian}{showdayofmonth}%
{%
- \DTMromanianmonthyearsep
- \number##1
+ \DTMromanianordinal{##3}%
+ \DTMromaniandaymonthsep
}%
{}%
- }%
- \renewcommand*\DTMDisplaydate[4]{%
- \DTMifbool{romanian}{showdayofmonth}
- {%
- \DTMromanianordinal{##3}\DTMromaniandaymonthsep
- \DTMromanianmonthname{##2}%
- }%
- {%
- \DTMromanianMonthname{##2}%
- }%
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortmonthname{##2}}%
+ {\DTMromanianmonthname{##2}}%
\DTMifbool{romanian}{showyear}%
{%
\DTMromanianmonthyearsep
- \number##1
+ \number##1 % space intended
}%
{}%
}%
+ \renewcommand*\DTMDisplaydate[4]{%
+ \ifDTMshowdow
+ \ifnum##4>-1
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortWeekdayname{##4}}%
+ {\DTMromanianWeekdayname{##4}}%
+ \DTMromaniandowdaysep
+ \DTMifbool{romanian}{showdayofmonth}%
+ {%
+ \DTMromanianordinal{##3}%
+ \DTMromaniandaymonthsep
+ }%
+ {}%
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortmonthname{##2}}%
+ {\DTMromanianmonthname{##2}}%
+ \DTMifbool{romanian}{showyear}%
+ {%
+ \DTMromanianmonthyearsep
+ \number##1 % space intended
+ }%
+ {}%
+ \else
+ \DTMifbool{romanian}{showdayofmonth}
+ {%
+ \DTMromanianordinal{##3}%
+ \DTMromaniandaymonthsep
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortmonthname{##2}}%
+ {\DTMromanianmonthname{##2}}%
+ }%
+ {%
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortMonthname{##2}}%
+ {\DTMromanianMonthname{##2}}%
+ }%
+ \DTMifbool{romanian}{showyear}%
+ {%
+ \DTMromanianmonthyearsep
+ \number##1 % space intended
+ }%
+ {}%
+ \fi
+ \else
+ \DTMifbool{romanian}{showdayofmonth}
+ {%
+ \DTMromanianordinal{##3}%
+ \DTMromaniandaymonthsep
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortmonthname{##2}}%
+ {\DTMromanianmonthname{##2}}%
+ }%
+ {%
+ \DTMifbool{romanian}{abbr}%
+ {\DTMromanianshortMonthname{##2}}%
+ {\DTMromanianMonthname{##2}}%
+ }%
+ \DTMifbool{romanian}{showyear}%
+ {%
+ \DTMromanianmonthyearsep
+ \number##1 % space intended
+ }%
+ {}%
+ \fi
+ }%
}%
- {% time style (use default)
- \DTMsettimestyle{default}%
+ {% time style (ignores seconds)
+ \renewcommand*\DTMdisplaytime[3]{%
+ \number##1
+ \DTMromaniantimesep\DTMtwodigits{##2}%
+ }%
}%
{% zone style
\DTMresetzones