Debian Codegraph @

texmf-dist/source/latex/datetime2-bulgarian/datetime2-bulgarian.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) 2018 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 Bulgarian Module}]{hyperref}
37
38 \newfontfamily\cyrillicfont{Liberation Serif}
39 \setmonofont{Liberation Mono}
40
41 \CheckSum{545}
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-bulgarian.dtx}
57 \end{document}
58 %</driver>
59 %\fi
60 %
61 %\MakeShortVerb{"}
62 %
63 %\title{Bulgarian Module for datetime2 Package}
64 %\author{Nicola L. C. Talbot (inactive)}
65 %\date{2018-03-19 (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 maintanance, contact me at
70 %\url{http://www.dickimaw-books.com/contact.html}
71 %
72 %\begin{abstract}
73 %This is the Bulgarian 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-bulgarian}'s \cs{today}.
86 %
87 %I don't know if these settings are correct as I can't speak Bulgarian.
88 %In particular, I don't know if the "bulgarian" 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-bulgarian.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-bulgarian-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-29}{Initial release}
121 % Identify module
122 % \begin{macrocode}
123 \ProvidesDateTimeModule{bulgarian-utf8}[2018/03/19 v1.1]
124 % \end{macrocode}
125 %\begin{macro}{\DTMbulgarianordinal}
126 % \begin{macrocode}
127 \newcommand*{\DTMbulgarianordinal}[1]{%
128 \number#1
129 }
130 % \end{macrocode}
131 %\end{macro}
132 %
133 %\begin{macro}{\DTMbulgarianyear}
134 % \begin{macrocode}
135 \newcommand*{\DTMbulgarianyear}[1]{%
136 \number#1
137 \DTMtexorpdfstring{\protect~}{\space}г.%
138 }
139 % \end{macrocode}
140 %\end{macro}
141 %
142 %
143 %\begin{macro}{\DTMbulgarianmonthname}
144 % Bulgarian month names.
145 % \begin{macrocode}
146 \newcommand*{\DTMbulgarianmonthname}[1]{%
147 \ifcase#1
148 \or
149 януари%
150 \or
151 февруари%
152 \or
153 март%
154 \or
155 април%
156 \or
157 май%
158 \or
159 юни%
160 \or
161 юли%
162 \or
163 август%
164 \or
165 септември%
166 \or
167 октомври%
168 \or
169 ноември%
170 \or
171 декември%
172 \fi
173 }
174 % \end{macrocode}
175 %\end{macro}
176 %
177 %\begin{macro}{\DTMbulgarianMonthname}
178 % As above but capitalize.
179 % \begin{macrocode}
180 \newcommand*{\DTMbulgarianMonthname}[1]{%
181 \ifcase#1
182 \or
183 Януари%
184 \or
185 Февруари%
186 \or
187 Март%
188 \or
189 Април%
190 \or
191 Май%
192 \or
193 Юни%
194 \or
195 Юли%
196 \or
197 Август%
198 \or
199 Септември%
200 \or
201 Октомври%
202 \or
203 Ноември%
204 \or
205 Декември%
206 \fi
207 }
208 % \end{macrocode}
209 %\end{macro}
210 %
211 %If abbreviated dates are supported, short month names should be
212 %likewise provided.
213 %
214 %\iffalse
215 % \begin{macrocode}
216 %</datetime2-bulgarian-utf8.ldf>
217 % \end{macrocode}
218 %\fi
219 %\iffalse
220 % \begin{macrocode}
221 %<*datetime2-bulgarian-ascii.ldf>
222 % \end{macrocode}
223 %\fi
224 %\subsection{ASCII}
225 %This file contains the settings that use \LaTeX\ commands for
226 %non-ASCII characters. This should be input if neither XeLaTeX nor
227 %LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with
228 %"utf8", this file should still be used not the
229 %\texttt{datetime2-bulgarian-utf8.ldf} file as the non-ASCII
230 %characters are made active in that situation and would need
231 %protecting against expansion.
232 %\changes{1.0}{2015-03-29}{Initial release}
233 % Identify module
234 % \begin{macrocode}
235 \ProvidesDateTimeModule{bulgarian-ascii}[2018/03/19 v1.1]
236 % \end{macrocode}
237 %
238 %If abbreviated dates are supported, short month names should be
239 %likewise provided.
240 %\begin{macro}{\DTMbulgarianordinal}
241 % \begin{macrocode}
242 \newcommand*{\DTMbulgarianordinal}[1]{%
243 \number#1
244 }
245 % \end{macrocode}
246 %\end{macro}
247 %
248 %\begin{macro}{\DTMbulgarianyear}
249 % \begin{macrocode}
250 \newcommand*{\DTMbulgarianyear}[1]{%
251 \number#1
252 \DTMtexorpdfstring{\protect~}{\space}\protect\cyrg.%
253 }
254 % \end{macrocode}
255 %\end{macro}
256 %
257 %\begin{macro}{\DTMbulgarianmonthname}
258 % Bulgarian month names.
259 % \begin{macrocode}
260 \newcommand*{\DTMbulgarianmonthname}[1]{%
261 \ifcase#1
262 \or
263 \protect\cyrya\protect\cyrn\protect\cyru\protect\cyra\protect\cyrr
264 \protect\cyri
265 \or
266 \protect\cyrf\protect\cyre\protect\cyrv\protect\cyrr\protect\cyru
267 \protect\cyra\protect\cyrr\protect\cyri
268 \or
269 \protect\cyrm\protect\cyra\protect\cyrr\protect\cyrt
270 \or
271 \protect\cyra\protect\cyrp\protect\cyrr\protect\cyri\protect\cyrl
272 \or
273 \protect\cyrm\protect\cyra\protect\cyrishrt
274 \or
275 \protect\cyryu\protect\cyrn\protect\cyri
276 \or
277 \protect\cyryu\protect\cyrl\protect\cyri
278 \or
279 \protect\cyra\protect\cyrv\protect\cyrg\protect\cyru\protect\cyrs
280 \protect\cyrt
281 \or
282 \protect\cyrs\protect\cyre\protect\cyrp\protect\cyrt\protect\cyre
283 \protect\cyrm\protect\cyrv\protect\cyrr\protect\cyri
284 \or
285 \protect\cyro\protect\cyrk\protect\cyrt\protect\cyro\protect\cyrm
286 \protect\cyrv\protect\cyrr\protect\cyri
287 \or
288 \protect\cyrn\protect\cyro\protect\cyre\protect\cyrm\protect\cyrv
289 \protect\cyrr\protect\cyri
290 \or
291 \protect\cyrd\protect\cyre\protect\cyrk\protect\cyre\protect\cyrm
292 \protect\cyrv\protect\cyrr\protect\cyri
293 \fi
294 }
295 % \end{macrocode}
296 %\end{macro}
297 %
298 %\begin{macro}{\DTMbulgarianMonthname}
299 % As above but start with a capital.
300 % \begin{macrocode}
301 \newcommand*{\DTMbulgarianMonthname}[1]{%
302 \ifcase#1
303 \or
304 \protect\CYRYA\protect\cyrn\protect\cyru\protect\cyra\protect\cyrr
305 \protect\cyri
306 \or
307 \protect\CYRF\protect\cyre\protect\cyrv\protect\cyrr\protect\cyru
308 \protect\cyra\protect\cyrr\protect\cyri
309 \or
310 \protect\CYRM\protect\cyra\protect\cyrr\protect\cyrt
311 \or
312 \protect\CYRA\protect\cyrp\protect\cyrr\protect\cyri\protect\cyrl
313 \or
314 \protect\CYRM\protect\cyra\protect\cyrishrt
315 \or
316 \protect\CYRYU\protect\cyrn\protect\cyri
317 \or
318 \protect\CYRYU\protect\cyrl\protect\cyri
319 \or
320 \protect\CYRA\protect\cyrv\protect\cyrg\protect\cyru\protect\cyrs
321 \protect\cyrt
322 \or
323 \protect\CYRS\protect\cyre\protect\cyrp\protect\cyrt\protect\cyre
324 \protect\cyrm\protect\cyrv\protect\cyrr\protect\cyri
325 \or
326 \protect\CYRO\protect\cyrk\protect\cyrt\protect\cyro\protect\cyrm
327 \protect\cyrv\protect\cyrr\protect\cyri
328 \or
329 \protect\CYRN\protect\cyro\protect\cyre\protect\cyrm\protect\cyrv
330 \protect\cyrr\protect\cyri
331 \or
332 \protect\CYRD\protect\cyre\protect\cyrk\protect\cyre\protect\cyrm
333 \protect\cyrv\protect\cyrr\protect\cyri
334 \fi
335 }
336 % \end{macrocode}
337 %\end{macro}
338 %
339 %\iffalse
340 % \begin{macrocode}
341 %</datetime2-bulgarian-ascii.ldf>
342 % \end{macrocode}
343 %\fi
344 %
345 %\subsection{Main Bulgarian Module (\texttt{datetime2-bulgarian.ldf})}
346 %\changes{1.0}{2015-03-29}{Initial release}
347 %
348 %\iffalse
349 % \begin{macrocode}
350 %<*datetime2-bulgarian.ldf>
351 % \end{macrocode}
352 %\fi
353 %
354 % Identify Module
355 % \begin{macrocode}
356 \ProvidesDateTimeModule{bulgarian}[2018/03/19 v1.1]
357 % \end{macrocode}
358 % Need to find out if XeTeX or LuaTeX are being used.
359 % \begin{macrocode}
360 \RequirePackage{ifxetex,ifluatex}
361 % \end{macrocode}
362 % XeTeX and LuaTeX natively support UTF-8, so load
363 % \texttt{bulgarian-utf8} if either of those engines are used
364 % otherwise load \texttt{bulgarian-ascii}.
365 % \begin{macrocode}
366 \ifxetex
367 \RequireDateTimeModule{bulgarian-utf8}
368 \else
369 \ifluatex
370 \RequireDateTimeModule{bulgarian-utf8}
371 \else
372 \RequireDateTimeModule{bulgarian-ascii}
373 \fi
374 \fi
375 % \end{macrocode}
376 %
377 % Define the \texttt{bulgarian} style.
378 % The time style is the same as the "default" style
379 % provided by \sty{datetime2}. This may need correcting. For
380 % example, if a 12 hour style similar to the "englishampm" (from the
381 % "english-base" module) is required.
382 %
383 % Allow the user a way of configuring the "bulgarian" and
384 % "bulgarian-numeric" styles. This doesn't use the package wide
385 % separators such as
386 % \cs{dtm@datetimesep} in case other date formats are also required.
387 %\begin{macro}{\DTMbulgariandaymonthsep}
388 % The separator between the day and month for the text format.
389 % \begin{macrocode}
390 \newcommand*{\DTMbulgariandaymonthsep}{\space}
391 % \end{macrocode}
392 %\end{macro}
393 %
394 %\begin{macro}{\DTMbulgarianmonthyearsep}
395 % The separator between the month and year for the text format.
396 % \begin{macrocode}
397 \newcommand*{\DTMbulgarianmonthyearsep}{\space}
398 % \end{macrocode}
399 %\end{macro}
400 %
401 %\begin{macro}{\DTMbulgariandatetimesep}
402 % The separator between the date and time blocks in the full format
403 % (either text or numeric).
404 % \begin{macrocode}
405 \newcommand*{\DTMbulgariandatetimesep}{\space}
406 % \end{macrocode}
407 %\end{macro}
408 %
409 %\begin{macro}{\DTMbulgariantimezonesep}
410 % The separator between the time and zone blocks in the full format
411 % (either text or numeric).
412 % \begin{macrocode}
413 \newcommand*{\DTMbulgariantimezonesep}{\space}
414 % \end{macrocode}
415 %\end{macro}
416 %
417 %\begin{macro}{\DTMbulgariandatesep}
418 % The separator for the numeric date format.
419 % \begin{macrocode}
420 \newcommand*{\DTMbulgariandatesep}{.}
421 % \end{macrocode}
422 %\end{macro}
423 %
424 %\begin{macro}{\DTMbulgariantimesep}
425 % The separator for the numeric time format.
426 % \begin{macrocode}
427 \newcommand*{\DTMbulgariantimesep}{:}
428 % \end{macrocode}
429 %\end{macro}
430 %
431 %Provide keys that can be used in \cs{DTMlangsetup} to set these
432 %separators.
433 % \begin{macrocode}
434 \DTMdefkey{bulgarian}{daymonthsep}{\renewcommand*{\DTMbulgariandaymonthsep}{#1}}
435 \DTMdefkey{bulgarian}{monthyearsep}{\renewcommand*{\DTMbulgarianmonthyearsep}{#1}}
436 \DTMdefkey{bulgarian}{datetimesep}{\renewcommand*{\DTMbulgariandatetimesep}{#1}}
437 \DTMdefkey{bulgarian}{timezonesep}{\renewcommand*{\DTMbulgariantimezonesep}{#1}}
438 \DTMdefkey{bulgarian}{datesep}{\renewcommand*{\DTMbulgariandatesep}{#1}}
439 \DTMdefkey{bulgarian}{timesep}{\renewcommand*{\DTMbulgariantimesep}{#1}}
440 % \end{macrocode}
441 %
442 % TODO: provide a boolean key to switch between full and abbreviated
443 % formats if appropriate. (I don't know how the date should be
444 % abbreviated.)
445 %
446 % Define a boolean key that determines if the time zone mappings
447 % should be used.
448 % \begin{macrocode}
449 \DTMdefboolkey{bulgarian}{mapzone}[true]{}
450 % \end{macrocode}
451 % The default is to use mappings.
452 % \begin{macrocode}
453 \DTMsetbool{bulgarian}{mapzone}{true}
454 % \end{macrocode}
455 %
456 % Define a boolean key that determines if the day of month should be
457 % displayed.
458 % \begin{macrocode}
459 \DTMdefboolkey{bulgarian}{showdayofmonth}[true]{}
460 % \end{macrocode}
461 % The default is to show the day of month.
462 % \begin{macrocode}
463 \DTMsetbool{bulgarian}{showdayofmonth}{true}
464 % \end{macrocode}
465 %
466 % Define a boolean key that determines if the year should be
467 % displayed.
468 % \begin{macrocode}
469 \DTMdefboolkey{bulgarian}{showyear}[true]{}
470 % \end{macrocode}
471 % The default is to show the year.
472 % \begin{macrocode}
473 \DTMsetbool{bulgarian}{showyear}{true}
474 % \end{macrocode}
475 %
476 % Define the "bulgarian" style. (TODO: implement day of week?)
477 % \begin{macrocode}
478 \DTMnewstyle
479 {bulgarian}% label
480 {% date style
481 \renewcommand*\DTMdisplaydate[4]{%
482 \DTMifbool{bulgarian}{showdayofmonth}
483 {\DTMbulgarianordinal{##3}\DTMbulgariandaymonthsep}%
484 {}%
485 \DTMbulgarianmonthname{##2}%
486 \DTMifbool{bulgarian}{showyear}%
487 {%
488 \DTMbulgarianmonthyearsep
489 \DTMbulgarianyear{##1}%
490 }%
491 {}%
492 }%
493 \renewcommand*\DTMDisplaydate[4]{%
494 \DTMifbool{bulgarian}{showdayofmonth}
495 {%
496 \DTMbulgarianordinal{##3}\DTMbulgariandaymonthsep
497 \DTMbulgarianmonthname{##2}%
498 }%
499 {%
500 \DTMbulgarianMonthname{##2}%
501 }%
502 \DTMifbool{bulgarian}{showyear}%
503 {%
504 \DTMbulgarianmonthyearsep
505 \DTMbulgarianyear{##1}%
506 }%
507 {}%
508 }%
509 }%
510 {% time style (use default)
511 \DTMsettimestyle{default}%
512 }%
513 {% zone style
514 \DTMresetzones
515 \DTMbulgarianzonemaps
516 \renewcommand*{\DTMdisplayzone}[2]{%
517 \DTMifbool{bulgarian}{mapzone}%
518 {\DTMusezonemapordefault{##1}{##2}}%
519 {%
520 \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
521 \ifDTMshowzoneminutes\DTMbulgariantimesep\DTMtwodigits{##2}\fi
522 }%
523 }%
524 }%
525 {% full style
526 \renewcommand*{\DTMdisplay}[9]{%
527 \ifDTMshowdate
528 \DTMdisplaydate{##1}{##2}{##3}{##4}%
529 \DTMbulgariandatetimesep
530 \fi
531 \DTMdisplaytime{##5}{##6}{##7}%
532 \ifDTMshowzone
533 \DTMbulgariantimezonesep
534 \DTMdisplayzone{##8}{##9}%
535 \fi
536 }%
537 \renewcommand*{\DTMDisplay}[9]{%
538 \ifDTMshowdate
539 \DTMDisplaydate{##1}{##2}{##3}{##4}%
540 \DTMbulgariandatetimesep
541 \fi
542 \DTMdisplaytime{##5}{##6}{##7}%
543 \ifDTMshowzone
544 \DTMbulgariantimezonesep
545 \DTMdisplayzone{##8}{##9}%
546 \fi
547 }%
548 }%
549 % \end{macrocode}
550 %
551 % Define numeric style.
552 % \begin{macrocode}
553 \DTMnewstyle
554 {bulgarian-numeric}% label
555 {% date style
556 \renewcommand*\DTMdisplaydate[4]{%
557 \DTMifbool{bulgarian}{showdayofmonth}%
558 {%
559 \number##3 % space intended
560 \DTMbulgariandatesep
561 }%
562 {}%
563 \number##2 % space intended
564 \DTMifbool{bulgarian}{showyear}%
565 {%
566 \DTMbulgariandatesep
567 \number##1 % space intended
568 }%
569 {}%
570 }%
571 \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}%
572 }%
573 {% time style
574 \renewcommand*\DTMdisplaytime[3]{%
575 \number##1
576 \DTMbulgariantimesep\DTMtwodigits{##2}%
577 \ifDTMshowseconds\DTMbulgariantimesep\DTMtwodigits{##3}\fi
578 }%
579 }%
580 {% zone style
581 \DTMresetzones
582 \DTMbulgarianzonemaps
583 \renewcommand*{\DTMdisplayzone}[2]{%
584 \DTMifbool{bulgarian}{mapzone}%
585 {\DTMusezonemapordefault{##1}{##2}}%
586 {%
587 \ifnum##1<0\else+\fi\DTMtwodigits{##1}%
588 \ifDTMshowzoneminutes\DTMbulgariantimesep\DTMtwodigits{##2}\fi
589 }%
590 }%
591 }%
592 {% full style
593 \renewcommand*{\DTMdisplay}[9]{%
594 \ifDTMshowdate
595 \DTMdisplaydate{##1}{##2}{##3}{##4}%
596 \DTMbulgariandatetimesep
597 \fi
598 \DTMdisplaytime{##5}{##6}{##7}%
599 \ifDTMshowzone
600 \DTMbulgariantimezonesep
601 \DTMdisplayzone{##8}{##9}%
602 \fi
603 }%
604 \renewcommand*{\DTMDisplay}{\DTMdisplay}%
605 }
606 % \end{macrocode}
607 %
608 %\begin{macro}{\DTMbulgarianzonemaps}
609 % The time zone mappings are set through this command, which can be
610 % redefined if extra mappings are required or mappings need to be
611 % removed.
612 % \begin{macrocode}
613 \newcommand*{\DTMbulgarianzonemaps}{%
614 \DTMdefzonemap{02}{00}{EET}%
615 \DTMdefzonemap{03}{00}{EEST}%
616 }
617 % \end{macrocode}
618 %\end{macro}
619
620 % Switch style according to the \opt{useregional} setting.
621 % \begin{macrocode}
622 \DTMifcaseregional
623 {}% do nothing
624 {\DTMsetstyle{bulgarian}}
625 {\DTMsetstyle{bulgarian-numeric}}
626 % \end{macrocode}
627 %
628 % Redefine \cs{datebulgarian} (or \cs{date}\meta{dialect}) to prevent
629 % \sty{babel} from resetting \cs{today}. (For this to work,
630 % \sty{babel} must already have been loaded if it's required.)
631 %\changes{1.1}{2018-03-19}{removed spurious space}
632 % \begin{macrocode}
633 \ifcsundef{date\CurrentTrackedDialect}
634 {%
635 \ifundef\datebulgarian
636 {% do nothing
637 }%
638 {%
639 \def\datebulgarian{%
640 \DTMifcaseregional
641 {}% do nothing
642 {\DTMsetstyle{bulgarian}}%
643 {\DTMsetstyle{bulgarian-numeric}}%
644 }%
645 }%
646 }%
647 {%
648 \csdef{date\CurrentTrackedDialect}{%
649 \DTMifcaseregional
650 {}% do nothing
651 {\DTMsetstyle{bulgarian}}%
652 {\DTMsetstyle{bulgarian-numeric}}%
653 }%
654 }%
655 % \end{macrocode}
656 %\iffalse
657 % \begin{macrocode}
658 %</datetime2-bulgarian.ldf>
659 % \end{macrocode}
660 %\fi
661 %\Finale
662 \endinput