| 1 |
%\iffalse |
| 2 |
%<*package> |
| 3 |
%% \CharacterTable |
| 4 |
%% {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 |
| 5 |
%% 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 |
| 6 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 7 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 8 |
%% Dollar \$ Percent \% Ampersand \& |
| 9 |
%% Acute accent \' Left paren \( Right paren \) |
| 10 |
%% Asterisk \* Plus \+ Comma \, |
| 11 |
%% Minus \- Point \. Solidus \/ |
| 12 |
%% Colon \: Semicolon \; Less than \< |
| 13 |
%% Equals \= Greater than \> Question mark \? |
| 14 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 15 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 16 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 17 |
%% Right brace \} Tilde \~} |
| 18 |
%</package> |
| 19 |
% |
| 20 |
% Doc-Source file to use with LaTeX2e |
| 21 |
% Copyright (C) 2015 Nicola Talbot, all rights reserved. |
| 22 |
% Copyright (C) 2017-19 Sebastian Friedl, all rights reserved. |
| 23 |
% \fi |
| 24 |
% |
| 25 |
% |
| 26 |
% |
| 27 |
% \subsection{Engine-independent code: \texttt{datetime2-german-base.ldf}} |
| 28 |
% |
| 29 |
% \changes{1.0}{2015-03-27}{Initial release} |
| 30 |
% |
| 31 |
% \medskip |
| 32 |
% Identify module |
| 33 |
% \begin{macrocode} |
| 34 |
\ProvidesDateTimeModule{german-base}[2019/12/13 v3.0] |
| 35 |
% \end{macrocode} |
| 36 |
% |
| 37 |
%\begin{macro}{\DTMgermanordinal} |
| 38 |
% Ordinals used for printing the day of month. |
| 39 |
% \begin{macrocode} |
| 40 |
\newcommand*{\DTMgermanordinal}[1]{% |
| 41 |
\number#1 |
| 42 |
} |
| 43 |
% \end{macrocode} |
| 44 |
%\end{macro} |
| 45 |
% |
| 46 |
%\begin{macro}{\DTMgermanweekdayname} |
| 47 |
% Weekday names. |
| 48 |
% \begin{macrocode} |
| 49 |
\newcommand*{\DTMgermanweekdayname}[1]{% |
| 50 |
\ifcase#1 |
| 51 |
Montag% |
| 52 |
\or |
| 53 |
Dienstag% |
| 54 |
\or |
| 55 |
Mittwoch% |
| 56 |
\or |
| 57 |
Donnerstag% |
| 58 |
\or |
| 59 |
Freitag% |
| 60 |
\or |
| 61 |
Samstag% |
| 62 |
\or |
| 63 |
Sonntag% |
| 64 |
\fi |
| 65 |
} |
| 66 |
% \end{macrocode} |
| 67 |
%\end{macro} |
| 68 |
% |
| 69 |
%\begin{macro}{\DTMgermanshortweekdayname} |
| 70 |
% Abbreviated weekday names. |
| 71 |
%\changes{1.2}{2017-09-10}{Implemented short weekday names} |
| 72 |
%\changes{2.0}{2017-10-03}{Fixed short weekday names} |
| 73 |
% \begin{macrocode} |
| 74 |
\newcommand*{\DTMgermanshortweekdayname}[1]{% |
| 75 |
\ifcase#1 |
| 76 |
Mo% |
| 77 |
\or |
| 78 |
Di% |
| 79 |
\or |
| 80 |
Mi% |
| 81 |
\or |
| 82 |
Do% |
| 83 |
\or |
| 84 |
Fr% |
| 85 |
\or |
| 86 |
Sa% |
| 87 |
\or |
| 88 |
So% |
| 89 |
\fi |
| 90 |
} |
| 91 |
% \end{macrocode} |
| 92 |
%\end{macro} |
| 93 |
% |
| 94 |
%\begin{macro}{\DTMgermanzonemaps} |
| 95 |
% The time zone mappings are set through this command, which can be |
| 96 |
% redefined if extra mappings are required or mappings need to be |
| 97 |
% removed. |
| 98 |
%\changes{1.2}{2017-09-10}{Use German time zone names (ME[S]Z)} |
| 99 |
% \begin{macrocode} |
| 100 |
\newcommand*{\DTMgermanzonemaps}{% |
| 101 |
\DTMdefzonemap{01}{00}{MEZ}% |
| 102 |
\DTMdefzonemap{02}{00}{MESZ}% |
| 103 |
} |
| 104 |
% \end{macrocode} |
| 105 |
%\end{macro} |
| 106 |
% |
| 107 |
% Load engine-dependent code. \\ |
| 108 |
% \hologo{XeTeX} and \hologo{LuaTeX} natively support UTF-8, so the "german-base-utf8" |
| 109 |
% module is loaded if either of those engines are used. \\ |
| 110 |
% Otherwise, the "german-base-ascii" module is loaded. |
| 111 |
% \begin{macrocode} |
| 112 |
\RequirePackage{ifxetex, ifluatex} |
| 113 |
\ifxetex |
| 114 |
\RequireDateTimeModule{german-base-utf8} |
| 115 |
\else |
| 116 |
\ifluatex |
| 117 |
\RequireDateTimeModule{german-base-utf8} |
| 118 |
\else |
| 119 |
\RequireDateTimeModule{german-base-ascii} |
| 120 |
\fi |
| 121 |
\fi |
| 122 |
% \end{macrocode} |
| 123 |
% |
| 124 |
\endinput |