Debian Codegraph @

texmf-dist/source/latex/datetime2-usorbian/datetime2-usorbian.dtx

raw
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 %\fi
20 % \iffalse
21 % Doc-Source file to use with LaTeX2e
22 % Copyright (C) 2015-2019 Nicola Talbot, all rights reserved.
23 % (New maintainer add relevant lines here.)
24 % \fi
25 % \iffalse
26 %<*driver>
27 \documentclass{ltxdoc}
28
29 \usepackage{alltt}
30 \usepackage{graphicx}
31 \usepackage{fontspec}
32 \usepackage[colorlinks,
33 bookmarks,
34 hyperindex=false,
35 pdfauthor={Nicola L.C. Talbot},
36 pdftitle={datetime2.sty Upper Sorbian Module}]{hyperref}
37
38 \setmainfont{Liberation Serif}
39 \setmonofont{Liberation Mono}
40
41 \CheckSum{395}
42
43 \renewcommand*{\usage}[1]{\hyperpage{#1}}
44 \renewcommand*{\main}[1]{\hyperpage{#1}}
45 \IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}}
46 \setcounter{IndexColumns}{2}
47
48 \newcommand*{\sty}[1]{\textsf{#1}}
49 \newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}}
50
51 \RecordChanges
52 \PageIndex
53 \CodelineNumbered
54
55 \begin{document}
56 \DocInput{datetime2-usorbian.dtx}
57 \end{document}
58 %</driver>
59 %\fi
60 %
61 %\MakeShortVerb{"}
62 %
63 %\title{Upper Sorbian Module for datetime2 Package}
64 %\author{Nicola L. C. Talbot (inactive)}
65 %\date{2019-10-10 (v1.1)}
66 %\maketitle
67 %
68 %This module is currently unmaintained and may be subject to change.
69 %If you want to volunteer to take over maintenance, contact me at
70 %\url{https://www.dickimaw-books.com/contact.html}
71 %
72 %\begin{abstract}
73 %This is the Upper Sorbian language module for the \sty{datetime2}
74 %package. If you want to use the settings in this module you must
75 %install it in addition to installing \sty{datetime2}. If you use
76 %\sty{babel} or \sty{polyglossia}, you will need this module to
77 %prevent them from redefining \cs{today}. The \sty{datetime2}
78 % \opt{useregional} setting must be set to "text" or "numeric"
79 % for the language styles to be set.
80 % Alternatively, you can set the style in the document using
81 % \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language}
82 % depending on the value of the \opt{useregional} setting.
83 %\end{abstract}
84 %
85 %I've copied the date style from \texttt{babel-usorbian}'s \cs{today}.
86 %
87 %I don't know if these settings are correct as I can't speak Upper Sorbian.
88 %In particular, I don't know if the "usorbian" time style is
89 %correct. Currently this just uses the "default" time style. Please
90 %be aware that this may change. Whoever takes over maintanance
91 %of this module may can change it as appropriate.
92 %
93 %The new maintainer should add the line:
94 %\begin{verbatim}
95 % The Current Maintainer of this work is Name.
96 %\end{verbatim}
97 %to the preamble part in \texttt{datetime2-usorbian.ins} where Name
98 %is the name of the maintainer(s) and replace
99 %the `inactive' status to `maintained'.
100 %
101 %Currently there is only a regionless style.
102 %
103 %\StopEventually{%
104 %\clearpage
105 %\phantomsection
106 %\addcontentsline{toc}{section}{Change History}%
107 %\PrintChanges
108 %\addcontentsline{toc}{section}{\indexname}%
109 %\PrintIndex}
110 %\section{The Code}
111 %\iffalse
112 % \begin{macrocode}
113 %<*datetime2-usorbian-utf8.ldf>
114 % \end{macrocode}
115 %\fi
116 %\subsection{UTF-8}
117 %This file contains the settings that use UTF-8 characters. This
118 %file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure
119 %your text editor is set to UTF-8 if you want to view this code.
120 %\changes{1.0}{2015-04-01}{Initial release}
121 % Identify module
122 % \begin{macrocode}
123 \ProvidesDateTimeModule{usorbian-utf8}[2019/10/10 v1.1]
124 % \end{macrocode}
125 %\begin{macro}{\DTMusorbianordinal}
126 % \begin{macrocode}
127 \newcommand*{\DTMusorbianordinal}[1]{%
128 \number#1.%
129 }
130 % \end{macrocode}
131 %\end{macro}
132 %
133 %
134 %\begin{macro}{\DTMusorbiannewmonthname}
135 % Upper Sorbian month names.
136 % \begin{macrocode}
137 \newcommand*{\DTMusorbiannewmonthname}[1]{%
138 \ifcase#1
139 \or
140 januara%
141 \or
142 februara%
143 \or
144 měrca%
145 \or
146 apryla%
147 \or
148 meje%
149 \or
150 junija%
151 \or
152 julija%
153 \or
154 awgusta%
155 \or
156 septembra%
157 \or
158 oktobra%
159 \or
160 nowembra%
161 \or
162 decembra%
163 \fi
164 }
165 % \end{macrocode}
166 %\end{macro}
167 %
168 %\begin{macro}{\DTMusorbiannewMonthname}
169 % As above but capitalize.
170 % \begin{macrocode}
171 \newcommand*{\DTMusorbiannewMonthname}[1]{%
172 \ifcase#1
173 \or
174 Januara%
175 \or
176 Februara%
177 \or
178 Měrca%
179 \or
180 Apryla%
181 \or
182 Meje%
183 \or
184 Junija%
185 \or
186 Julija%
187 \or
188 Awgusta%
189 \or
190 Septembra%
191 \or
192 Oktobra%
193 \or
194 Nowembra%
195 \or
196 Decembra%
197 \fi
198 }
199 % \end{macrocode}
200 %\end{macro}
201 %
202 %\begin{macro}{\DTMusorbianoldmonthname}
203 % Upper Sorbian (old) month names.
204 % \begin{macrocode}
205 \newcommand*{\DTMusorbianoldmonthname}[1]{%
206 \ifcase#1
207 \or
208 wulkeho róžka%
209 \or
210 małeho róžka%
211 \or
212 nalětnika%
213 \or
214 jutrownika%
215 \or
216 róžownika%
217 \or
218 smažnika%
219 \or
220 pražnika%
221 \or
222 žnjenca%
223 \or
224 požnjenca%
225 \or
226 winowca%
227 \or
228 nazymnika%
229 \or
230 hodownika%
231 \fi
232 }
233 % \end{macrocode}
234 %\end{macro}
235 %
236 %\begin{macro}{\DTMusorbianoldMonthname}
237 % As above but capitalize.
238 % \begin{macrocode}
239 \newcommand*{\DTMusorbianoldMonthname}[1]{%
240 \ifcase#1
241 \or
242 Wulkeho róžka%
243 \or
244 Małeho róžka%
245 \or
246 Nalětnika%
247 \or
248 Jutrownika%
249 \or
250 Róžownika%
251 \or
252 Smažnika%
253 \or
254 Pražnika%
255 \or
256 Žnjenca%
257 \or
258 Požnjenca%
259 \or
260 Winowca%
261 \or
262 Nazymnika%
263 \or
264 Hodownika%
265 \fi
266 }
267 % \end{macrocode}
268 %\end{macro}
269 %
270 %If abbreviated dates are supported, short month names should be
271 %likewise provided.
272 %
273 %\iffalse
274 % \begin{macrocode}
275 %</datetime2-usorbian-utf8.ldf>
276 % \end{macrocode}
277 %\fi
278 %\iffalse
279 % \begin{macrocode}
280 %<*datetime2-usorbian-ascii.ldf>
281 % \end{macrocode}
282 %\fi
283 %\subsection{ASCII}
284 %This file contains the settings that use \LaTeX\ commands for
285 %non-ASCII characters. This should be input if neither XeLaTeX nor
286 %LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with
287 %"utf8", this file should still be used not the
288 %\texttt{datetime2-usorbian-utf8.ldf} file as the non-ASCII
289 %characters are made active in that situation and would need
290 %protecting against expansion.
291 %\changes{1.0}{2015-04-01}{Initial release}
292 % Identify module
293 % \begin{macrocode}
294 \ProvidesDateTimeModule{usorbian-ascii}[2019/10/10 v1.1]
295 % \end{macrocode}
296 %
297 %If abbreviated dates are supported, short month names should be
298 %likewise provided.
299 %\begin{macro}{\DTMusorbianordinal}
300 % \begin{macrocode}
301 \newcommand*{\DTMusorbianordinal}[1]{%
302 \number#1.%
303 }
304 % \end{macrocode}
305 %\end{macro}
306 %
307 %\begin{macro}{\DTMusorbiannewmonthname}
308 % Upper Sorbian month names.
309 % \begin{macrocode}
310 \newcommand*{\DTMusorbiannewmonthname}[1]{%
311 \ifcase#1
312 \or
313 januara%
314 \or
315 februara%
316 \or
317 m\protect\v erca%
318 \or
319 apryla%
320 \or
321 meje%
322 \or
323 junija%
324 \or
325 julija%
326 \or
327 awgusta%
328 \or
329 septembra%
330 \or
331 oktobra%
332 \or
333 nowembra%
334 \or
335 decembra%
336 \fi
337 }
338 % \end{macrocode}
339 %\end{macro}
340 %
341 %\begin{macro}{\DTMusorbiannewMonthname}
342 % As above but capitalize.
343 % \begin{macrocode}
344 \newcommand*{\DTMusorbiannewMonthname}[1]{%
345 \ifcase#1
346 \or
347 Januara%
348 \or
349 Februara%
350 \or
351 M\protect\v erca%
352 \or
353 Apryla%
354 \or
355 Meje%
356 \or
357 Junija%
358 \or
359 Julija%
360 \or
361 Awgusta%
362 \or
363 Septembra%
364 \or
365 Oktobra%
366 \or
367 Nowembra%
368 \or
369 Decembra%
370 \fi
371 }
372 % \end{macrocode}
373 %\end{macro}
374 %
375 %\begin{macro}{\DTMusorbianoldmonthname}
376 % Upper Sorbian (old) month names.
377 % \begin{macrocode}
378 \newcommand*{\DTMusorbianoldmonthname}[1]{%
379 \ifcase#1
380 \or
381 wulkeho r\protect\'o\protect\v zka%
382 \or
383 ma\protect\l eho r\protect\'o\protect\v zka%
384 \or
385 nal\protect\v etnika%
386 \or
387 jutrownika%
388 \or
389 r\protect\'o\protect\v zownika%
390 \or
391 sma\protect\v znika%
392 \or
393 pra\protect\v znika%
394 \or
395 \protect\v znjenca%
396 \or
397 po\protect\v znjenca%
398 \or
399 winowca%
400 \or
401 nazymnika%
402 \or
403 hodownika%
404 \fi
405 }
406 % \end{macrocode}
407 %\end{macro}
408 %
409 %\begin{macro}{\DTMusorbianoldMonthname}
410 % As above but capitalize.
411 % \begin{macrocode}
412 \newcommand*{\DTMusorbianoldMonthname}[1]{%
413 \ifcase#1
414 \or
415 Wulkeho r\protect\'o\protect\v zka%
416 \or
417 Ma\protect\l eho r\protect\'o\protect\v zka%
418 \or
419 Nal\protect\v etnika%
420 \or
421 Jutrownika%
422 \or
423 R\protect\'o\protect\v zownika%
424 \or
425 Sma\protect\v znika%
426 \or
427 Pra\protect\v znika%
428 \or
429 \protect\v Znjenca%
430 \or
431 Po\protect\v znjenca%
432 \or
433 Winowca%
434 \or
435 Nazymnika%
436 \or
437 Hodownika%
438 \fi
439 }
440 % \end{macrocode}
441 %\end{macro}
442 %
443 %\iffalse
444 % \begin{macrocode}
445 %</datetime2-usorbian-ascii.ldf>
446 % \end{macrocode}
447 %\fi
448 %
449 %\subsection{Main Upper Sorbian Module (\texttt{datetime2-usorbian.ldf})}
450 %\changes{1.0}{2015-04-01}{Initial release}
451 %
452 %\iffalse
453 % \begin{macrocode}
454 %<*datetime2-usorbian.ldf>
455 % \end{macrocode}
456 %\fi
457 %
458 % Identify Module
459 % \begin{macrocode}
460 \ProvidesDateTimeModule{usorbian}[2019/10/10 v1.1]
461 % \end{macrocode}
462 % Need to find out if XeTeX or LuaTeX are being used.
463 % \begin{macrocode}
464 \RequirePackage{ifxetex,ifluatex}
465 % \end{macrocode}
466 % XeTeX and LuaTeX natively support UTF-8, so load
467 % \texttt{usorbian-utf8} if either of those engines are used
468 % otherwise load \texttt{usorbian-ascii}.
469 % \begin{macrocode}
470 \ifxetex
471 \RequireDateTimeModule{usorbian-utf8}
472 \else
473 \ifluatex
474 \RequireDateTimeModule{usorbian-utf8}
475 \else
476 \RequireDateTimeModule{usorbian-ascii}
477 \fi
478 \fi
479 % \end{macrocode}
480 %
481 % Define the \texttt{usorbian} style.
482 % The time style is the same as the "default" style
483 % provided by \sty{datetime2}. This may need correcting. For
484 % example, if a 12 hour style similar to the "englishampm" (from the
485 % "english-base" module) is required.
486 %
487 % Allow the user a way of configuring the "usorbian" and
488 % "usorbian-numeric" styles. This doesn't use the package wide
489 % separators such as
490 % \cs{dtm@datetimesep} in case other date formats are also required.
491 %\begin{macro}{\DTMusorbiandaymonthsep}
492 % The separator between the day and month for the text format.
493 % \begin{macrocode}
494 \newcommand*{\DTMusorbiandaymonthsep}{%
495 \DTMtexorpdfstring{\protect~}{\space}%
496 }
497 % \end{macrocode}
498 %\end{macro}
499 %
500 %\begin{macro}{\DTMusorbianmonthyearsep}
501 % The separator between the month and year for the text format.
502 % \begin{macrocode}
503 \newcommand*{\DTMusorbianmonthyearsep}{\space}
504 % \end{macrocode}
505 %\end{macro}
506 %
507 %\begin{macro}{\DTMusorbiandatetimesep}
508 % The separator between the date and time blocks in the full format
509 % (either text or numeric).
510 % \begin{macrocode}
511 \newcommand*{\DTMusorbiandatetimesep}{\space}
512 % \end{macrocode}
513 %\end{macro}
514 %
515 %\begin{macro}{\DTMusorbiantimezonesep}
516 % The separator between the time and zone blocks in the full format
517 % (either text or numeric).
518 % \begin{macrocode}
519 \newcommand*{\DTMusorbiantimezonesep}{\space}
520 % \end{macrocode}
521 %\end{macro}
522 %
523 %\begin{macro}{\DTMusorbiandatesep}
524 % The separator for the numeric date format.
525 % \begin{macrocode}
526 \newcommand*{\DTMusorbiandatesep}{/}
527 % \end{macrocode}
528 %\end{macro}
529 %
530 %\begin{macro}{\DTMusorbiantimesep}
531 % The separator for the numeric time format.
532 % \begin{macrocode}
533 \newcommand*{\DTMusorbiantimesep}{:}
534 % \end{macrocode}
535 %\end{macro}
536 %
537 %Provide keys that can be used in \cs{DTMlangsetup} to set these
538 %separators.
539 % \begin{macrocode}
540 \DTMdefkey{usorbian}{daymonthsep}{\renewcommand*{\DTMusorbiandaymonthsep}{#1}}
541 \DTMdefkey{usorbian}{monthyearsep}{\renewcommand*{\DTMusorbianmonthyearsep}{#1}}
542 \DTMdefkey{usorbian}{datetimesep}{\renewcommand*{\DTMusorbiandatetimesep}{#1}}
543 \DTMdefkey{usorbian}{timezonesep}{\renewcommand*{\DTMusorbiantimezonesep}{#1}}
544 \DTMdefkey{usorbian}{datesep}{\renewcommand*{\DTMusorbiandatesep}{#1}}
545 \DTMdefkey{usorbian}{timesep}{\renewcommand*{\DTMusorbiantimesep}{#1}}
546 % \end{macrocode}
547 %
548 %\begin{macro}{\DTMusorbianmonthname}
549 % Provide a way to switch between old and new month names
550 % \begin{macrocode}
551 \newcommand*\DTMusorbianmonthname{\DTMusorbiannewmonthname}
552 % \end{macrocode}
553 %\end{macro}
554 %\begin{macro}{\DTMusorbianMonthname}
555 % Provide a way to switch between old and new month names
556 % \begin{macrocode}
557 \newcommand*\DTMusorbianMonthname{\DTMusorbiannewMonthname}
558 % \end{macrocode}
559 %\end{macro}
560 % Define a key to easily switch:
561 % \begin{macrocode}
562 \DTMdefchoicekey{usorbian}{style}[\val\nr]{old,new}{%
563 \ifcase\nr\relax
564 \renewcommand*\DTMusorbianmonthname{\DTMusorbianoldmonthname}%
565 \renewcommand*\DTMusorbianMonthname{\DTMusorbianoldMonthname}%
566 \or
567 \renewcommand*\DTMusorbianmonthname{\DTMusorbiannewmonthname}%
568 \renewcommand*\DTMusorbianMonthname{\DTMusorbiannewMonthname}%
569 \fi
570 }
571 % \end{macrocode}
572 %
573 % TODO: provide a boolean key to switch between full and abbreviated
574 % formats if appropriate. (I don't know how the date should be
575 % abbreviated.)
576 %
577 % Define a boolean key that determines if the time zone mappings
578 % should be used.
579 % \begin{macrocode}
580 \DTMdefboolkey{usorbian}{mapzone}[true]{}
581 % \end{macrocode}
582 % The default is to use mappings.
583 % \begin{macrocode}
584 \DTMsetbool{usorbian}{mapzone}{true}
585 % \end{macrocode}
586 %
587 % Define a boolean key that determines if the day of month should be
588 % displayed.
589 % \begin{macrocode}
590 \DTMdefboolkey{usorbian}{showdayofmonth}[true]{}
591 % \end{macrocode}
592 % The default is to show the day of month.
593 % \begin{macrocode}
594 \DTMsetbool{usorbian}{showdayofmonth}{true}
595 % \end{macrocode}
596 %
597 % Define a boolean key that determines if the year should be
598 % displayed.
599 % \begin{macrocode}
600 \DTMdefboolkey{usorbian}{showyear}[true]{}
601 % \end{macrocode}
602 % The default is to show the year.
603 % \begin{macrocode}
604 \DTMsetbool{usorbian}{showyear}{true}
605 % \end{macrocode}
606 %
607 % Define the "usorbian" style. (TODO: implement day of week?)
608 % \begin{macrocode}
609 \DTMnewstyle
610 {usorbian}% label
611 {% date style
612 \renewcommand*\DTMdisplaydate[4]{%
613 \DTMifbool{usorbian}{showdayofmonth}
614 {\DTMusorbianordinal{##3}\DTMusorbiandaymonthsep}%
615 {}%
616 \DTMusorbianmonthname{##2}%
617 \DTMifbool{usorbian}{showyear}%
618 {%
619 \DTMusorbianmonthyearsep
620 \number##1 % space intended
621 }%
622 {}%
623 }%
624 \renewcommand*\DTMDisplaydate[4]{%
625 \DTMifbool{usorbian}{showdayofmonth}
626 {%
627 \DTMusorbianordinal{##3}\DTMusorbiandaymonthsep
628 \DTMusorbianmonthname{##2}%
629 }%
630 {%
631 \DTMusorbianMonthname{##2}%
632 }%
633 \DTMifbool{usorbian}{showyear}%
634 {%
635 \DTMusorbianmonthyearsep
636 \number##1 % space intended
637 }%
638 {}%
639 }%
640 }%
641 {% time style (use default)
642 \DTMsettimestyle{default}%
643 }%
644 {% zone style
645 \DTMresetzones
646 \DTMusorbianzonemaps
647 \renewcommand*{\DTMdisplayzone}[2]{%
648 \DTMifbool{usorbian}{mapzone}%
649 {\DTMusezonemapordefault{##1}{##2}}%
650 {%
651 \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
652 \ifDTMshowzoneminutes\DTMusorbiantimesep\DTMtwodigits{##2}\fi
653 }%
654 }%
655 }%
656 {% full style
657 \renewcommand*{\DTMdisplay}[9]{%
658 \ifDTMshowdate
659 \DTMdisplaydate{##1}{##2}{##3}{##4}%
660 \DTMusorbiandatetimesep
661 \fi
662 \DTMdisplaytime{##5}{##6}{##7}%
663 \ifDTMshowzone
664 \DTMusorbiantimezonesep
665 \DTMdisplayzone{##8}{##9}%
666 \fi
667 }%
668 \renewcommand*{\DTMDisplay}[9]{%
669 \ifDTMshowdate
670 \DTMDisplaydate{##1}{##2}{##3}{##4}%
671 \DTMusorbiandatetimesep
672 \fi
673 \DTMdisplaytime{##5}{##6}{##7}%
674 \ifDTMshowzone
675 \DTMusorbiantimezonesep
676 \DTMdisplayzone{##8}{##9}%
677 \fi
678 }%
679 }%
680 % \end{macrocode}
681 %
682 % Define numeric style.
683 % \begin{macrocode}
684 \DTMnewstyle
685 {usorbian-numeric}% label
686 {% date style
687 \renewcommand*\DTMdisplaydate[4]{%
688 \DTMifbool{usorbian}{showdayofmonth}%
689 {%
690 \number##3 % space intended
691 \DTMusorbiandatesep
692 }%
693 {}%
694 \number##2 % space intended
695 \DTMifbool{usorbian}{showyear}%
696 {%
697 \DTMusorbiandatesep
698 \number##1 % space intended
699 }%
700 {}%
701 }%
702 \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}%
703 }%
704 {% time style
705 \renewcommand*\DTMdisplaytime[3]{%
706 \number##1 % space intended
707 \DTMusorbiantimesep\DTMtwodigits{##2}%
708 \ifDTMshowseconds\DTMusorbiantimesep\DTMtwodigits{##3}\fi
709 }%
710 }%
711 {% zone style
712 \DTMresetzones
713 \DTMusorbianzonemaps
714 \renewcommand*{\DTMdisplayzone}[2]{%
715 \DTMifbool{usorbian}{mapzone}%
716 {\DTMusezonemapordefault{##1}{##2}}%
717 {%
718 \ifnum##1<0 \else+\fi\DTMtwodigits{##1}%
719 \ifDTMshowzoneminutes\DTMusorbiantimesep\DTMtwodigits{##2}\fi
720 }%
721 }%
722 }%
723 {% full style
724 \renewcommand*{\DTMdisplay}[9]{%
725 \ifDTMshowdate
726 \DTMdisplaydate{##1}{##2}{##3}{##4}%
727 \DTMusorbiandatetimesep
728 \fi
729 \DTMdisplaytime{##5}{##6}{##7}%
730 \ifDTMshowzone
731 \DTMusorbiantimezonesep
732 \DTMdisplayzone{##8}{##9}%
733 \fi
734 }%
735 \renewcommand*{\DTMDisplay}{\DTMdisplay}%
736 }
737 % \end{macrocode}
738 %
739 %\begin{macro}{\DTMusorbianzonemaps}
740 % The time zone mappings are set through this command, which can be
741 % redefined if extra mappings are required or mappings need to be
742 % removed.
743 % \begin{macrocode}
744 \newcommand*{\DTMusorbianzonemaps}{%
745 \DTMdefzonemap{01}{00}{CET}%
746 \DTMdefzonemap{02}{00}{CEST}%
747 }
748 % \end{macrocode}
749 %\end{macro}
750
751 % Switch style according to the \opt{useregional} setting.
752 % \begin{macrocode}
753 \DTMifcaseregional
754 {}% do nothing
755 {\DTMsetstyle{usorbian}}
756 {\DTMsetstyle{usorbian-numeric}}
757 % \end{macrocode}
758 %
759 % Redefine \cs{dateusorbian} (or \cs{date}\meta{dialect}) to prevent
760 % \sty{babel} from resetting \cs{today}. (For this to work,
761 % \sty{babel} must already have been loaded if it's required.)
762 %\changes{1.1}{2019-10-10}{removed spurious space}
763 % \begin{macrocode}
764 \ifcsundef{date\CurrentTrackedDialect}
765 {%
766 \ifundef\dateusorbian
767 {% do nothing
768 }%
769 {%
770 \def\dateusorbian{%
771 \DTMifcaseregional
772 {}% do nothing
773 {\DTMsetstyle{usorbian}}%
774 {\DTMsetstyle{usorbian-numeric}}%
775 }%
776 }%
777 }%
778 {%
779 \csdef{date\CurrentTrackedDialect}{%
780 \DTMifcaseregional
781 {}% do nothing
782 {\DTMsetstyle{usorbian}}%
783 {\DTMsetstyle{usorbian-numeric}}%
784 }%
785 }%
786 % \end{macrocode}
787 %\iffalse
788 % \begin{macrocode}
789 %</datetime2-usorbian.ldf>
790 % \end{macrocode}
791 %\fi
792 %\Finale
793 \endinput