From 3096a3dc265f5bfed166d88753c04db754c8bfd0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 5 Oct 2017 00:41:45 +0000 Subject: datetime2-german (4oct17) git-svn-id: svn://tug.org/texlive/trunk@45472 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/datetime2-german/datetime2-de-AT.ldf | 249 ++++++++++++++++++++ .../tex/latex/datetime2-german/datetime2-de-CH.ldf | 258 ++++++++++++++++++++ .../tex/latex/datetime2-german/datetime2-de-DE.ldf | 262 +++++++++++++++++++++ .../datetime2-german/datetime2-german-ascii.ldf | 107 ++++++++- .../datetime2-german/datetime2-german-utf8.ldf | 107 ++++++++- .../latex/datetime2-german/datetime2-german.ldf | 16 +- 6 files changed, 970 insertions(+), 29 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-AT.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-CH.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-DE.ldf (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-AT.ldf b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-AT.ldf new file mode 100644 index 00000000000..70cf6723fc2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-AT.ldf @@ -0,0 +1,249 @@ +%% +%% This is file `datetime2-de-AT.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-german.dtx (with options: `datetime2-de-AT.ldf,package') +%% +%% datetime2-german.dtx +%% Copyright 2015 Nicola Talbot +%% Copyright 2017 Sebastian Friedl +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2008/05/04 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% Current maintainer of the work is Sebastian Friedl +%% +%% This work consists of the files datetime2-german.dtx and +%% datetime2-german.ins and the derived files +%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf, +%% datetime2-german.ldf, datetime2-de-DE.ldf, +%% datetime2-de-AT.ldf and datetime2-de-CH.ldf +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\ProvidesDateTimeModule{de-AT}[2017/10/03 v2.0] +\RequireDateTimeModule{german} +\newcommand*{\DTMdeATdowdaysep}{,\space} +\newcommand*{\DTMdeATdaymonthsep}{.\DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMdeATmonthyearsep}{\space} +\newcommand*{\DTMdeATdatetimesep}{,\space} +\newcommand*{\DTMdeATtimezonesep}{\space} +\newcommand*{\DTMdeATdatesep}{-} +\newcommand*{\DTMdeATtimesep}{:} +\DTMdefkey{de-AT}{dowdaysep}{\renewcommand*{\DTMdeATdowdaysep}{#1}} +\DTMdefkey{de-AT}{daymonthsep}{\renewcommand*{\DTMdeATdaymonthsep}{#1}} +\DTMdefkey{de-AT}{monthyearsep}{\renewcommand*{\DTMdeATmonthyearsep}{#1}} +\DTMdefkey{de-AT}{datetimesep}{\renewcommand*{\DTMdeATdatetimesep}{#1}} +\DTMdefkey{de-AT}{timezonesep}{\renewcommand*{\DTMdeATtimezonesep}{#1}} +\DTMdefkey{de-AT}{datesep}{\renewcommand*{\DTMdeATdatesep}{#1}} +\DTMdefkey{de-AT}{timesep}{\renewcommand*{\DTMdeATtimesep}{#1}} +\DTMdefboolkey{de-AT}{abbr}[true]{} +\DTMsetbool{de-AT}{abbr}{false} +\DTMdefboolkey{de-AT}{mapzone}[true]{} +\DTMsetbool{de-AT}{mapzone}{true} +\DTMdefboolkey{de-AT}{showdayofmonth}[true]{} +\DTMsetbool{de-AT}{showdayofmonth}{true} +\DTMdefboolkey{de-AT}{showyear}[true]{} +\DTMsetbool{de-AT}{showyear}{true} +\DTMnewstyle +{de-AT}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-AT}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% + \DTMdeATdowdaysep + \fi + \fi + % + \DTMifbool{de-AT}{showdayofmonth}% + {\DTMgermanordinal{##3}\DTMdeATdaymonthsep}% + {}% + % + \DTMifbool{de-AT}{abbr}% + {\DTMdeATshortmonthname{##2}}% + {\DTMdeATmonthname{##2}}% + % + \DTMifbool{de-AT}{showyear}% + {% + \DTMdeATmonthyearsep% + \number##1 % space intended + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-AT}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% + \DTMdeATdowdaysep + \fi + \fi + % + \DTMifbool{de-AT}{showdayofmonth}% + {\DTMgermanordinal{##3}\DTMdeATdaymonthsep}% + {}% + % + \DTMifbool{de-AT}{abbr}% + {\DTMdeATshortmonthname{##2}}% + {\DTMdeATmonthname{##2}}% + % + \DTMifbool{de-AT}{showyear}% + {% + \DTMdeATmonthyearsep% + \number##1 % space intended + }% + {}% + } +}% +{% time style (use default) + \renewcommand*\DTMdisplaytime[3]{% + \DTMtwodigits{##1}% + \DTMdeATtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMdeATtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones + \DTMgermanzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{de-AT}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMdeATtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMdeATdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeATtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMdeATdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeATtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% +\DTMnewstyle +{de-AT-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{de-AT}{showyear}% + {% + \number##1 % space intended + \DTMdeATdatesep% + }% + {}% + % + \DTMtwodigits{##2}% + % + \DTMifbool{de-AT}{showdayofmonth}% + {% + \DTMdeATdatesep% + \DTMtwodigits{##3}% + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMtwodigits{##1}% + \DTMdeATtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMdeATtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones + \DTMgermanzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{de-AT}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgermantimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMdeATdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeATtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{de-AT}} +{\DTMsetstyle{de-AT-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dategerman + {% do nothing + }% + {% + \def\dategerman{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{german}}% + {\DTMsetstyle{german-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{de-AT}}% + {\DTMsetstyle{de-AT-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-de-AT.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-CH.ldf b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-CH.ldf new file mode 100644 index 00000000000..8573780a8ac --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-CH.ldf @@ -0,0 +1,258 @@ +%% +%% This is file `datetime2-de-CH.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-german.dtx (with options: `datetime2-de-CH.ldf,package') +%% +%% datetime2-german.dtx +%% Copyright 2015 Nicola Talbot +%% Copyright 2017 Sebastian Friedl +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2008/05/04 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% Current maintainer of the work is Sebastian Friedl +%% +%% This work consists of the files datetime2-german.dtx and +%% datetime2-german.ins and the derived files +%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf, +%% datetime2-german.ldf, datetime2-de-DE.ldf, +%% datetime2-de-AT.ldf and datetime2-de-CH.ldf +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\ProvidesDateTimeModule{de-CH}[2017/10/03 v2.0] +\RequireDateTimeModule{german} +\newcommand*{\DTMdeCHdowdaysep}{,\space} +\newcommand*{\DTMdeCHdaymonthsep}{.\DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMdeCHmonthyearsep}{\space} +\newcommand*{\DTMdeCHdatetimesep}{,\space} +\newcommand*{\DTMdeCHtimezonesep}{\space} +\newcommand*{\DTMdeCHdatesep}{.} +\newcommand*{\DTMdeCHtimesep}{.} +\DTMdefkey{de-CH}{dowdaysep}{\renewcommand*{\DTMdeCHdowdaysep}{#1}} +\DTMdefkey{de-CH}{daymonthsep}{\renewcommand*{\DTMdeCHdaymonthsep}{#1}} +\DTMdefkey{de-CH}{monthyearsep}{\renewcommand*{\DTMdeCHmonthyearsep}{#1}} +\DTMdefkey{de-CH}{datetimesep}{\renewcommand*{\DTMdeCHdatetimesep}{#1}} +\DTMdefkey{de-CH}{timezonesep}{\renewcommand*{\DTMdeCHtimezonesep}{#1}} +\DTMdefkey{de-CH}{datesep}{\renewcommand*{\DTMdeCHdatesep}{#1}} +\DTMdefkey{de-CH}{timesep}{\renewcommand*{\DTMdeCHtimesep}{#1}} +\DTMdefboolkey{de-CH}{abbr}[true]{} +\DTMsetbool{de-CH}{abbr}{false} +\DTMdefboolkey{de-CH}{mapzone}[true]{} +\DTMsetbool{de-CH}{mapzone}{true} +\DTMdefboolkey{de-CH}{showdayofmonth}[true]{} +\DTMsetbool{de-CH}{showdayofmonth}{true} +\DTMdefboolkey{de-CH}{showyear}[true]{} +\DTMsetbool{de-CH}{showyear}{true} +\DTMnewstyle +{de-CH}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-CH}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% + \DTMdeCHdowdaysep + \fi + \fi + % + \DTMifbool{de-CH}{showdayofmonth}% + {\DTMgermanordinal{##3}\DTMdeCHdaymonthsep}% + {}% + % + \DTMifbool{de-CH}{abbr}% + {\DTMdeCHshortmonthname{##2}}% + {\DTMgermanmonthname{##2}}% + % + \DTMifbool{de-CH}{showyear}% + {% + \DTMdeCHmonthyearsep% + \number##1 % space intended + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-CH}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% + \DTMdeCHdowdaysep + \fi + \fi + % + \DTMifbool{de-CH}{showdayofmonth}% + {\DTMgermanordinal{##3}\DTMdeCHdaymonthsep}% + {}% + % + \DTMifbool{de-CH}{abbr}% + {\DTMdeCHshortmonthname{##2}}% + {\DTMgermanmonthname{##2}}% + % + \DTMifbool{de-CH}{showyear}% + {% + \DTMdeCHmonthyearsep% + \number##1 % space intended + }% + {}% + } +}% +{% time style (use default) + \renewcommand*\DTMdisplaytime[3]{% + \DTMtwodigits{##1}% + \DTMdeCHtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMdeCHtimesep\DTMtwodigits{##3}\fi\space% + Uhr% + }% +}% +{% zone style + \DTMresetzones + \DTMgermanzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{de-CH}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMdeCHtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMdeCHdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeCHtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMdeCHdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeCHtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% +\DTMnewstyle +{de-CH-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-CH}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% +\DTMdeCHdowdaysep + \fi + \fi + % + \DTMifbool{de-CH}{showdayofmonth}% + {% + \DTMtwodigits{##3}% + \DTMdeCHdatesep + }% + {}% + \DTMtwodigits{##2}% + \DTMdeCHdatesep% + \DTMifbool{de-CH}{showyear}% + {% + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMtwodigits{##1}% + \DTMdeCHtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMdeCHtimesep\DTMtwodigits{##3}\fi\space% + Uhr% + }% +}% +{% zone style + \DTMresetzones + \DTMgermanzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{de-CH}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgermantimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMdeCHdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeCHtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{de-CH}} +{\DTMsetstyle{de-CH-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dategerman + {% do nothing + }% + {% + \def\dategerman{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{german}}% + {\DTMsetstyle{german-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{de-CH}}% + {\DTMsetstyle{de-CH-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-de-CH.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-DE.ldf b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-DE.ldf new file mode 100644 index 00000000000..626f215ce01 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-de-DE.ldf @@ -0,0 +1,262 @@ +%% +%% This is file `datetime2-de-DE.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-german.dtx (with options: `datetime2-de-DE.ldf,package') +%% +%% datetime2-german.dtx +%% Copyright 2015 Nicola Talbot +%% Copyright 2017 Sebastian Friedl +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2008/05/04 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% Current maintainer of the work is Sebastian Friedl +%% +%% This work consists of the files datetime2-german.dtx and +%% datetime2-german.ins and the derived files +%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf, +%% datetime2-german.ldf, datetime2-de-DE.ldf, +%% datetime2-de-AT.ldf and datetime2-de-CH.ldf +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\ProvidesDateTimeModule{de-DE}[2017/10/03 v2.0] +\RequireDateTimeModule{german} +\newcommand*{\DTMdeDEdowdaysep}{,\space} +\newcommand*{\DTMdeDEdaymonthsep}{.\DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMdeDEmonthyearsep}{\space} +\newcommand*{\DTMdeDEdatetimesep}{,\space} +\newcommand*{\DTMdeDEtimezonesep}{\space} +\newcommand*{\DTMdeDEdatesep}{.} +\newcommand*{\DTMdeDEtimesep}{:} +\DTMdefkey{de-DE}{dowdaysep}{\renewcommand*{\DTMdeDEdowdaysep}{#1}} +\DTMdefkey{de-DE}{daymonthsep}{\renewcommand*{\DTMdeDEdaymonthsep}{#1}} +\DTMdefkey{de-DE}{monthyearsep}{\renewcommand*{\DTMdeDEmonthyearsep}{#1}} +\DTMdefkey{de-DE}{datetimesep}{\renewcommand*{\DTMdeDEdatetimesep}{#1}} +\DTMdefkey{de-DE}{timezonesep}{\renewcommand*{\DTMdeDEtimezonesep}{#1}} +\DTMdefkey{de-DE}{datesep}{\renewcommand*{\DTMdeDEdatesep}{#1}} +\DTMdefkey{de-DE}{timesep}{\renewcommand*{\DTMdeDEtimesep}{#1}} +\DTMdefboolkey{de-DE}{abbr}[true]{} +\DTMsetbool{de-DE}{abbr}{false} +\DTMdefboolkey{de-DE}{mapzone}[true]{} +\DTMsetbool{de-DE}{mapzone}{true} +\DTMdefboolkey{de-DE}{showdayofmonth}[true]{} +\DTMsetbool{de-DE}{showdayofmonth}{true} +\DTMdefboolkey{de-DE}{showyear}[true]{} +\DTMsetbool{de-DE}{showyear}{true} +\DTMnewstyle +{de-DE}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-DE}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% + \DTMdeDEdowdaysep + \fi + \fi + % + \DTMifbool{de-DE}{showdayofmonth}% + {\DTMgermanordinal{##3}\DTMdeDEdaymonthsep}% + {}% + % + \DTMifbool{de-DE}{abbr}% + {\DTMgermanshortmonthname{##2}}% + {\DTMgermanmonthname{##2}}% + % + \DTMifbool{de-DE}{showyear}% + {% + \DTMdeDEmonthyearsep% + \DTMifbool{de-DE}{abbr}% + {'\DTMtwodigits{##1}}% + {\number##1 }% space intended + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-DE}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% + \DTMdeDEdowdaysep + \fi + \fi + % + \DTMifbool{de-DE}{showdayofmonth}% + {\DTMgermanordinal{##3}\DTMdeDEdaymonthsep}% + {}% + % + \DTMifbool{de-DE}{abbr}% + {\DTMgermanshortmonthname{##2}}% + {\DTMgermanmonthname{##2}}% + % + \DTMifbool{de-DE}{showyear}% + {% + \DTMdeDEmonthyearsep% + \DTMifbool{de-DE}{abbr}% + {'\DTMtwodigits{##1}}% + {\number##1 }% space intended + }% + {}% + } +}% +{% time style (use default) + \renewcommand*\DTMdisplaytime[3]{% + \DTMtwodigits{##1}% + \DTMdeDEtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMdeDEtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones + \DTMgermanzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{de-DE}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMdeDEtimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMdeDEdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeDEtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMdeDEdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeDEtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% +\DTMnewstyle +{de-DE-numeric}% label +{% date style + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{de-DE}{abbr}% + {\DTMgermanshortweekdayname{##4}}% + {\DTMgermanweekdayname{##4}}% + \DTMdeDEdowdaysep + \fi + \fi + % + \DTMifbool{de-DE}{showdayofmonth}% + {% + \DTMtwodigits{##3}% + \DTMdeDEdatesep + }% + {}% + \DTMtwodigits{##2}% + \DTMdeDEdatesep% + \DTMifbool{de-DE}{showyear}% + {% + \DTMifbool{de-DE}{abbr}% + {\DTMtwodigits{##1}}% + {\number##1 }% space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% +}% +{% time style + \renewcommand*\DTMdisplaytime[3]{% + \DTMtwodigits{##1}% + \DTMdeDEtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMdeDEtimesep\DTMtwodigits{##3}\fi + }% +}% +{% zone style + \DTMresetzones + \DTMgermanzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{de-DE}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgermantimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMdeDEdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMdeDEtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% +} +\DTMifcaseregional + {}% do nothing + {\DTMsetstyle{de-DE}} + {\DTMsetstyle{de-DE-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dategerman + {% do nothing + }% + {% + \def\dategerman{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{german}}% + {\DTMsetstyle{german-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{de-DE}}% + {\DTMsetstyle{de-DE-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-de-DE.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-ascii.ldf index 3dc5798ec6d..4dab25ebe67 100644 --- a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-ascii.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-ascii.ldf @@ -23,8 +23,9 @@ %% %% This work consists of the files datetime2-german.dtx and %% datetime2-german.ins and the derived files -%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf and -%% datetime2-german.ldf. +%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf, +%% datetime2-german.ldf, datetime2-de-DE.ldf, +%% datetime2-de-AT.ldf and datetime2-de-CH.ldf %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -41,7 +42,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{german-ascii}[2017/09/10 v1.2] +\ProvidesDateTimeModule{german-ascii}[2017/10/03 v2.0] \newcommand*{\DTMgermanordinal}[1]{% \number#1 } @@ -73,6 +74,34 @@ Dezember% \fi } +\newcommand*{\DTMdeATmonthname}[1]{% + \ifcase#1 + \or + J\protect\"anner% + \or + Februar% + \or + M\protect\"arz% + \or + April% + \or + Mai% + \or + Juni% + \or + Juli% + \or + August% + \or + September% + \or + Oktober% + \or + November% + \or + Dezember% + \fi +} \newcommand*{\DTMgermanshortmonthname}[1]{% \ifcase#1 \or @@ -92,7 +121,7 @@ \or Aug.% \or - Sep.% + Sept.% \or Okt.% \or @@ -101,6 +130,62 @@ Dez.% \fi } +\newcommand*{\DTMdeATshortmonthname}[1]{% + \ifcase#1 + \or + J\protect\"an.% + \or + Feb.% + \or + M\protect\"arz% + \or + Apr.% + \or + Mai% + \or + Juni% + \or + Juli% + \or + Aug.% + \or + Sept.% + \or + Okt.% + \or + Nov.% + \or + Dez.% + \fi +} +\newcommand*{\DTMdeCHshortmonthname}[1]{% +\ifcase#1 +\or +Jan.% +\or +Febr.% +\or +M\protect\"arz% +\or +April% +\or +Mai% +\or +Juni% +\or +Juli% +\or +Aug.% +\or +Sept.% +\or +Okt.% +\or +Nov.% +\or +Dez.% +\fi +} \newcommand*{\DTMgermanweekdayname}[1]{% \ifcase#1 Montag% @@ -120,19 +205,19 @@ } \newcommand*{\DTMgermanshortweekdayname}[1]{% \ifcase#1 - Mo.% + Mo% \or - Di.% + Di% \or - Mi.% + Mi% \or - Do.% + Do% \or - Fr.% + Fr% \or - Sa.% + Sa% \or - So.% + So% \fi } \endinput diff --git a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-utf8.ldf index 0c0f22f3ffc..27876381024 100644 --- a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-utf8.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german-utf8.ldf @@ -23,8 +23,9 @@ %% %% This work consists of the files datetime2-german.dtx and %% datetime2-german.ins and the derived files -%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf and -%% datetime2-german.ldf. +%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf, +%% datetime2-german.ldf, datetime2-de-DE.ldf, +%% datetime2-de-AT.ldf and datetime2-de-CH.ldf %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -41,7 +42,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{german-utf8}[2017/09/10 v1.2] +\ProvidesDateTimeModule{german-utf8}[2017/10/03 v2.0] \newcommand*{\DTMgermanordinal}[1]{% \number#1 } @@ -73,6 +74,34 @@ Dezember% \fi } +\newcommand*{\DTMdeATmonthname}[1]{% + \ifcase#1 + \or + Jänner% + \or + Februar% + \or + März% + \or + April% + \or + Mai% + \or + Juni% + \or + Juli% + \or + August% + \or + September% + \or + Oktober% + \or + November% + \or + Dezember% + \fi +} \newcommand*{\DTMgermanshortmonthname}[1]{% \ifcase#1 \or @@ -92,7 +121,63 @@ \or Aug.% \or - Sep.% + Sept.% + \or + Okt.% + \or + Nov.% + \or + Dez.% + \fi +} +\newcommand*{\DTMdeATshortmonthname}[1]{% + \ifcase#1 + \or + Jän.% + \or + Feb.% + \or + März% + \or + Apr.% + \or + Mai% + \or + Juni% + \or + Juli% + \or + Aug.% + \or + Sept.% + \or + Okt.% + \or + Nov.% + \or + Dez.% + \fi +} +\newcommand*{\DTMdeCHshortmonthname}[1]{% + \ifcase#1 + \or + Jan.% + \or + Febr.% + \or + März% + \or + April% + \or + Mai% + \or + Juni% + \or + Juli% + \or + Aug.% + \or + Sept.% \or Okt.% \or @@ -120,19 +205,19 @@ } \newcommand*{\DTMgermanshortweekdayname}[1]{% \ifcase#1 - Mo.% + Mo% \or - Di.% + Di% \or - Mi.% + Mi% \or - Do.% + Do% \or - Fr.% + Fr% \or - Sa.% + Sa% \or - So.% + So% \fi } \endinput diff --git a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german.ldf b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german.ldf index c44dcad0764..e00474dff49 100644 --- a/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-german/datetime2-german.ldf @@ -23,8 +23,9 @@ %% %% This work consists of the files datetime2-german.dtx and %% datetime2-german.ins and the derived files -%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf and -%% datetime2-german.ldf. +%% datetime2-german-utf8.ldf, datetime2-german-ascii.ldf, +%% datetime2-german.ldf, datetime2-de-DE.ldf, +%% datetime2-de-AT.ldf and datetime2-de-CH.ldf %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -41,7 +42,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{german}[2017/09/10 v1.2] +\ProvidesDateTimeModule{german}[2017/10/03 v2.0] \RequirePackage{ifxetex,ifluatex} \ifxetex \RequireDateTimeModule{german-utf8} @@ -59,6 +60,7 @@ \newcommand*{\DTMgermantimezonesep}{\space} \newcommand*{\DTMgermandatesep}{.} \newcommand*{\DTMgermantimesep}{:} +\DTMdefkey{german}{dowdaysep}{\renewcommand*{\DTMgermandowdaysep}{#1}} \DTMdefkey{german}{daymonthsep}{\renewcommand*{\DTMgermandaymonthsep}{#1}} \DTMdefkey{german}{monthyearsep}{\renewcommand*{\DTMgermanmonthyearsep}{#1}} \DTMdefkey{german}{datetimesep}{\renewcommand*{\DTMgermandatetimesep}{#1}} @@ -194,12 +196,12 @@ }% {}% \DTMtwodigits{##2}% + \DTMgermandatesep% \DTMifbool{german}{showyear}% {% - \DTMgermandatesep% - \DTMifbool{german}{abbr}% - {\DTMtwodigits{##1}}% - {\number##1 }% space intended + \DTMifbool{german}{abbr}% + {\DTMtwodigits{##1}}% + {\number##1 }% space intended }% {}% }% -- cgit v1.2.3