diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime2-english/datetime2-english-base.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/datetime2-english/datetime2-english-base.ldf | 256 |
1 files changed, 256 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime2-english/datetime2-english-base.ldf b/Master/texmf-dist/tex/latex/datetime2-english/datetime2-english-base.ldf new file mode 100644 index 00000000000..c77e5945425 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-english/datetime2-english-base.ldf @@ -0,0 +1,256 @@ +%% +%% This is file `datetime2-english-base.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-english.dtx (with options: `datetime2-english-base.ldf,package') +%% +%% datetime2-english.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 `maintained'. +%% +%% The Current Maintainer of this work is Nicola Talbot. +%% +%% This work consists of the files datetime2-english.dtx and +%% datetime2-english.ins and the derived files +%% datetime2-english-base.ldf, datetime2-english.ldf, +%% datetime2-en-GB.ldf, datetime2-en-US.ldf, datetime2-en-CA.ldf, +%% datetime2-en-AU.ldf, datetime2-en-NZ.ldf, datetime2-en-GG.ldf, +%% datetime2-en-JE.ldf, datetime2-en-IM.ldf, datetime2-en-MT.ldf, +%% datetime2-en-IE.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{english-base}[2015/03/24 v1.0 (NLCT)] +\newcommand*{\DTMenglishordinal}[1]{% + \number#1 % space intended + \DTMenglishfmtordsuffix{% + \ifcase#1 + \or \DTMenglishst + \or \DTMenglishnd + \or \DTMenglishrd + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishst + \or \DTMenglishnd + \or \DTMenglishrd + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishth + \or \DTMenglishst + \fi + }% +} +\newcommand*{\DTMenglishst}{st} +\newcommand*{\DTMenglishnd}{nd} +\newcommand*{\DTMenglishrd}{rd} +\newcommand*{\DTMenglishth}{th} +\newcommand*{\DTMenglishfmtordsuffix}[1]{} +\newcommand*{\DTMenglishmonthname}[1]{% + \ifcase#1 + \or + January% + \or + February% + \or + March% + \or + April% + \or + May% + \or + June% + \or + July% + \or + August% + \or + September% + \or + October% + \or + November% + \or + December% + \fi +} +\newcommand*{\DTMenglishshortmonthname}[1]{% + \ifcase#1 + \or + Jan% + \or + Feb% + \or + Mar% + \or + Apr% + \or + May% + \or + Jun% + \or + Jul% + \or + Aug% + \or + Sep% + \or + Oct% + \or + Nov% + \or + Dec% + \fi +} +\newcommand*{\DTMenglishweekdayname}[1]{% + \ifcase#1 + Monday% + \or + Tuesday% + \or + Wednesday% + \or + Thursday% + \or + Friday% + \or + Saturday% + \or + Sunday% + \fi +} +\newcommand*{\DTMenglishshortweekdayname}[1]{% + \ifcase#1 + Mon% + \or + Tue% + \or + Wed% + \or + Thu% + \or + Fri% + \or + Sat% + \or + Sun% + \fi +} +\newcommand*\DTMenglisham{am}% +\newcommand*\DTMenglishpm{pm}% +\newcommand*\DTMenglishmidnight{midnight}% +\newcommand*\DTMenglishnoon{noon}% +\newcommand*{\DTMenglishampmfmt}[1]{#1} +\newcommand*{\DTMenglishtimesep}{\DTMsep{hourmin}} +\DTMnewtimestyle + {englishampm}% label + {% + \renewcommand*\DTMdisplaytime[3]{% + \ifnum##2=0 + \ifnum##1=12 + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglishnoon}}% + {\DTMenglishnoon}% + \else + \ifnum##1=0 + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglishmidnight}}% + {\DTMenglishmidnight}% + \else + \ifnum##1=24 + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglishmidnight}}% + {\DTMenglishmidnight}% + \else + \ifnum##1<12 + \number##1 + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglisham}}% + {\DTMenglisham}% + \else + \number\numexpr##1-12\relax + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglishpm}}% + {\DTMenglishpm}% + \fi + \fi + \fi + \fi + \else + \ifnum##1<13 + \ifnum##1=0 + 12% + \else + \number##1 + \fi + \DTMenglishtimesep\DTMtwodigits{##2}% + \ifnum##1=12 + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglisham}}% + {\DTMenglishpm}% + \else + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglisham}}% + {\DTMenglisham}% + \fi + \else + \number\numexpr##1-12\relax + \DTMenglishtimesep\DTMtwodigits{##2}% + \ifnum##1=24 + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglishpm}}% + {\DTMenglisham}% + \else + \DTMtexorpdfstring + {\DTMenglishampmfmt{\DTMenglishpm}}% + {\DTMenglishpm}% + \fi + \fi + \fi + }% + }% +\endinput +%% +%% End of file `datetime2-english-base.ldf'. |