Debian Codegraph @

texmf-dist/source/latex/datetime2-croatian/datetime2-croatian.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 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 Croatian Module}]{hyperref}
37
38 \setmainfont{Liberation Serif}
39 \setmonofont{Liberation Mono}
40
41 \CheckSum{359}
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-croatian.dtx}
57 \end{document}
58 %</driver>
59 %\fi
60 %
61 %\MakeShortVerb{"}
62 %
63 %\title{Croatian Module for datetime2 Package}
64 %\author{Nicola L. C. Talbot (inactive)}
65 %\date{2015-03-30 (v1.0)}
66 %\maketitle
67 %
68 %This module is currently unmaintained and may be subject to change.
69 %If you want to volunteer to take over maintanance, contact me at
70 %\url{http://www.dickimaw-books.com/contact.html}
71 %
72 %\begin{abstract}
73 %This is the Croatian 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-croatian}'s \cs{today}.
86 %
87 %I don't know if these settings are correct as I can't speak Croatian.
88 %In particular, I don't know if the "croatian" 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-croatian.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-croatian-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-03-30}{Initial release}
121 % Identify module
122 % \begin{macrocode}
123 \ProvidesDateTimeModule{croatian-utf8}[2015/03/30 v1.0]
124 % \end{macrocode}
125 %\begin{macro}{\DTMcroatianordinal}
126 % \begin{macrocode}
127 \newcommand*{\DTMcroatianordinal}[1]{%
128 \number#1.%
129 }
130 % \end{macrocode}
131 %\end{macro}
132 %
133 %\begin{macro}{\DTMcroatianyear}
134 % \begin{macrocode}
135 \newcommand*{\DTMcroatianyear}[1]{%
136 \number#1.%
137 }
138 % \end{macrocode}
139 %\end{macro}
140 %
141 %
142 %\begin{macro}{\DTMcroatianmonthname}
143 % Croatian month names.
144 % \begin{macrocode}
145 \newcommand*{\DTMcroatianmonthname}[1]{%
146 \ifcase#1
147 \or
148 siječnja%
149 \or
150 veljače%
151 \or
152 ožujka%
153 \or
154 travnja%
155 \or
156 svibnja%
157 \or
158 lipnja%
159 \or
160 srpnja%
161 \or
162 kolovoza%
163 \or
164 rujna%
165 \or
166 listopada%
167 \or
168 studenoga%
169 \or
170 prosinca%
171 \fi
172 }
173 % \end{macrocode}
174 %\end{macro}
175 %
176 %\begin{macro}{\DTMcroatianMonthname}
177 % As above but capitalize.
178 % \begin{macrocode}
179 \newcommand*{\DTMcroatianMonthname}[1]{%
180 \ifcase#1
181 \or
182 Siječnja%
183 \or
184 Veljače%
185 \or
186 Ožujka%
187 \or
188 Travnja%
189 \or
190 Svibnja%
191 \or
192 Lipnja%
193 \or
194 Srpnja%
195 \or
196 Kolovoza%
197 \or
198 Rujna%
199 \or
200 Listopada%
201 \or
202 Studenoga%
203 \or
204 Prosinca%
205 \fi
206 }
207 % \end{macrocode}
208 %\end{macro}
209 %
210 %If abbreviated dates are supported, short month names should be
211 %likewise provided.
212 %
213 %\begin{macro}{\DTMcroatianweekdayname}
214 % Croatian day of week names.
215 % \begin{macrocode}
216 \newcommand*{\DTMcroatianweekdayname}[1]{%
217 \ifcase#1
218 nedjelja%
219 \or
220 ponedjeljak%
221 \or
222 utorak%
223 \or
224 srijeda%
225 \or
226 četvrtak%
227 \or
228 petak%
229 \or
230 subota%
231 \fi
232 }
233 % \end{macrocode}
234 %\end{macro}
235 %
236 %\begin{macro}{\DTMcroatianWeekdayname}
237 % As above but start with a capital.
238 % \begin{macrocode}
239 \newcommand*{\DTMcroatianWeekdayname}[1]{%
240 \ifcase#1
241 Nedjelja%
242 \or
243 Ponedjeljak%
244 \or
245 Utorak%
246 \or
247 Srijeda%
248 \or
249 Četvrtak%
250 \or
251 Petak%
252 \or
253 Subota%
254 \fi
255 }
256 % \end{macrocode}
257 %\end{macro}
258 %
259 %\begin{macro}{\DTMcroatianshortweekdayname}
260 %Abbreviated Croatian day of week names.
261 % \begin{macrocode}
262 \newcommand*{\DTMcroatianshortweekdayname}[1]{%
263 \ifcase#1
264 ned%
265 \or
266 pon%
267 \or
268 uto%
269 \or
270 sri%
271 \or
272 čet%
273 \or
274 pet%
275 \or
276 sub%
277 \fi
278 }
279 % \end{macrocode}
280 %\end{macro}
281 %
282 %\begin{macro}{\DTMcroatianshortWeekdayname}
283 %As above but start with a capital.
284 % \begin{macrocode}
285 \newcommand*{\DTMcroatianshortWeekdayname}[1]{%
286 \ifcase#1
287 Ned%
288 \or
289 Pon%
290 \or
291 Uto%
292 \or
293 Sri%
294 \or
295 Čet%
296 \or
297 Pet%
298 \or
299 Sub%
300 \fi
301 }
302 % \end{macrocode}
303 %\end{macro}
304 %
305 %
306 %\iffalse
307 % \begin{macrocode}
308 %</datetime2-croatian-utf8.ldf>
309 % \end{macrocode}
310 %\fi
311 %\iffalse
312 % \begin{macrocode}
313 %<*datetime2-croatian-ascii.ldf>
314 % \end{macrocode}
315 %\fi
316 %\subsection{ASCII}
317 %This file contains the settings that use \LaTeX\ commands for
318 %non-ASCII characters. This should be input if neither XeLaTeX nor
319 %LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with
320 %"utf8", this file should still be used not the
321 %\texttt{datetime2-croatian-utf8.ldf} file as the non-ASCII
322 %characters are made active in that situation and would need
323 %protecting against expansion.
324 %\changes{1.0}{2015-03-30}{Initial release}
325 % Identify module
326 % \begin{macrocode}
327 \ProvidesDateTimeModule{croatian-ascii}[2015/03/30 v1.0]
328 % \end{macrocode}
329 %
330 %If abbreviated dates are supported, short month names should be
331 %likewise provided.
332 %\begin{macro}{\DTMcroatianordinal}
333 % \begin{macrocode}
334 \newcommand*{\DTMcroatianordinal}[1]{%
335 \number#1.%
336 }
337 % \end{macrocode}
338 %\end{macro}
339 %
340 %\begin{macro}{\DTMcroatianyear}
341 % \begin{macrocode}
342 \newcommand*{\DTMcroatianyear}[1]{%
343 \number#1.%
344 }
345 % \end{macrocode}
346 %\end{macro}
347 %
348 %\begin{macro}{\DTMcroatianmonthname}
349 % Croatian month names.
350 % \begin{macrocode}
351 \newcommand*{\DTMcroatianmonthname}[1]{%
352 \ifcase#1
353 \or
354 sije\protect\v{c}nja%
355 \or
356 velja\protect\v{c}e%
357 \or
358 o\protect\v{z}ujka%
359 \or
360 travnja%
361 \or
362 svibnja%
363 \or
364 lipnja%
365 \or
366 srpnja%
367 \or
368 kolovoza%
369 \or
370 rujna%
371 \or
372 listopada%
373 \or
374 studenoga%
375 \or
376 prosinca%
377 \fi
378 }
379 % \end{macrocode}
380 %\end{macro}
381 %
382 %\begin{macro}{\DTMcroatianMonthname}
383 % As above but start with a capital.
384 % \begin{macrocode}
385 \newcommand*{\DTMcroatianMonthname}[1]{%
386 \ifcase#1
387 \or
388 Sije\protect\v{c}nja%
389 \or
390 Velja\protect\v{c}e%
391 \or
392 O\protect\v{z}ujka%
393 \or
394 Travnja%
395 \or
396 Svibnja%
397 \or
398 Lipnja%
399 \or
400 Srpnja%
401 \or
402 Kolovoza%
403 \or
404 Rujna%
405 \or
406 Listopada%
407 \or
408 Studenoga%
409 \or
410 Prosinca%
411 \fi
412 }
413 % \end{macrocode}
414 %\end{macro}
415 %
416 %\begin{macro}{\DTMcroatianweekdayname}
417 % Croatian day of week names.
418 % \begin{macrocode}
419 \newcommand*{\DTMcroatianweekdayname}[1]{%
420 \ifcase#1
421 nedjelja%
422 \or
423 ponedjeljak%
424 \or
425 utorak%
426 \or
427 srijeda%
428 \or
429 \protect\v{c}etvrtak%
430 \or
431 petak%
432 \or
433 subota%
434 \fi
435 }
436 % \end{macrocode}
437 %\end{macro}
438 %
439 %\begin{macro}{\DTMcroatianWeekdayname}
440 % As above but start with a capital.
441 % \begin{macrocode}
442 \newcommand*{\DTMcroatianWeekdayname}[1]{%
443 \ifcase#1
444 Nedjelja%
445 \or
446 Ponedjeljak%
447 \or
448 Utorak%
449 \or
450 Srijeda%
451 \or
452 \protect\v{C}etvrtak%
453 \or
454 Petak%
455 \or
456 Subota%
457 \fi
458 }
459 % \end{macrocode}
460 %\end{macro}
461 %
462 %\begin{macro}{\DTMcroatianshortweekdayname}
463 % Abbreviated Croatian day of week names.
464 % \begin{macrocode}
465 \newcommand*{\DTMcroatianshortweekdayname}[1]{%
466 \ifcase#1
467 ned%
468 \or
469 pon%
470 \or
471 uto%
472 \or
473 sri%
474 \or
475 \protect\v{c}et%
476 \or
477 pet%
478 \or
479 sub%
480 \fi
481 }
482 % \end{macrocode}
483 %\end{macro}
484 %
485 %\begin{macro}{\DTMcroatianshortWeekdayname}
486 % As above but start with a capital.
487 % \begin{macrocode}
488 \newcommand*{\DTMcroatianshortWeekdayname}[1]{%
489 \ifcase#1
490 Ned%
491 \or
492 Pon%
493 \or
494 Uto%
495 \or
496 Sri%
497 \or
498 \protect\v{C}et%
499 \or
500 Pet%
501 \or
502 Sub%
503 \fi
504 }
505 % \end{macrocode}
506 %\end{macro}
507 %
508 %\iffalse
509 % \begin{macrocode}
510 %</datetime2-croatian-ascii.ldf>
511 % \end{macrocode}
512 %\fi
513 %
514 %\subsection{Main Croatian Module (\texttt{datetime2-croatian.ldf})}
515 %\changes{1.0}{2015-03-30}{Initial release}
516 %
517 %\iffalse
518 % \begin{macrocode}
519 %<*datetime2-croatian.ldf>
520 % \end{macrocode}
521 %\fi
522 %
523 % Identify Module
524 % \begin{macrocode}
525 \ProvidesDateTimeModule{croatian}[2015/03/30 v1.0]
526 % \end{macrocode}
527 % Need to find out if XeTeX or LuaTeX are being used.
528 % \begin{macrocode}
529 \RequirePackage{ifxetex,ifluatex}
530 % \end{macrocode}
531 % XeTeX and LuaTeX natively support UTF-8, so load
532 % \texttt{croatian-utf8} if either of those engines are used
533 % otherwise load \texttt{croatian-ascii}.
534 % \begin{macrocode}
535 \ifxetex
536 \RequireDateTimeModule{croatian-utf8}
537 \else
538 \ifluatex
539 \RequireDateTimeModule{croatian-utf8}
540 \else
541 \RequireDateTimeModule{croatian-ascii}
542 \fi
543 \fi
544 % \end{macrocode}
545 %
546 % Define the \texttt{croatian} style.
547 % The time style is the same as the "default" style
548 % provided by \sty{datetime2}. This may need correcting. For
549 % example, if a 12 hour style similar to the "englishampm" (from the
550 % "english-base" module) is required.
551 %
552 % Allow the user a way of configuring the "croatian" and
553 % "croatian-numeric" styles. This doesn't use the package wide
554 % separators such as
555 % \cs{dtm@datetimesep} in case other date formats are also required.
556 %\begin{macro}{\DTMcroatiandaymonthsep}
557 % The separator between the day and month for the text format.
558 % \begin{macrocode}
559 \newcommand*{\DTMcroatiandaymonthsep}{\DTMtexorpdfstring{\protect~}{\space}}
560 % \end{macrocode}
561 %\end{macro}
562 %
563 %\begin{macro}{\DTMcroatianmonthyearsep}
564 % The separator between the month and year for the text format.
565 % \begin{macrocode}
566 \newcommand*{\DTMcroatianmonthyearsep}{\space}
567 % \end{macrocode}
568 %\end{macro}
569 %
570 %\begin{macro}{\DTMcroatiandatetimesep}
571 % The separator between the date and time blocks in the full format
572 % (either text or numeric).
573 % \begin{macrocode}
574 \newcommand*{\DTMcroatiandatetimesep}{\space}
575 % \end{macrocode}
576 %\end{macro}
577 %
578 %\begin{macro}{\DTMcroatiantimezonesep}
579 % The separator between the time and zone blocks in the full format
580 % (either text or numeric).
581 % \begin{macrocode}
582 \newcommand*{\DTMcroatiantimezonesep}{\space}
583 % \end{macrocode}
584 %\end{macro}
585 %
586 %\begin{macro}{\DTMcroatiandatesep}
587 % The separator for the numeric date format.
588 % \begin{macrocode}
589 \newcommand*{\DTMcroatiandatesep}{.}
590 % \end{macrocode}
591 %\end{macro}
592 %
593 %\begin{macro}{\DTMcroatiantimesep}
594 % The separator for the numeric time format.
595 % \begin{macrocode}
596 \newcommand*{\DTMcroatiantimesep}{:}
597 % \end{macrocode}
598 %\end{macro}
599 %
600 %Provide keys that can be used in \cs{DTMlangsetup} to set these
601 %separators.
602 % \begin{macrocode}
603 \DTMdefkey{croatian}{daymonthsep}{\renewcommand*{\DTMcroatiandaymonthsep}{#1}}
604 \DTMdefkey{croatian}{monthyearsep}{\renewcommand*{\DTMcroatianmonthyearsep}{#1}}
605 \DTMdefkey{croatian}{datetimesep}{\renewcommand*{\DTMcroatiandatetimesep}{#1}}
606 \DTMdefkey{croatian}{timezonesep}{\renewcommand*{\DTMcroatiantimezonesep}{#1}}
607 \DTMdefkey{croatian}{datesep}{\renewcommand*{\DTMcroatiandatesep}{#1}}
608 \DTMdefkey{croatian}{timesep}{\renewcommand*{\DTMcroatiantimesep}{#1}}
609 % \end{macrocode}
610 %
611 % TODO: provide a boolean key to switch between full and abbreviated
612 % formats if appropriate. (I don't know how the date should be
613 % abbreviated.)
614 %
615 % Define a boolean key that determines if the time zone mappings
616 % should be used.
617 % \begin{macrocode}
618 \DTMdefboolkey{croatian}{mapzone}[true]{}
619 % \end{macrocode}
620 % The default is to use mappings.
621 % \begin{macrocode}
622 \DTMsetbool{croatian}{mapzone}{true}
623 % \end{macrocode}
624 %
625 % Define a boolean key that determines if the day of month should be
626 % displayed.
627 % \begin{macrocode}
628 \DTMdefboolkey{croatian}{showdayofmonth}[true]{}
629 % \end{macrocode}
630 % The default is to show the day of month.
631 % \begin{macrocode}
632 \DTMsetbool{croatian}{showdayofmonth}{true}
633 % \end{macrocode}
634 %
635 % Define a boolean key that determines if the year should be
636 % displayed.
637 % \begin{macrocode}
638 \DTMdefboolkey{croatian}{showyear}[true]{}
639 % \end{macrocode}
640 % The default is to show the year.
641 % \begin{macrocode}
642 \DTMsetbool{croatian}{showyear}{true}
643 % \end{macrocode}
644 %
645 % Define the "croatian" style. (TODO: implement day of week?)
646 % \begin{macrocode}
647 \DTMnewstyle
648 {croatian}% label
649 {% date style
650 \renewcommand*\DTMdisplaydate[4]{%
651 \DTMifbool{croatian}{showdayofmonth}
652 {\DTMcroatianordinal{##3}\DTMcroatiandaymonthsep}%
653 {}%
654 \DTMcroatianmonthname{##2}%
655 \DTMifbool{croatian}{showyear}%
656 {%
657 \DTMcroatianmonthyearsep
658 \DTMcroatianyear{##1}%
659 }%
660 {}%
661 }%
662 \renewcommand*\DTMDisplaydate[4]{%
663 \DTMifbool{croatian}{showdayofmonth}
664 {%
665 \DTMcroatianordinal{##3}\DTMcroatiandaymonthsep
666 \DTMcroatianmonthname{##2}%
667 }%
668 {%
669 \DTMcroatianMonthname{##2}%
670 }%
671 \DTMifbool{croatian}{showyear}%
672 {%
673 \DTMcroatianmonthyearsep
674 \DTMcroatianyear{##1}%
675 }%
676 {}%
677 }%
678 }%
679 {% time style (use default)
680 \DTMsettimestyle{default}%
681 }%
682 {% zone style
683 \DTMresetzones
684 \DTMcroatianzonemaps
685 \renewcommand*{\DTMdisplayzone}[2]{%
686 \DTMifbool{croatian}{mapzone}%
687 {\DTMusezonemapordefault{##1}{##2}}%
688 {%
689 \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
690 \ifDTMshowzoneminutes\DTMcroatiantimesep\DTMtwodigits{##2}\fi
691 }%
692 }%
693 }%
694 {% full style
695 \renewcommand*{\DTMdisplay}[9]{%
696 \ifDTMshowdate
697 \DTMdisplaydate{##1}{##2}{##3}{##4}%
698 \DTMcroatiandatetimesep
699 \fi
700 \DTMdisplaytime{##5}{##6}{##7}%
701 \ifDTMshowzone
702 \DTMcroatiantimezonesep
703 \DTMdisplayzone{##8}{##9}%
704 \fi
705 }%
706 \renewcommand*{\DTMDisplay}[9]{%
707 \ifDTMshowdate
708 \DTMDisplaydate{##1}{##2}{##3}{##4}%
709 \DTMcroatiandatetimesep
710 \fi
711 \DTMdisplaytime{##5}{##6}{##7}%
712 \ifDTMshowzone
713 \DTMcroatiantimezonesep
714 \DTMdisplayzone{##8}{##9}%
715 \fi
716 }%
717 }%
718 % \end{macrocode}
719 %
720 % Define numeric style.
721 % \begin{macrocode}
722 \DTMnewstyle
723 {croatian-numeric}% label
724 {% date style
725 \renewcommand*\DTMdisplaydate[4]{%
726 \DTMifbool{croatian}{showdayofmonth}%
727 {%
728 \number##3 % space intended
729 \DTMcroatiandatesep
730 }%
731 {}%
732 \number##2 % space intended
733 \DTMifbool{croatian}{showyear}%
734 {%
735 \DTMcroatiandatesep
736 \number##1 % space intended
737 }%
738 {}%
739 }%
740 \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}%
741 }%
742 {% time style
743 \renewcommand*\DTMdisplaytime[3]{%
744 \number##1
745 \DTMcroatiantimesep\DTMtwodigits{##2}%
746 \ifDTMshowseconds\DTMcroatiantimesep\DTMtwodigits{##3}\fi
747 }%
748 }%
749 {% zone style
750 \DTMresetzones
751 \DTMcroatianzonemaps
752 \renewcommand*{\DTMdisplayzone}[2]{%
753 \DTMifbool{croatian}{mapzone}%
754 {\DTMusezonemapordefault{##1}{##2}}%
755 {%
756 \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
757 \ifDTMshowzoneminutes\DTMcroatiantimesep\DTMtwodigits{##2}\fi
758 }%
759 }%
760 }%
761 {% full style
762 \renewcommand*{\DTMdisplay}[9]{%
763 \ifDTMshowdate
764 \DTMdisplaydate{##1}{##2}{##3}{##4}%
765 \DTMcroatiandatetimesep
766 \fi
767 \DTMdisplaytime{##5}{##6}{##7}%
768 \ifDTMshowzone
769 \DTMcroatiantimezonesep
770 \DTMdisplayzone{##8}{##9}%
771 \fi
772 }%
773 \renewcommand*{\DTMDisplay}{\DTMdisplay}%
774 }
775 % \end{macrocode}
776 %
777 %\begin{macro}{\DTMcroatianzonemaps}
778 % The time zone mappings are set through this command, which can be
779 % redefined if extra mappings are required or mappings need to be
780 % removed.
781 % \begin{macrocode}
782 \newcommand*{\DTMcroatianzonemaps}{%
783 \DTMdefzonemap{01}{00}{CET}%
784 \DTMdefzonemap{02}{00}{CEST}%
785 }
786 % \end{macrocode}
787 %\end{macro}
788
789 % Switch style according to the \opt{useregional} setting.
790 % \begin{macrocode}
791 \DTMifcaseregional
792 {}% do nothing
793 {\DTMsetstyle{croatian}}
794 {\DTMsetstyle{croatian-numeric}}
795 % \end{macrocode}
796 %
797 % Redefine \cs{datecroatian} (or \cs{date}\meta{dialect}) to prevent
798 % \sty{babel} from resetting \cs{today}. (For this to work,
799 % \sty{babel} must already have been loaded if it's required.)
800 % \begin{macrocode}
801 \ifcsundef{date\CurrentTrackedDialect}
802 {%
803 \ifundef\datecroatian
804 {% do nothing
805 }%
806 {%
807 \def\datecroatian{%
808 \DTMifcaseregional
809 {}% do nothing
810 {\DTMsetstyle{croatian}}%
811 {\DTMsetstyle{croatian-numeric}}%
812 }%
813 }%
814 }%
815 {%
816 \csdef{date\CurrentTrackedDialect}{%
817 \DTMifcaseregional
818 {}% do nothing
819 {\DTMsetstyle{croatian}}%
820 {\DTMsetstyle{croatian-numeric}}
821 }%
822 }%
823 % \end{macrocode}
824 %\iffalse
825 % \begin{macrocode}
826 %</datetime2-croatian.ldf>
827 % \end{macrocode}
828 %\fi
829 %\Finale
830 \endinput