diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime2-romanian')
3 files changed, 289 insertions, 31 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf index ea4ea092e51..fa2f738f7a1 100644 --- a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.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-ascii}[2015/03/31 v1.0] +\ProvidesDateTimeModule{romanian-ascii}[2017/04/08 v1.01] \newcommand*{\DTMromanianordinal}[1]{% \number#1 } @@ -99,6 +102,62 @@ Decembrie% \fi } +\newcommand*{\DTMromanianshortmonthname}[1]{% + \ifcase#1 + \or + ian.% + \or + feb.% + \or + mart.% + \or + apr.% + \or + mai% + \or + iun.% + \or + iul.% + \or + aug.% + \or + sept.% + \or + oct.% + \or + nov.% + \or + dec.% + \fi +} +\newcommand*{\DTMromanianshortMonthname}[1]{% + \ifcase#1 + \or + Ian.% + \or + Feb.% + \or + Mart.% + \or + Apr.% + \or + Mai% + \or + Iun.% + \or + Iul.% + \or + Aug.% + \or + Sept.% + \or + Oct.% + \or + Nov.% + \or + Dec.% + \fi +} \newcommand*{\DTMromanianweekdayname}[1]{% \ifcase#1 luni% @@ -133,6 +192,40 @@ Duminic\protect\u a% \fi } +\newcommand*{\DTMromanianshortweekdayname}[1]{% + \ifcase#1 + lun.% + \or + mar.% + \or + mie.% + \or + joi% + \or + vin.% + \or + s\protect\^am.% + \or + dum.% + \fi +} +\newcommand*{\DTMromanianshortWeekdayname}[1]{% + \ifcase#1 + Lun.% + \or + Mar.% + \or + Mie.% + \or + Joi% + \or + Vin.% + \or + S\protect\^am.% + \or + Dum.% + \fi +} \endinput %% %% End of file `datetime2-romanian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf index dc981af285f..2fe47056599 100644 --- a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.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-utf8}[2015/03/31 v1.0] +\ProvidesDateTimeModule{romanian-utf8}[2017/04/08 v1.01] \newcommand*{\DTMromanianordinal}[1]{% \number#1 } @@ -99,11 +102,67 @@ Decembrie% \fi } +\newcommand*{\DTMromanianshortmonthname}[1]{% + \ifcase#1 + \or + ian.% + \or + feb.% + \or + mart.% + \or + apr.% + \or + mai% + \or + iun.% + \or + iul.% + \or + aug.% + \or + sept.% + \or + oct.% + \or + nov.% + \or + dec.% + \fi +} +\newcommand*{\DTMromanianshortMonthname}[1]{% + \ifcase#1 + \or + Ian.% + \or + Feb.% + \or + Mart.% + \or + Apr.% + \or + Mai% + \or + Iun.% + \or + Iul.% + \or + Aug.% + \or + Sept.% + \or + Oct.% + \or + Nov.% + \or + Dec.% + \fi +} \newcommand*{\DTMromanianweekdayname}[1]{% \ifcase#1 luni% \or - marţi% + marți% \or miercuri% \or @@ -120,7 +179,7 @@ \ifcase#1 Luni% \or - Marţi% + Marți% \or Miercuri% \or @@ -133,6 +192,40 @@ Duminică% \fi } +\newcommand*{\DTMromanianshortweekdayname}[1]{% + \ifcase#1 + lun.% + \or + mar.% + \or + mie.% + \or + joi% + \or + vin.% + \or + sâm.% + \or + dum.% + \fi +} +\newcommand*{\DTMromanianshortWeekdayname}[1]{% + \ifcase#1 + Lun.% + \or + Mar.% + \or + Mie.% + \or + Joi% + \or + Vin.% + \or + Sâm.% + \or + Dum.% + \fi +} \endinput %% %% End of file `datetime2-romanian-utf8.ldf'. 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 |