From ec6e661feaedf4ec85d0ca5b6d98cfb6dc3a71ae Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 4 Apr 2016 21:16:16 +0000 Subject: datetime2-finnish (4apr16) git-svn-id: svn://tug.org/texlive/trunk@40237 c570f23f-e606-0410-a88d-b1316a301751 --- .../datetime2-finnish/datetime2-finnish-ascii.ldf | 178 ++++++++++++++++++--- .../datetime2-finnish/datetime2-finnish-utf8.ldf | 178 ++++++++++++++++++--- .../latex/datetime2-finnish/datetime2-finnish.ldf | 85 ++++++++-- 3 files changed, 372 insertions(+), 69 deletions(-) (limited to 'Master/texmf-dist/tex/latex/datetime2-finnish') diff --git a/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-ascii.ldf index 36fed750147..d447ddf3e32 100644 --- a/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-ascii.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-ascii.ldf @@ -17,7 +17,9 @@ %% 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 Tuomas Välimäki. %% %% This work consists of the files datetime2-finnish.dtx and %% datetime2-finnish.ins and the derived files @@ -39,64 +41,188 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{finnish-ascii}[2015/03/30 v1.0] +\ProvidesDateTimeModule{finnish-ascii}[2016/03/29 v1.1] \newcommand*{\DTMfinnishordinal}[1]{% \number#1.% } \newcommand*{\DTMfinnishmonthname}[1]{% \ifcase#1 \or - tammikuuta% + tammikuu% \or - helmikuuta% + helmikuu% \or - maaliskuuta% + maaliskuu% \or - huhtikuuta% + huhtikuu% \or - toukokuuta% + toukokuu% \or - kes\protect\"akuuta% + kes\protect\"akuu% \or - hein\protect\"akuuta% + hein\protect\"akuu% \or - elokuuta% + elokuu% \or - syyskuuta% + syyskuu% \or - lokakuuta% + lokakuu% \or - marraskuuta% + marraskuu% \or - joulukuuta% + joulukuu% \fi } \newcommand*{\DTMfinnishMonthname}[1]{% \ifcase#1 \or - Tammikuuta% + Tammikuu% + \or + Helmikuu% + \or + Maaliskuu% + \or + Huhtikuu% + \or + Toukokuu% + \or + Kes\protect\"akuu% + \or + Hein\protect\"akuu% + \or + Elokuu% + \or + Syyskuu% + \or + Lokakuu% + \or + Marraskuu% + \or + Joulukuu% + \fi +} +\newcommand*{\DTMfinnishshortmonthname}[1]{% + \ifcase#1 + \or + tammi% + \or + helmi% + \or + maalis% + \or + huhti% + \or + touko% + \or + kes\protect\"a% + \or + hein\protect\"a% + \or + elo% + \or + syys% + \or + loka% + \or + marras% + \or + joulu% + \fi +} +\newcommand*{\DTMfinnishshortMonthname}[1]{% + \ifcase#1 + \or + Tammi% + \or + Helmi% + \or + Maalis% + \or + Huhti% \or - Helmikuuta% + Touko% \or - Maaliskuuta% + Kes\protect\"a% \or - Huhtikuuta% + Hein\protect\"a% \or - Toukokuuta% + Elo% \or - Kes\protect\"akuuta% + Syys% + \or + Loka% + \or + Marras% + \or + Joulu% + \fi +} +\newcommand*{\DTMfinnishweekdayname}[1]{% + \ifcase#1 + maanantai% + \or + tiistai% + \or + keskiviikko% + \or + torstai% + \or + perjantai% + \or + lauantai% + \or + sunnuntai% + \fi +} +\newcommand*{\DTMfinnishWeekdayname}[1]{% + \ifcase#1 + Maanantai% + \or + Tiistai% + \or + Keskiviikko% + \or + Torstai% + \or + Perjantai% + \or + Lauantai% + \or + Sunnuntai% + \fi +} +\newcommand*{\DTMfinnishshortweekdayname}[1]{% + \ifcase#1 + ma% + \or + ti% + \or + ke% + \or + to% + \or + pe% + \or + la% + \or + su% + \fi +} +\newcommand*{\DTMfinnishshortWeekdayname}[1]{% + \ifcase#1 + Ma% \or - Hein\protect\"akuuta% + Ti% \or - Elokuuta% + Ke% \or - Syyskuuta% + To% \or - Lokakuuta% + Pe% \or - Marraskuuta% + La% \or - Joulukuuta% + Su% \fi } \endinput diff --git a/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-utf8.ldf index ea0564d874c..6e4696f8c2e 100644 --- a/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-utf8.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish-utf8.ldf @@ -17,7 +17,9 @@ %% 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 Tuomas Välimäki. %% %% This work consists of the files datetime2-finnish.dtx and %% datetime2-finnish.ins and the derived files @@ -39,64 +41,188 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{finnish-utf8}[2015/03/30 v1.0] +\ProvidesDateTimeModule{finnish-utf8}[2016/03/29 v1.1] \newcommand*{\DTMfinnishordinal}[1]{% \number#1.% } \newcommand*{\DTMfinnishmonthname}[1]{% \ifcase#1 \or - tammikuuta% + tammikuu% \or - helmikuuta% + helmikuu% \or - maaliskuuta% + maaliskuu% \or - huhtikuuta% + huhtikuu% \or - toukokuuta% + toukokuu% \or - kesäkuuta% + kesäkuu% \or - heinäkuuta% + heinäkuu% \or - elokuuta% + elokuu% \or - syyskuuta% + syyskuu% \or - lokakuuta% + lokakuu% \or - marraskuuta% + marraskuu% \or - joulukuuta% + joulukuu% \fi } \newcommand*{\DTMfinnishMonthname}[1]{% \ifcase#1 \or - Tammikuuta% + Tammikuu% + \or + Helmikuu% + \or + Maaliskuu% + \or + Huhtikuu% + \or + Toukokuu% + \or + Kesäkuu% + \or + Heinäkuu% + \or + Elokuu% + \or + Syyskuu% + \or + Lokakuu% + \or + Marraskuu% + \or + Joulukuu% + \fi +} +\newcommand*{\DTMfinnishshortmonthname}[1]{% + \ifcase#1 + \or + tammi% + \or + helmi% + \or + maalis% + \or + huhti% + \or + touko% + \or + kesä% + \or + heinä% + \or + elo% + \or + syys% + \or + loka% + \or + marras% + \or + joulu% + \fi +} +\newcommand*{\DTMfinnishshortMonthname}[1]{% + \ifcase#1 + \or + Tammi% + \or + Helmi% + \or + Maalis% + \or + Huhti% \or - Helmikuuta% + Touko% \or - Maaliskuuta% + Kesä% \or - Huhtikuuta% + Heinä% \or - Toukokuuta% + Elo% \or - Kesäkuuta% + Syys% + \or + Loka% + \or + Marras% + \or + Joulu% + \fi +} +\newcommand*{\DTMfinnishweekdayname}[1]{% + \ifcase#1 + maanantai% + \or + tiistai% + \or + keskiviikko% + \or + torstai% + \or + perjantai% + \or + lauantai% + \or + sunnuntai% + \fi +} +\newcommand*{\DTMfinnishWeekdayname}[1]{% + \ifcase#1 + Maanantai% + \or + Tiistai% + \or + Keskiviikko% + \or + Torstai% + \or + Perjantai% + \or + Lauantai% + \or + Sunnuntai% + \fi +} +\newcommand*{\DTMfinnishshortweekdayname}[1]{% + \ifcase#1 + ma% + \or + ti% + \or + ke% + \or + to% + \or + pe% + \or + la% + \or + su% + \fi +} +\newcommand*{\DTMfinnishshortWeekdayname}[1]{% + \ifcase#1 + Ma% \or - Heinäkuuta% + Ti% \or - Elokuuta% + Ke% \or - Syyskuuta% + To% \or - Lokakuuta% + Pe% \or - Marraskuuta% + La% \or - Joulukuuta% + Su% \fi } \endinput diff --git a/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish.ldf b/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish.ldf index 60cddbc5bbc..bc469517139 100644 --- a/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-finnish/datetime2-finnish.ldf @@ -17,7 +17,9 @@ %% 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 Tuomas Välimäki. %% %% This work consists of the files datetime2-finnish.dtx and %% datetime2-finnish.ins and the derived files @@ -39,7 +41,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{finnish}[2015/03/30 v1.0] +\ProvidesDateTimeModule{finnish}[2016/03/29 v1.1] \RequirePackage{ifxetex,ifluatex} \ifxetex \RequireDateTimeModule{finnish-utf8} @@ -50,6 +52,7 @@ \RequireDateTimeModule{finnish-ascii} \fi \fi +\newcommand*{\DTMfinnishdowdaysep}{\space} \newcommand*{\DTMfinnishdaymonthsep}{% \DTMtexorpdfstring{\protect~}{\space}% } @@ -58,12 +61,15 @@ \newcommand*{\DTMfinnishtimezonesep}{\space} \newcommand*{\DTMfinnishdatesep}{.} \newcommand*{\DTMfinnishtimesep}{.} +\DTMdefkey{finnish}{dowdaysep}{\renewcommand*{\DTMfinnishdowdaysep}{#1}} \DTMdefkey{finnish}{daymonthsep}{\renewcommand*{\DTMfinnishdaymonthsep}{#1}} \DTMdefkey{finnish}{monthyearsep}{\renewcommand*{\DTMfinnishmonthyearsep}{#1}} \DTMdefkey{finnish}{datetimesep}{\renewcommand*{\DTMfinnishdatetimesep}{#1}} \DTMdefkey{finnish}{timezonesep}{\renewcommand*{\DTMfinnishtimezonesep}{#1}} \DTMdefkey{finnish}{datesep}{\renewcommand*{\DTMfinnishdatesep}{#1}} \DTMdefkey{finnish}{timesep}{\renewcommand*{\DTMfinnishtimesep}{#1}} +\DTMdefboolkey{finnish}{abbr}[true]{} +\DTMsetbool{finnish}{abbr}{false} \DTMdefboolkey{finnish}{mapzone}[true]{} \DTMsetbool{finnish}{mapzone}{true} \DTMdefboolkey{finnish}{showdayofmonth}[true]{} @@ -74,36 +80,81 @@ {finnish}% label {% date style \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortweekdayname{##4}}% + {\DTMfinnishweekdayname{##4}}% + \DTMfinnishdowdaysep + \fi + \fi \DTMifbool{finnish}{showdayofmonth} - {\DTMfinnishordinal{##3}\DTMfinnishdaymonthsep}% - {}% - \DTMfinnishmonthname{##2}% + {% + \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortmonthname{##2}}% + {\DTMfinnishmonthname{##2}ta}% + }% + {% + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortmonthname{##2}}% + {\DTMfinnishmonthname{##2}}% + }% \DTMifbool{finnish}{showyear}% {% \DTMfinnishmonthyearsep - \number##1 + \number##1 % space intended }% {}% }% \renewcommand*\DTMDisplaydate[4]{% - \DTMifbool{finnish}{showdayofmonth} - {% - \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep - \DTMfinnishmonthname{##2}% - }% - {% - \DTMfinnishMonthname{##2}% - }% + \ifDTMshowdow + \ifnum##4>-1 + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortWeekdayname{##4}}% + {\DTMfinnishWeekdayname{##4}}% + \DTMfinnishdowdaysep + \fi + \DTMifbool{finnish}{showdayofmonth} + {% + \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortmonthname{##2}}% + {\DTMfinnishmonthname{##2}ta}% + }% + {% + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortmonthname{##2}}% + {\DTMfinnishmonthname{##2}}% + }% + \else + \DTMifbool{finnish}{showdayofmonth} + {% + \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortmonthname{##2}}% + {\DTMfinnishmonthname{##2}ta}% + }% + {% + \DTMifbool{finnish}{abbr}% + {\DTMfinnishshortMonthname{##2}}% + {\DTMfinnishMonthname{##2}}% + }% + \fi \DTMifbool{finnish}{showyear}% {% \DTMfinnishmonthyearsep - \number##1 + \number##1 % space intended }% {}% }% }% - {% time style (use default) - \DTMsettimestyle{default}% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMfinnishtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMfinnishtimesep\DTMtwodigits{##3}\fi + }% }% {% zone style \DTMresetzones -- cgit v1.2.3