From ef724de0a3026a180d48d923ab9fd796c48b3605 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 3 Sep 2015 23:59:51 +0000 Subject: datetime2-basque (3sep15) git-svn-id: svn://tug.org/texlive/trunk@38287 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/datetime2-basque/datetime2-basque.ldf | 66 ++++++++++++++++++---- 1 file changed, 55 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex/latex/datetime2-basque') diff --git a/Master/texmf-dist/tex/latex/datetime2-basque/datetime2-basque.ldf b/Master/texmf-dist/tex/latex/datetime2-basque/datetime2-basque.ldf index 92260076595..6c21bfb7982 100644 --- a/Master/texmf-dist/tex/latex/datetime2-basque/datetime2-basque.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-basque/datetime2-basque.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 Zunbeltz Izaola. %% %% This work consists of the files datetime2-basque.dtx and %% datetime2-basque.ins and the derived file @@ -38,9 +40,23 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} + \ProvidesDateTimeModule{basque}[2015/03/29 v1.0] +\DTMdefboolkey{basque}{inessive}[false]{} + \newcommand*{\DTMbasqueordinal}[1]{% - \number#1 % space intended + \number#1% + \DTMifbool{basque}{inessive}{% + \ifcase\number#1 %declination for the day (inessive case) + \or ean\or an\or an\or an\or ean\or an\or an\or an\or an\or ean\or + n\or an\or an\or an\or ean\or an\or an\or an\or an\or an\or ean\or + an\or an\or an\or ean\or an\or an\or an\or an\or ean\or n\fi% + }{% + \ifcase\number#1 %declination for the day (absolutive case) + \or a\or a\or a\or a\or a\or a\or a\or a\or a\or a\or \or + a\or a\or a\or a\or a\or a\or a\or a\or a\or a\or a\or a\or + a\or a\or a\or a\or a\or a\or a\or\fi% + }% } \newcommand*{\DTMbasquemonthname}[1]{% \ifcase#1 @@ -100,10 +116,38 @@ } \newcommand*{\DTMbasquemonthdaysep}{% \DTMtexorpdfstring{\protect~}{\space}} -\newcommand*{\DTMbasqueyearmonthsep}{.eko\space} +\newcommand*{\DTMbasqueyearmonthsep}{\ifcase\DTMtwodigits{\@dtm@currentyear} + %Declination for the year + %00-20 + ko \or eko \or ko \or ko \or ko \or eko \or ko + \or ko \or ko \or ko \or eko \or ko \or ko + \or ko \or ko \or eko \or ko \or ko \or ko + \or ko \or ko \or + %21-40 + eko \or ko \or ko \or ko \or eko \or ko + \or ko \or ko \or ko \or eko \or ko \or ko + \or ko \or ko \or eko \or ko \or ko \or ko + \or ko \or ko \or + %41-60 + eko \or ko \or ko \or ko \or eko \or ko + \or ko \or ko \or ko \or eko \or ko \or ko + \or ko \or ko \or eko \or ko \or ko \or ko + \or ko \or ko \or + %61-80 + eko \or ko \or ko \or ko \or eko \or ko + \or ko \or ko \or ko \or eko \or ko \or ko + \or ko \or ko \or eko \or ko \or ko \or ko + \or ko \or ko \or + %81-100 + eko \or ko \or ko \or ko \or eko \or ko + \or ko \or ko \or ko \or eko \or ko \or ko + \or ko \or ko \or eko \or ko \or ko \or ko + \or ko \or eko +\fi% +} \newcommand*{\DTMbasquedatetimesep}{\space} \newcommand*{\DTMbasquetimezonesep}{\space} -\newcommand*{\DTMbasquedatesep}{.} +\newcommand*{\DTMbasquedatesep}{/} \newcommand*{\DTMbasquetimesep}{:} \DTMdefkey{basque}{monthdaysep}{\renewcommand*{\DTMbasquemonthdaysep}{#1}} \DTMdefkey{basque}{yearmonthsep}{\renewcommand*{\DTMbasqueyearmonthsep}{#1}} @@ -123,7 +167,7 @@ \renewcommand*\DTMdisplaydate[4]{% \DTMifbool{basque}{showyear}% {% - \number##1 % space intended + \number##1% \DTMbasqueyearmonthsep }% {}% @@ -135,7 +179,7 @@ \renewcommand*\DTMDisplaydate[4]{% \DTMifbool{basque}{showyear}% {% - \number##1 % space intended + \number##1% \DTMbasqueyearmonthsep \DTMbasquemonthname{##2}% }% @@ -190,17 +234,17 @@ {basque-numeric}% label {% date style \renewcommand*\DTMdisplaydate[4]{% - \DTMifbool{basque}{showdayofmonth}% + \DTMifbool{basque}{showyear}% {% - \number##3 % space intended + \number##1% \DTMbasquedatesep }% {}% - \number##2 % space intended - \DTMifbool{basque}{showyear}% + \number##2% + \DTMifbool{basque}{showdayofmonth}% {% \DTMbasquedatesep - \number##1 % space intended + \number##3 % space intended }% {}% }% -- cgit v1.2.3