summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/datetime2-german/datetime2-german-base.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-14 22:26:29 +0000
committerKarl Berry <karl@freefriends.org>2019-12-14 22:26:29 +0000
commit3d9c8e58c87e743f0f0b12dc32c8213bcdf4ed27 (patch)
tree9c9f127a6621c6f8cd1580e212b518109c95065c /Master/texmf-dist/source/latex/datetime2-german/datetime2-german-base.dtx
parent1513a1745bd5b12f3342b7c251e1b8fc4c7288d1 (diff)
datetime2-german (14dec19)
git-svn-id: svn://tug.org/texlive/trunk@53125 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/datetime2-german/datetime2-german-base.dtx')
-rw-r--r--Master/texmf-dist/source/latex/datetime2-german/datetime2-german-base.dtx124
1 files changed, 124 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/datetime2-german/datetime2-german-base.dtx b/Master/texmf-dist/source/latex/datetime2-german/datetime2-german-base.dtx
new file mode 100644
index 00000000000..7651fe0ada8
--- /dev/null
+++ b/Master/texmf-dist/source/latex/datetime2-german/datetime2-german-base.dtx
@@ -0,0 +1,124 @@
+%\iffalse
+%<*package>
+%% \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 \~}
+%</package>
+%
+% Doc-Source file to use with LaTeX2e
+% Copyright (C) 2015 Nicola Talbot, all rights reserved.
+% Copyright (C) 2017-19 Sebastian Friedl, all rights reserved.
+% \fi
+%
+%
+%
+% \subsection{Engine-independent code: \texttt{datetime2-german-base.ldf}}
+%
+% \changes{1.0}{2015-03-27}{Initial release}
+%
+% \medskip
+% Identify module
+% \begin{macrocode}
+\ProvidesDateTimeModule{german-base}[2019/12/13 v3.0]
+% \end{macrocode}
+%
+%\begin{macro}{\DTMgermanordinal}
+% Ordinals used for printing the day of month.
+% \begin{macrocode}
+\newcommand*{\DTMgermanordinal}[1]{%
+ \number#1
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMgermanweekdayname}
+% Weekday names.
+% \begin{macrocode}
+\newcommand*{\DTMgermanweekdayname}[1]{%
+ \ifcase#1
+ Montag%
+ \or
+ Dienstag%
+ \or
+ Mittwoch%
+ \or
+ Donnerstag%
+ \or
+ Freitag%
+ \or
+ Samstag%
+ \or
+ Sonntag%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMgermanshortweekdayname}
+% Abbreviated weekday names.
+%\changes{1.2}{2017-09-10}{Implemented short weekday names}
+%\changes{2.0}{2017-10-03}{Fixed short weekday names}
+% \begin{macrocode}
+\newcommand*{\DTMgermanshortweekdayname}[1]{%
+ \ifcase#1
+ Mo%
+ \or
+ Di%
+ \or
+ Mi%
+ \or
+ Do%
+ \or
+ Fr%
+ \or
+ Sa%
+ \or
+ So%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMgermanzonemaps}
+% The time zone mappings are set through this command, which can be
+% redefined if extra mappings are required or mappings need to be
+% removed.
+%\changes{1.2}{2017-09-10}{Use German time zone names (ME[S]Z)}
+% \begin{macrocode}
+\newcommand*{\DTMgermanzonemaps}{%
+ \DTMdefzonemap{01}{00}{MEZ}%
+ \DTMdefzonemap{02}{00}{MESZ}%
+}
+% \end{macrocode}
+%\end{macro}
+%
+% Load engine-dependent code. \\
+% \hologo{XeTeX} and \hologo{LuaTeX} natively support UTF-8, so the "german-base-utf8"
+% module is loaded if either of those engines are used. \\
+% Otherwise, the "german-base-ascii" module is loaded.
+% \begin{macrocode}
+\RequirePackage{ifxetex, ifluatex}
+\ifxetex
+ \RequireDateTimeModule{german-base-utf8}
+\else
+ \ifluatex
+ \RequireDateTimeModule{german-base-utf8}
+ \else
+ \RequireDateTimeModule{german-base-ascii}
+ \fi
+\fi
+% \end{macrocode}
+%
+\endinput