From b7f95896ce301dbceea61c49abdfa85b2bdb42f9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 30 Mar 2015 23:12:49 +0000 Subject: datetime2-* (30mar15) git-svn-id: svn://tug.org/texlive/trunk@36682 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/datetime2-basque/datetime2-basque.ldf | 273 +++++++++++++++++++++ 1 file changed, 273 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/datetime2-basque/datetime2-basque.ldf (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 new file mode 100644 index 00000000000..92260076595 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-basque/datetime2-basque.ldf @@ -0,0 +1,273 @@ +%% +%% This is file `datetime2-basque.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-basque.dtx (with options: `datetime2-basque.ldf,package') +%% +%% datetime2-basque.dtx +%% Copyright 2015 Nicola Talbot +%% +%% 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. +%% 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 consists of the files datetime2-basque.dtx and +%% datetime2-basque.ins and the derived file +%% datetime2-basque.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{basque}[2015/03/29 v1.0] +\newcommand*{\DTMbasqueordinal}[1]{% + \number#1 % space intended +} +\newcommand*{\DTMbasquemonthname}[1]{% + \ifcase#1 + \or + urtarrilaren% + \or + otsailaren% + \or + martxoaren% + \or + apirilaren% + \or + maiatzaren% + \or + ekainaren% + \or + uztailaren% + \or + abuztuaren% + \or + irailaren% + \or + urriaren% + \or + azaroaren% + \or + abenduaren% + \fi +} +\newcommand*{\DTMbasqueMonthname}[1]{% + \ifcase#1 + \or + Urtarrilaren% + \or + Otsailaren% + \or + Martxoaren% + \or + Apirilaren% + \or + Maiatzaren% + \or + Ekainaren% + \or + Uztailaren% + \or + Abuztuaren% + \or + Irailaren% + \or + Urriaren% + \or + Azaroaren% + \or + Abenduaren% + \fi +} +\newcommand*{\DTMbasquemonthdaysep}{% + \DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMbasqueyearmonthsep}{.eko\space} +\newcommand*{\DTMbasquedatetimesep}{\space} +\newcommand*{\DTMbasquetimezonesep}{\space} +\newcommand*{\DTMbasquedatesep}{.} +\newcommand*{\DTMbasquetimesep}{:} +\DTMdefkey{basque}{monthdaysep}{\renewcommand*{\DTMbasquemonthdaysep}{#1}} +\DTMdefkey{basque}{yearmonthsep}{\renewcommand*{\DTMbasqueyearmonthsep}{#1}} +\DTMdefkey{basque}{datetimesep}{\renewcommand*{\DTMbasquedatetimesep}{#1}} +\DTMdefkey{basque}{timezonesep}{\renewcommand*{\DTMbasquetimezonesep}{#1}} +\DTMdefkey{basque}{datesep}{\renewcommand*{\DTMbasquedatesep}{#1}} +\DTMdefkey{basque}{timesep}{\renewcommand*{\DTMbasquetimesep}{#1}} +\DTMdefboolkey{basque}{mapzone}[true]{} +\DTMsetbool{basque}{mapzone}{true} +\DTMdefboolkey{basque}{showdayofmonth}[true]{} +\DTMsetbool{basque}{showdayofmonth}{true} +\DTMdefboolkey{basque}{showyear}[true]{} +\DTMsetbool{basque}{showyear}{true} +\DTMnewstyle + {basque}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{basque}{showyear}% + {% + \number##1 % space intended + \DTMbasqueyearmonthsep + }% + {}% + \DTMbasquemonthname{##2}% + \DTMifbool{basque}{showdayofmonth} + {\DTMbasquemonthdaysep\DTMbasqueordinal{##3}}% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{basque}{showyear}% + {% + \number##1 % space intended + \DTMbasqueyearmonthsep + \DTMbasquemonthname{##2}% + }% + {% + \DTMbasqueMonthname{##2}% + }% + \DTMifbool{basque}{showdayofmonth} + {\DTMbasquemonthdaysep\DTMbasqueordinal{##3}}% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMbasquezonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{basque}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMbasquetimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMbasquedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMbasquetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMbasquedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMbasquetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {basque-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{basque}{showdayofmonth}% + {% + \number##3 % space intended + \DTMbasquedatesep + }% + {}% + \number##2 % space intended + \DTMifbool{basque}{showyear}% + {% + \DTMbasquedatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMbasquetimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMbasquetimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMbasquezonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{basque}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMbasquetimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMbasquedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMbasquetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMbasquezonemaps}{% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{basque}} +{\DTMsetstyle{basque-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datebasque + {% do nothing + }% + {% + \def\datebasque{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{basque}}% + {\DTMsetstyle{basque-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{basque}}% + {\DTMsetstyle{basque-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-basque.ldf'. -- cgit v1.2.3