From 251dd44b0f2fb70cb1d34b218364bd96b09ce751 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 28 Mar 2015 21:42:27 +0000 Subject: datetime2-italian (28mar15) git-svn-id: svn://tug.org/texlive/trunk@36660 c570f23f-e606-0410-a88d-b1316a301751 --- .../datetime2-italian/datetime2-italian-ascii.ldf | 138 +++++++++++++ .../datetime2-italian/datetime2-italian-utf8.ldf | 138 +++++++++++++ .../latex/datetime2-italian/datetime2-italian.ldf | 226 +++++++++++++++++++++ 3 files changed, 502 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf create mode 100644 Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf new file mode 100644 index 00000000000..23d182bde0a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-italian-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-italian.dtx (with options: `datetime2-italian-ascii.ldf,package') +%% +%% datetime2-italian.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-italian.dtx and +%% datetime2-italian.ins and the derived files +%% datetime2-italian-utf8.ldf, datetime2-italian-ascii.ldf and +%% datetime2-italian.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{italian-ascii}[2015/03/27 v1.0] +\newcommand*{\DTMitalianordinal}[1]{% + \number#1 +}% +\newcommand*{\DTMitalianmonthname}[1]{% + \ifcase#1 + \or + gennaio% + \or + febbraio% + \or + marzo% + \or + aprile% + \or + maggio% + \or + giugno% + \or + luglio% + \or + agosto% + \or + settembre% + \or + ottobre% + \or + novembre% + \or + dicembre% + \fi +} +\newcommand*{\DTMitalianMonthname}[1]{% + \ifcase#1 + \or + Gennaio% + \or + Febbraio% + \or + Marzo% + \or + Aprile% + \or + Maggio% + \or + Giugno% + \or + Luglio% + \or + Agosto% + \or + Settembre% + \or + Ottobre% + \or + Novembre% + \or + Dicembre% + \fi +} +\newcommand*{\DTMitalianweekdayname}[1]{% + \ifcase#1 + domenica% + \or + luned\protect\`i% + \or + marted\protect\`i% + \or + mercoled\protect\`i% + \or + gioved\protect\`i% + \or + venerd\protect\`i% + \or + sabato% + \fi +} +\newcommand*{\DTMitalianWeekdayname}[1]{% + \ifcase#1 + Domenica% + \or + Luned\protect\`i% + \or + Marted\protect\`i% + \or + Mercoled\protect\`i% + \or + Gioved\protect\`i% + \or + Venerd\protect\`i% + \or + Sabato% + \fi +} +\endinput +%% +%% End of file `datetime2-italian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf new file mode 100644 index 00000000000..bbfc31d6b70 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-italian-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-italian.dtx (with options: `datetime2-italian-utf8.ldf,package') +%% +%% datetime2-italian.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-italian.dtx and +%% datetime2-italian.ins and the derived files +%% datetime2-italian-utf8.ldf, datetime2-italian-ascii.ldf and +%% datetime2-italian.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{italian-utf8}[2015/03/27 v1.0] +\newcommand*{\DTMitalianordinal}[1]{% + \number#1 +}% +\newcommand*{\DTMitalianmonthname}[1]{% + \ifcase#1 + \or + gennaio% + \or + febbraio% + \or + marzo% + \or + aprile% + \or + maggio% + \or + giugno% + \or + luglio% + \or + agosto% + \or + settembre% + \or + ottobre% + \or + novembre% + \or + dicembre% + \fi +} +\newcommand*{\DTMitalianMonthname}[1]{% + \ifcase#1 + \or + Gennaio% + \or + Febbraio% + \or + Marzo% + \or + Aprile% + \or + Maggio% + \or + Giugno% + \or + Luglio% + \or + Agosto% + \or + Settembre% + \or + Ottobre% + \or + Novembre% + \or + Dicembre% + \fi +} +\newcommand*{\DTMitalianweekdayname}[1]{% + \ifcase#1 + domenica% + \or + lunedì% + \or + martedì% + \or + mercoledì% + \or + giovedì% + \or + venerdì% + \or + sabato% + \fi +} +\newcommand*{\DTMitalianWeekdayname}[1]{% + \ifcase#1 + Domenica% + \or + Lunedì% + \or + Martedì% + \or + Mercoledì% + \or + Giovedì% + \or + Venerdì% + \or + Sabato% + \fi +} +\endinput +%% +%% End of file `datetime2-italian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf new file mode 100644 index 00000000000..986108fb31a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf @@ -0,0 +1,226 @@ +%% +%% This is file `datetime2-italian.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-italian.dtx (with options: `datetime2-italian.ldf,package') +%% +%% datetime2-italian.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-italian.dtx and +%% datetime2-italian.ins and the derived files +%% datetime2-italian-utf8.ldf, datetime2-italian-ascii.ldf and +%% datetime2-italian.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{italian}[2015/03/27 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{italian-utf8} +\else + \ifluatex + \RequireDateTimeModule{italian-utf8} + \else + \RequireDateTimeModule{italian-ascii} + \fi +\fi +\newcommand*{\DTMitaliandaymonthsep}{\space} +\newcommand*{\DTMitalianmonthyearsep}{\space} +\newcommand*{\DTMitaliandatetimesep}{\space} +\newcommand*{\DTMitaliantimezonesep}{\space} +\newcommand*{\DTMitaliandatesep}{/} +\newcommand*{\DTMitaliantimesep}{:} +\DTMdefkey{italian}{daymonthsep}{\renewcommand*{\DTMitaliandaymonthsep}{#1}} +\DTMdefkey{italian}{monthyearsep}{\renewcommand*{\DTMitalianmonthyearsep}{#1}} +\DTMdefkey{italian}{datetimesep}{\renewcommand*{\DTMitaliandatetimesep}{#1}} +\DTMdefkey{italian}{timezonesep}{\renewcommand*{\DTMitaliantimezonesep}{#1}} +\DTMdefkey{italian}{datesep}{\renewcommand*{\DTMitaliandatesep}{#1}} +\DTMdefkey{italian}{timesep}{\renewcommand*{\DTMitaliantimesep}{#1}} +\DTMdefboolkey{italian}{mapzone}[true]{} +\DTMsetbool{italian}{mapzone}{true} +\DTMdefboolkey{italian}{showdayofmonth}[true]{} +\DTMsetbool{italian}{showdayofmonth}{true} +\DTMdefboolkey{italian}{showyear}[true]{} +\DTMsetbool{italian}{showyear}{true} +\DTMnewstyle + {italian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{italian}{showdayofmonth} + {\DTMitalianordinal{##3}\DTMitaliandaymonthsep}% + {}% + \DTMitalianmonthname{##2}% + \DTMifbool{italian}{showyear}% + {% + \DTMitalianmonthyearsep + \number##1 % space intended + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{italian}{showdayofmonth} + {% + \DTMitalianordinal{##3}\DTMitaliandaymonthsep + \DTMitalianmonthname{##2}% + }% + {\DTMitalianMonthname{##2}}% + \DTMifbool{italian}{showyear}% + {% + \DTMitalianmonthyearsep + \number##1 % space intended + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMitalianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{italian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMitaliantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMitaliandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMitaliantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMitaliandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMitaliantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {italian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{italian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMitaliandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{italian}{showyear}% + {% + \DTMitaliandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMitaliantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMitaliantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMitalianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{italian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMitaliantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMitaliandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMitaliantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMitalianzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{italian}} +{\DTMsetstyle{italian-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateitalian + {% do nothing + }% + {% + \def\dateitalian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{italian}}% + {\DTMsetstyle{italian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{italian}}% + {\DTMsetstyle{italian-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-italian.ldf'. -- cgit v1.2.3