summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty')
-rw-r--r--Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty341
1 files changed, 341 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty b/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty
new file mode 100644
index 00000000000..cfe1c66a8ab
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty
@@ -0,0 +1,341 @@
+%%
+%% This is file `datetime2-it-fulltext.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% datetime2-it-fulltext.dtx (with options: `datetime2-it-fulltext.sty,package')
+%%
+%% datetime2-it-fulltext.dtx
+%% Copyright 2015 Claudio Duchi
+%%
+%% 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 `maintained'.
+%%
+%% The Current Maintainer of this work is Claudio Duchi.
+%% claduc at libero dot it
+%%
+%%
+%% This work consists of the files datetime2-it-fulltext.dtx and
+%% datetime2-it-fulltext.ins and the derived files
+%% datetime2-it-fulltext.sty, datetime2-it-fulltext-ascii.ldf,
+%% datetime2-it-fulltext-utf8.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 \~}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{datetime2-it-fulltext}[2015/05/01 v1.0]
+\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{datetime2}}
+\ProcessOptions
+\RequirePackage{datetime2}
+\RequirePackage{itnumpar}
+\RequirePackage{ifxetex,ifluatex}
+\ifxetex
+\RequireDateTimeModule{it-fulltext-utf8}
+\else
+\ifluatex
+\RequireDateTimeModule{it-fulltext-utf8}
+\else
+\RequireDateTimeModule{it-fulltext-ascii}
+\fi
+\fi
+\def\CurrentTrackedDialect{italian}
+\RequireDateTimeModule{italian}
+\undef\CurrentTrackedDialect
+\newcommand*\DTMitfulltextmonthyearsep{,\space}
+\DTMnewdatestyle{it-fulltext}{%
+\renewcommand*\DTMdisplaydate[4]{%
+\ifDTMshowdow
+\ifnum##4>-1
+\DTMitalianweekdayname{##4}\space%
+\fi
+\fi
+\ifnum##3=1\DTMitthefirstoneofthemonth\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\space%
+\else\protect\printnumeroinparole{##3}\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi%
+}%
+}%
+\DTMsetdatestyle{it-fulltext}
+\DTMnewtimestyle{it-fulltext}{%
+\renewcommand\DTMdisplaytime[3]{%
+\ifboolexpr
+{test {\ifnumequal{##2}{0}} and
+(test {\ifnumequal{##1}{0}}
+or test {\ifnumequal{##1}{12}}
+or test {\ifnumequal{##1}{24}}
+)
+}%
+{%
+\ifnum##1=12\DTMitaliannoon\else\DTMitalianmidnight%
+\fi
+}%
+{%
+\ifnum##2=0\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
+{\DTMoneatnightstring\space\DTMitoclockstring}%
+{\ifnum##1>12\protect\printnumeroinparole{\numexpr##1-12}\space\DTMitoclockstring\else\protect\printnumeroinparole{##1}\space\DTMitoclockstring\fi}%
+\else
+\ifnum##2<31
+\ifnum##2=15
+\ifnum##1=1\DTMquarterpaststringTWO\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquarterpaststringONE\space}%
+{\ifnum##1=13\DTMquarterpaststringTWO\else\DTMquarterpaststringTHREE\space\fi}%
+\fi%
+\else%
+\ifnum##2=30
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
+{\DTMhalfpaststringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}} or test {\ifnumcomp{##1}{=}{12}}}
+{\DTMhalfpaststringONE\space}%
+{\DTMhalfpaststringTHREE\space}%
+}%
+\else%
+\ifnum##2=1\DTMoneminutestring\space\else\protect\printnumeroinparole{##2}\space%
+\fi
+\ifnum##2=1
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutepaststringONE\space}%one
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}} or test {\ifnumcomp{##1}{=}{1}}}
+{\DTMminutepaststringTWO}%two
+{\DTMminutepaststringTHREE\space}%three
+}%
+\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}} }
+{\DTMminutespaststringONE\space}%THREE
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}} or test {\ifnumcomp{##1}{=}{1}}}
+{\DTMminutespaststringTWO}%TWO
+{\DTMminutespaststringTHREE\space}%
+}%
+\fi
+\fi%
+\fi%
+\ifnum##1>12
+\ifnum##1=24
+\DTMitalianmidnight%
+\else
+\ifnum##1=13\DTMoneatnightstring\else\protect\printnumeroinparole{\numexpr##1-12}\fi%
+\fi%
+\else
+\ifnum##1=0
+\DTMitalianmidnight
+\else
+\ifnum##1=1\DTMoneatnightstring\else\ifnum##1=12\DTMitaliannoon\else\protect\printnumeroinparole{##1}\fi\fi%
+\fi
+\fi
+\else
+\ifnum##2=45
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquartertostringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMquartertostringONE\space}%
+{\DTMquartertostringTHREE\space}%
+}%
+\else
+\ifnum##2=59\DTMoneminutestring\space\else\protect\printnumeroinparole{\numexpr60-##2}\fi
+\ifnum##2=59
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{12}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutetostringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutetostringONE\space}%
+{\DTMminutetostringTHREE\space}%
+}%
+\else\space
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}or test {\ifnumcomp{##1}{=}{12}}}%
+{\DTMminutestostringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutestostringONE\space}%
+{\DTMminutestostringTHREE\space}%
+}%
+\fi
+\fi
+\ifnum##1>12
+\ifnum##1=24
+\DTMoneatnightstring%
+\else
+\ifnum##1=23\DTMitalianmidnight\else\protect\printnumeroinparole{\numexpr##1-11}%
+\fi
+\fi
+\else
+\ifnum##1=12\DTMoneatnightstring\space\DTMitafternoonstring%
+\else
+\ifnum##1=0\DTMoneatnightstring%
+\else%
+\ifnum##1=11\DTMitaliannoon\else\protect\printnumeroinparole{\numexpr##1+1}\fi
+\fi%
+\fi
+\fi
+\fi
+\fi
+\ifnum##1>11
+\ifnum##1=23
+\ifnum##2<31
+\space\DTMitafternoonstring%
+\fi
+\else
+\ifnum##1=24
+\ifnum##2>30
+\space\DTMitmorningstring%
+\fi
+\else
+\ifnum##1=12\space\else\space\DTMitafternoonstring\fi
+\fi
+\fi
+\else
+\ifnum##1>0
+\ifnum##1=11\else\space\DTMitmorningstring\fi
+\else
+\ifnum##2>30
+\space\DTMitmorningstring
+\fi
+\fi
+\fi
+}%
+}%
+}%
+\DTMnewdatestyle{it-fulltext-twenty-four}{%
+\renewcommand*\DTMdisplaydate[4]{%
+\ifDTMshowdow
+\ifnum##4>-1
+\DTMitalianweekdayname{##4}\space%
+\fi
+\fi
+\ifnum##3=1\DTMitthefirstoneofthemonth\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\space%
+\else\protect\printnumeroinparole{##3}\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi%
+}%
+}%
+\DTMsetdatestyle{it-fulltext-twenty-four}
+\DTMnewtimestyle{it-fulltext-twenty-four}{%
+\renewcommand\DTMdisplaytime[3]{%
+\ifboolexpr
+{test {\ifnumequal{##2}{0}} and (test {\ifnumequal{##1}{0}}
+or test {\ifnumequal{##1}{12}}
+or test {\ifnumequal{##1}{24}}
+)
+}%
+{%
+\ifnum##1=12\DTMitaliannoon\else\DTMitalianmidnight
+\fi
+}%
+{%
+\ifnum##2=0
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
+{\DTMoneatnightstring\DTMitoclockstring}%
+{\ifnum##1>12\protect\printnumeroinparole{\numexpr##1-12}\space\DTMitoclockstring\else
+\protect\printnumeroinparole{##1}\space\DTMitoclockstring\fi}
+\else
+\ifnum##2<31
+\ifnum##2=15
+\ifnum##1=1\DTMquarterpaststringTWO\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquarterpaststringONE\space}%
+{\DTMquarterpaststringTHREE\space}%
+\fi%
+\else
+\ifnum##2=30
+\ifnum##1=1\DTMhalfpaststringTWO%
+\else%
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}} or test {\ifnumcomp{##1}{=}{12}}}
+{\DTMhalfpaststringONE\space}%
+{\DTMhalfpaststringTHREE\space}%
+\fi
+\else
+\ifnum##2=1\DTMoneminutestring\space\else\protect\printnumeroinparole{##2}\space
+\fi
+\ifnum##2=1
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutepaststringONE\space}%one
+{\ifnum##1=1\DTMminutepaststringTWO\else\DTMminutepaststringTHREE\space\fi}%
+\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutespaststringONE\space}%THREE
+{\ifnum##1=1\DTMminutespaststringTWO\else\DTMminutespaststringTHREE\space\fi}%
+\fi%
+\fi%
+\fi%
+\ifnum##1>12
+\ifnum##1=24\DTMitalianmidnight\else\protect\printnumeroinparole{##1}%
+\fi%
+\else
+\ifnum##1=0
+\DTMitalianmidnight
+\else
+\ifnum##1=1\DTMoneatnightstring\else\ifnum##1=12\DTMitaliannoon\else\protect\printnumeroinparole{##1}\fi\fi%
+\fi
+\fi
+\else
+\ifnum##2=45%
+\ifboolexpr{test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquartertostringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMquartertostringONE\space}%
+{\DTMquartertostringTHREE\space}%
+}%
+\else
+\ifnum##2=59\DTMoneminutestring\space\else\protect\printnumeroinparole{\numexpr60-##2}\space\fi
+\ifnum##2=59
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutetostringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutetostringONE\space}%
+{\DTMminutetostringTHREE\space}%
+}%
+\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutestostringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutestostringONE\space}%
+{\DTMminutestostringTHREE\space}%
+}%
+\fi
+\fi
+\ifnum##1>12
+\ifnum##1=24
+\DTMoneatnightstring%
+\else
+\ifnum##1=23
+\DTMitalianmidnight
+\else
+\protect\printnumeroinparole{##1}%
+\fi
+\fi
+\else
+\ifnum##1=12\protect\printnumeroinparole{\numexpr##1+1}
+\else
+\ifnum##1=0\DTMoneatnightstring%
+\else
+\ifnum##1=11\DTMitaliannoon\else\protect\printnumeroinparole{\numexpr##1+1}\fi
+\fi%
+\fi
+\fi
+\fi
+\fi
+}%
+}%
+}%
+
+\endinput
+%%
+%% End of file `datetime2-it-fulltext.sty'.