diff options
Diffstat (limited to 'Master')
48 files changed, 7489 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/datetime2-slovak/README b/Master/texmf-dist/doc/latex/datetime2-slovak/README new file mode 100644 index 00000000000..e40a960551b --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-slovak/README @@ -0,0 +1,57 @@ +Slovak Language Module for datetime2 Package + +Author: Nicola L. C. Talbot (inactive) + +Licence: LPPL + +Required Packages: datetime2, tracklang + +This module is unmaintained. If you want to volunteer to take over +the maintenance contact me at www.dickimaw-books.com/contact.html + +Example usage: + +\documentclass{article} +\usepackage[slovak]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[slovak]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{slovak} +\usepackage[slovak]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-slovak.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-slovak/ + +Documentation: + +xelatex datetime2-slovak.dtx +makeindex -s gind.ist datetime2-slovak.idx +makeindex -s gglo.ist -o datetime2-slovak.gls datetime2-slovak.glo +xelatex datetime2-slovak.dtx +xelatex datetime2-slovak.dtx + +Move datetime2-slovak.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-slovak/ + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/license/lppl1.3 for the details of that +license. + diff --git a/Master/texmf-dist/doc/latex/datetime2-slovak/datetime2-slovak.pdf b/Master/texmf-dist/doc/latex/datetime2-slovak/datetime2-slovak.pdf Binary files differnew file mode 100644 index 00000000000..0eea10ca151 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-slovak/datetime2-slovak.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-slovene/README b/Master/texmf-dist/doc/latex/datetime2-slovene/README new file mode 100644 index 00000000000..57c028dc8b2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-slovene/README @@ -0,0 +1,57 @@ +Slovene Language Module for datetime2 Package + +Author: Nicola L. C. Talbot (inactive) + +Licence: LPPL + +Required Packages: datetime2, tracklang + +This module is unmaintained. If you want to volunteer to take over +the maintenance contact me at www.dickimaw-books.com/contact.html + +Example usage: + +\documentclass{article} +\usepackage[slovene]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[slovene]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{slovene} +\usepackage[slovene]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-slovene.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-slovene/ + +Documentation: + +xelatex datetime2-slovene.dtx +makeindex -s gind.ist datetime2-slovene.idx +makeindex -s gglo.ist -o datetime2-slovene.gls datetime2-slovene.glo +xelatex datetime2-slovene.dtx +xelatex datetime2-slovene.dtx + +Move datetime2-slovene.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-slovene/ + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/license/lppl1.3 for the details of that +license. + diff --git a/Master/texmf-dist/doc/latex/datetime2-slovene/datetime2-slovene.pdf b/Master/texmf-dist/doc/latex/datetime2-slovene/datetime2-slovene.pdf Binary files differnew file mode 100644 index 00000000000..6766a382ba5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-slovene/datetime2-slovene.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-swedish/README b/Master/texmf-dist/doc/latex/datetime2-swedish/README new file mode 100644 index 00000000000..788baab68f0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-swedish/README @@ -0,0 +1,57 @@ +Swedish Language Module for datetime2 Package + +Author: Nicola L. C. Talbot (inactive) + +Licence: LPPL + +Required Packages: datetime2, tracklang + +This module is unmaintained. If you want to volunteer to take over +the maintenance contact me at www.dickimaw-books.com/contact.html + +Example usage: + +\documentclass{article} +\usepackage[swedish]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[swedish]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{swedish} +\usepackage[swedish]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-swedish.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-swedish/ + +Documentation: + +xelatex datetime2-swedish.dtx +makeindex -s gind.ist datetime2-swedish.idx +makeindex -s gglo.ist -o datetime2-swedish.gls datetime2-swedish.glo +xelatex datetime2-swedish.dtx +xelatex datetime2-swedish.dtx + +Move datetime2-swedish.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-swedish/ + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/license/lppl1.3 for the details of that +license. + diff --git a/Master/texmf-dist/doc/latex/datetime2-swedish/datetime2-swedish.pdf b/Master/texmf-dist/doc/latex/datetime2-swedish/datetime2-swedish.pdf Binary files differnew file mode 100644 index 00000000000..b801ea7906f --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-swedish/datetime2-swedish.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-turkish/README b/Master/texmf-dist/doc/latex/datetime2-turkish/README new file mode 100644 index 00000000000..96ce71122e9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-turkish/README @@ -0,0 +1,57 @@ +Turkish Language Module for datetime2 Package + +Author: Nicola L. C. Talbot (inactive) + +Licence: LPPL + +Required Packages: datetime2, tracklang + +This module is unmaintained. If you want to volunteer to take over +the maintenance contact me at www.dickimaw-books.com/contact.html + +Example usage: + +\documentclass{article} +\usepackage[turkish]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[turkish]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{turkish} +\usepackage[turkish]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-turkish.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-turkish/ + +Documentation: + +xelatex datetime2-turkish.dtx +makeindex -s gind.ist datetime2-turkish.idx +makeindex -s gglo.ist -o datetime2-turkish.gls datetime2-turkish.glo +xelatex datetime2-turkish.dtx +xelatex datetime2-turkish.dtx + +Move datetime2-turkish.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-turkish/ + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/license/lppl1.3 for the details of that +license. + diff --git a/Master/texmf-dist/doc/latex/datetime2-turkish/datetime2-turkish.pdf b/Master/texmf-dist/doc/latex/datetime2-turkish/datetime2-turkish.pdf Binary files differnew file mode 100644 index 00000000000..e3a72ece4fe --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-turkish/datetime2-turkish.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-ukrainian/README b/Master/texmf-dist/doc/latex/datetime2-ukrainian/README new file mode 100644 index 00000000000..07bffec871d --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-ukrainian/README @@ -0,0 +1,57 @@ +Ukrainian Language Module for datetime2 Package + +Author: Nicola L. C. Talbot (inactive) + +Licence: LPPL + +Required Packages: datetime2, tracklang + +This module is unmaintained. If you want to volunteer to take over +the maintenance contact me at www.dickimaw-books.com/contact.html + +Example usage: + +\documentclass{article} +\usepackage[ukrainian]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[ukrainian]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{ukrainian} +\usepackage[ukrainian]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-ukrainian.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-ukrainian/ + +Documentation: + +xelatex datetime2-ukrainian.dtx +makeindex -s gind.ist datetime2-ukrainian.idx +makeindex -s gglo.ist -o datetime2-ukrainian.gls datetime2-ukrainian.glo +xelatex datetime2-ukrainian.dtx +xelatex datetime2-ukrainian.dtx + +Move datetime2-ukrainian.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-ukrainian/ + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/license/lppl1.3 for the details of that +license. + diff --git a/Master/texmf-dist/doc/latex/datetime2-ukrainian/datetime2-ukrainian.pdf b/Master/texmf-dist/doc/latex/datetime2-ukrainian/datetime2-ukrainian.pdf Binary files differnew file mode 100644 index 00000000000..9411b4844f4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-ukrainian/datetime2-ukrainian.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-usorbian/README b/Master/texmf-dist/doc/latex/datetime2-usorbian/README new file mode 100644 index 00000000000..a85cf8b7ab3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-usorbian/README @@ -0,0 +1,57 @@ +Upper Sorbian Language Module for datetime2 Package + +Author: Nicola L. C. Talbot (inactive) + +Licence: LPPL + +Required Packages: datetime2, tracklang + +This module is unmaintained. If you want to volunteer to take over +the maintenance contact me at www.dickimaw-books.com/contact.html + +Example usage: + +\documentclass{article} +\usepackage[usorbian]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[usorbian]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{usorbian} +\usepackage[usorbian]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-usorbian.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-usorbian/ + +Documentation: + +xelatex datetime2-usorbian.dtx +makeindex -s gind.ist datetime2-usorbian.idx +makeindex -s gglo.ist -o datetime2-usorbian.gls datetime2-usorbian.glo +xelatex datetime2-usorbian.dtx +xelatex datetime2-usorbian.dtx + +Move datetime2-usorbian.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-usorbian/ + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/license/lppl1.3 for the details of that +license. + diff --git a/Master/texmf-dist/doc/latex/datetime2-usorbian/datetime2-usorbian.pdf b/Master/texmf-dist/doc/latex/datetime2-usorbian/datetime2-usorbian.pdf Binary files differnew file mode 100644 index 00000000000..01f4c3ce00b --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-usorbian/datetime2-usorbian.pdf diff --git a/Master/texmf-dist/source/latex/datetime2-slovak/datetime2-slovak.dtx b/Master/texmf-dist/source/latex/datetime2-slovak/datetime2-slovak.dtx new file mode 100644 index 00000000000..cc947d22bdb --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-slovak/datetime2-slovak.dtx @@ -0,0 +1,634 @@ +%\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> +%\fi +% \iffalse +% Doc-Source file to use with LaTeX2e +% Copyright (C) 2015 Nicola Talbot, all rights reserved. +% (New maintainer add relevant lines here.) +% \fi +% \iffalse +%<*driver> +\documentclass{ltxdoc} + +\usepackage{alltt} +\usepackage{graphicx} +\usepackage{fontspec} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Slovak Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{285} + +\renewcommand*{\usage}[1]{\hyperpage{#1}} +\renewcommand*{\main}[1]{\hyperpage{#1}} +\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}} +\setcounter{IndexColumns}{2} + +\newcommand*{\sty}[1]{\textsf{#1}} +\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}} + +\RecordChanges +\PageIndex +\CodelineNumbered + +\begin{document} +\DocInput{datetime2-slovak.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Slovak Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-04-01 (v1.0)} +%\maketitle +% +%This module is currently unmaintained and may be subject to change. +%If you want to volunteer to take over maintanance, contact me at +%\url{http://www.dickimaw-books.com/contact.html} +% +%\begin{abstract} +%This is the Slovak language module for the \sty{datetime2} +%package. If you want to use the settings in this module you must +%install it in addition to installing \sty{datetime2}. If you use +%\sty{babel} or \sty{polyglossia}, you will need this module to +%prevent them from redefining \cs{today}. The \sty{datetime2} +% \opt{useregional} setting must be set to "text" or "numeric" +% for the language styles to be set. +% Alternatively, you can set the style in the document using +% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} +% depending on the value of the \opt{useregional} setting. +%\end{abstract} +% +%I've copied the date style from \texttt{babel-slovak}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Slovak. +%In particular, I don't know if the "slovak" time style is +%correct. Currently this just uses the "default" time style. Please +%be aware that this may change. Whoever takes over maintanance +%of this module may can change it as appropriate. +% +%The new maintainer should add the line: +%\begin{verbatim} +% The Current Maintainer of this work is Name. +%\end{verbatim} +%to the preamble part in \texttt{datetime2-slovak.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-slovak-utf8.ldf> +% \end{macrocode} +%\fi +%\subsection{UTF-8} +%This file contains the settings that use UTF-8 characters. This +%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure +%your text editor is set to UTF-8 if you want to view this code. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{slovak-utf8}[2015/04/01 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMslovakordinal} +% \begin{macrocode} +\newcommand*{\DTMslovakordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovakmonthname} +% Slovak month names. +% \begin{macrocode} +\newcommand*{\DTMslovakmonthname}[1]{% + \ifcase#1 + \or + januára% + \or + februára% + \or + marca% + \or + apríla% + \or + mája% + \or + júna% + \or + júla% + \or + augusta% + \or + septembra% + \or + októbra% + \or + novembra% + \or + decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovakMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMslovakMonthname}[1]{% + \ifcase#1 + \or + Januára% + \or + Februára% + \or + Marca% + \or + Apríla% + \or + Mája% + \or + Júna% + \or + Júla% + \or + Augusta% + \or + Septembra% + \or + Októbra% + \or + Novembra% + \or + Decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-slovak-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-slovak-ascii.ldf> +% \end{macrocode} +%\fi +%\subsection{ASCII} +%This file contains the settings that use \LaTeX\ commands for +%non-ASCII characters. This should be input if neither XeLaTeX nor +%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with +%"utf8", this file should still be used not the +%\texttt{datetime2-slovak-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{slovak-ascii}[2015/04/01 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMslovakordinal} +% \begin{macrocode} +\newcommand*{\DTMslovakordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovakmonthname} +% Slovak month names. +% \begin{macrocode} +\newcommand*{\DTMslovakmonthname}[1]{% + \ifcase#1 + \or + janu\protect\'ara% + \or + febru\protect\'ara% + \or + marca% + \or + apr\protect\'{\protect\i}la% + \or + m\protect\'aja% + \or + j\protect\'una% + \or + j\protect\'ula% + \or + augusta% + \or + septembra% + \or + okt\protect\'obra% + \or + novembra% + \or + decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovakMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMslovakMonthname}[1]{% + \ifcase#1 + \or + Janu\protect\'ara% + \or + Febru\protect\'ara% + \or + Marca% + \or + Apr\protect\'{\protect\i}la% + \or + M\protect\'aja% + \or + J\protect\'una% + \or + J\protect\'ula% + \or + Augusta% + \or + Septembra% + \or + Okt\protect\'obra% + \or + Novembra% + \or + Decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-slovak-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Slovak Module (\texttt{datetime2-slovak.ldf})} +%\changes{1.0}{2015-04-01}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-slovak.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{slovak}[2015/04/01 v1.0] +% \end{macrocode} +% Need to find out if XeTeX or LuaTeX are being used. +% \begin{macrocode} +\RequirePackage{ifxetex,ifluatex} +% \end{macrocode} +% XeTeX and LuaTeX natively support UTF-8, so load +% \texttt{slovak-utf8} if either of those engines are used +% otherwise load \texttt{slovak-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{slovak-utf8} +\else + \ifluatex + \RequireDateTimeModule{slovak-utf8} + \else + \RequireDateTimeModule{slovak-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{slovak} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. For +% example, if a 12 hour style similar to the "englishampm" (from the +% "english-base" module) is required. +% +% Allow the user a way of configuring the "slovak" and +% "slovak-numeric" styles. This doesn't use the package wide +% separators such as +% \cs{dtm@datetimesep} in case other date formats are also required. +%\begin{macro}{\DTMslovakdaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMslovakdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovakmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMslovakmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovakdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMslovakdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovaktimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMslovaktimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovakdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMslovakdatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovaktimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMslovaktimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{slovak}{daymonthsep}{\renewcommand*{\DTMslovakdaymonthsep}{#1}} +\DTMdefkey{slovak}{monthyearsep}{\renewcommand*{\DTMslovakmonthyearsep}{#1}} +\DTMdefkey{slovak}{datetimesep}{\renewcommand*{\DTMslovakdatetimesep}{#1}} +\DTMdefkey{slovak}{timezonesep}{\renewcommand*{\DTMslovaktimezonesep}{#1}} +\DTMdefkey{slovak}{datesep}{\renewcommand*{\DTMslovakdatesep}{#1}} +\DTMdefkey{slovak}{timesep}{\renewcommand*{\DTMslovaktimesep}{#1}} +% \end{macrocode} +% +% TODO: provide a boolean key to switch between full and abbreviated +% formats if appropriate. (I don't know how the date should be +% abbreviated.) +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{slovak}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{slovak}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{slovak}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{slovak}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{slovak}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{slovak}{showyear}{true} +% \end{macrocode} +% +% Define the "slovak" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {slovak}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovak}{showdayofmonth} + {% + \DTMslovakordinal{##3}% + \DTMslovakdaymonthsep + }% + {}% + \DTMslovakmonthname{##2}% + \DTMifbool{slovak}{showyear}% + {% + \DTMslovakmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{slovak}{showdayofmonth} + {% + \DTMslovakordinal{##3}% + \DTMslovakdaymonthsep + \DTMslovakmonthname{##2}% + }% + {% + \DTMslovakMonthname{##2}% + }% + \DTMifbool{slovak}{showyear}% + {% + \DTMslovakmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMslovakzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovak}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovaktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovakdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovaktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMslovakdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovaktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {slovak-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovak}{showdayofmonth}% + {% + \number##3 % space intended + \DTMslovakdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{slovak}{showyear}% + {% + \DTMslovakdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMslovaktimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMslovaktimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMslovakzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovak}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovaktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovakdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovaktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMslovakzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. +% \begin{macrocode} +\newcommand*{\DTMslovakzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{slovak}} +{\DTMsetstyle{slovak-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateslovak} (or \cs{date}\meta{dialect}) to prevent +% \sty{babel} from resetting \cs{today}. (For this to work, +% \sty{babel} must already have been loaded if it's required.) +% \begin{macrocode} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateslovak + {% do nothing + }% + {% + \def\dateslovak{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovak}}% + {\DTMsetstyle{slovak-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovak}}% + {\DTMsetstyle{slovak-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-slovak.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-slovak/datetime2-slovak.ins b/Master/texmf-dist/source/latex/datetime2-slovak/datetime2-slovak.ins new file mode 100644 index 00000000000..7edaaaf51c8 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-slovak/datetime2-slovak.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-slovak.dtx + Copyright 2015 Nicola Talbot + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license of (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `inactive'. + + This work consists of the files datetime2-slovak.dtx and + datetime2-slovak.ins and the derived files + datetime2-slovak-utf8.ldf, datetime2-slovak-ascii.ldf and + datetime2-slovak.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-slovak-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-slovak.dtx}{datetime2-slovak-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-slovak-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-slovak.dtx}{datetime2-slovak-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-slovak.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-slovak.dtx}{datetime2-slovak.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-slovene/datetime2-slovene.dtx b/Master/texmf-dist/source/latex/datetime2-slovene/datetime2-slovene.dtx new file mode 100644 index 00000000000..5729b907b81 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-slovene/datetime2-slovene.dtx @@ -0,0 +1,639 @@ +%\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> +%\fi +% \iffalse +% Doc-Source file to use with LaTeX2e +% Copyright (C) 2015 Nicola Talbot, all rights reserved. +% (New maintainer add relevant lines here.) +% \fi +% \iffalse +%<*driver> +\documentclass{ltxdoc} + +\usepackage{alltt} +\usepackage{graphicx} +\usepackage{fontspec} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Slovene Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{253} + +\renewcommand*{\usage}[1]{\hyperpage{#1}} +\renewcommand*{\main}[1]{\hyperpage{#1}} +\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}} +\setcounter{IndexColumns}{2} + +\newcommand*{\sty}[1]{\textsf{#1}} +\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}} + +\RecordChanges +\PageIndex +\CodelineNumbered + +\begin{document} +\DocInput{datetime2-slovene.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Slovene Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-04-01 (v1.0)} +%\maketitle +% +%This module is currently unmaintained and may be subject to change. +%If you want to volunteer to take over maintanance, contact me at +%\url{http://www.dickimaw-books.com/contact.html} +% +%\begin{abstract} +%This is the Slovene language module for the \sty{datetime2} +%package. If you want to use the settings in this module you must +%install it in addition to installing \sty{datetime2}. If you use +%\sty{babel} or \sty{polyglossia}, you will need this module to +%prevent them from redefining \cs{today}. The \sty{datetime2} +% \opt{useregional} setting must be set to "text" or "numeric" +% for the language styles to be set. +% Alternatively, you can set the style in the document using +% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} +% depending on the value of the \opt{useregional} setting. +%\end{abstract} +% +%I've copied the date style from \texttt{babel-slovene}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Slovene. +%In particular, I don't know if the "slovene" time style is +%correct. Currently this just uses the "default" time style. Please +%be aware that this may change. Whoever takes over maintanance +%of this module may can change it as appropriate. +% +%The new maintainer should add the line: +%\begin{verbatim} +% The Current Maintainer of this work is Name. +%\end{verbatim} +%to the preamble part in \texttt{datetime2-slovene.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-slovene-utf8.ldf> +% \end{macrocode} +%\fi +%\subsection{UTF-8} +%This file contains the settings that use UTF-8 characters. This +%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure +%your text editor is set to UTF-8 if you want to view this code. +% +%(This file doesn't actually contain non-ASCII characters at +%present, but is provided in case week day names or archaic month +%names are added, which +%may contain non-ASCII characters.) +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{slovene-utf8}[2015/04/01 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMsloveneordinal} +% \begin{macrocode} +\newcommand*{\DTMsloveneordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovenemonthname} +% Slovene month names. +% \begin{macrocode} +\newcommand*{\DTMslovenemonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + marec% + \or + april% + \or + maj% + \or + junij% + \or + julij% + \or + avgust% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsloveneMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMsloveneMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Marec% + \or + April% + \or + Maj% + \or + Junij% + \or + Julij% + \or + Avgust% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-slovene-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-slovene-ascii.ldf> +% \end{macrocode} +%\fi +%\subsection{ASCII} +%This file contains the settings that use \LaTeX\ commands for +%non-ASCII characters. This should be input if neither XeLaTeX nor +%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with +%"utf8", this file should still be used not the +%\texttt{datetime2-slovene-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{slovene-ascii}[2015/04/01 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMsloveneordinal} +% \begin{macrocode} +\newcommand*{\DTMsloveneordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovenemonthname} +% Slovene month names. +% \begin{macrocode} +\newcommand*{\DTMslovenemonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + marec% + \or + april% + \or + maj% + \or + junij% + \or + julij% + \or + avgust% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsloveneMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMsloveneMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Marec% + \or + April% + \or + Maj% + \or + Junij% + \or + Julij% + \or + Avgust% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-slovene-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Slovene Module (\texttt{datetime2-slovene.ldf})} +%\changes{1.0}{2015-04-01}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-slovene.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{slovene}[2015/04/01 v1.0] +% \end{macrocode} +% Need to find out if XeTeX or LuaTeX are being used. +% \begin{macrocode} +\RequirePackage{ifxetex,ifluatex} +% \end{macrocode} +% XeTeX and LuaTeX natively support UTF-8, so load +% \texttt{slovene-utf8} if either of those engines are used +% otherwise load \texttt{slovene-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{slovene-utf8} +\else + \ifluatex + \RequireDateTimeModule{slovene-utf8} + \else + \RequireDateTimeModule{slovene-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{slovene} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. For +% example, if a 12 hour style similar to the "englishampm" (from the +% "english-base" module) is required. +% +% Allow the user a way of configuring the "slovene" and +% "slovene-numeric" styles. This doesn't use the package wide +% separators such as +% \cs{dtm@datetimesep} in case other date formats are also required. +%\begin{macro}{\DTMslovenedaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMslovenedaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovenemonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMslovenemonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovenedatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMslovenedatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovenetimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMslovenetimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovenedatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMslovenedatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMslovenetimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMslovenetimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{slovene}{daymonthsep}{\renewcommand*{\DTMslovenedaymonthsep}{#1}} +\DTMdefkey{slovene}{monthyearsep}{\renewcommand*{\DTMslovenemonthyearsep}{#1}} +\DTMdefkey{slovene}{datetimesep}{\renewcommand*{\DTMslovenedatetimesep}{#1}} +\DTMdefkey{slovene}{timezonesep}{\renewcommand*{\DTMslovenetimezonesep}{#1}} +\DTMdefkey{slovene}{datesep}{\renewcommand*{\DTMslovenedatesep}{#1}} +\DTMdefkey{slovene}{timesep}{\renewcommand*{\DTMslovenetimesep}{#1}} +% \end{macrocode} +% +% TODO: provide a boolean key to switch between full and abbreviated +% formats if appropriate. (I don't know how the date should be +% abbreviated.) +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{slovene}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{slovene}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{slovene}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{slovene}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{slovene}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{slovene}{showyear}{true} +% \end{macrocode} +% +% Define the "slovene" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {slovene}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovene}{showdayofmonth} + {% + \DTMsloveneordinal{##3}% + \DTMslovenedaymonthsep + }% + {}% + \DTMslovenemonthname{##2}% + \DTMifbool{slovene}{showyear}% + {% + \DTMslovenemonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{slovene}{showdayofmonth} + {% + \DTMsloveneordinal{##3}% + \DTMslovenedaymonthsep + \DTMslovenemonthname{##2}% + }% + {% + \DTMsloveneMonthname{##2}% + }% + \DTMifbool{slovene}{showyear}% + {% + \DTMslovenemonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMslovenezonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovene}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovenetimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovenedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovenetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMslovenedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovenetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {slovene-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovene}{showdayofmonth}% + {% + \number##3 % space intended + \DTMslovenedatesep + }% + {}% + \number##2 % space intended + \DTMifbool{slovene}{showyear}% + {% + \DTMslovenedatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMslovenetimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMslovenetimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMslovenezonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovene}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovenetimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovenedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovenetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMslovenezonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. +% \begin{macrocode} +\newcommand*{\DTMslovenezonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{slovene}} +{\DTMsetstyle{slovene-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateslovene} (or \cs{date}\meta{dialect}) to prevent +% \sty{babel} from resetting \cs{today}. (For this to work, +% \sty{babel} must already have been loaded if it's required.) +% \begin{macrocode} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateslovene + {% do nothing + }% + {% + \def\dateslovene{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovene}}% + {\DTMsetstyle{slovene-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovene}}% + {\DTMsetstyle{slovene-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-slovene.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-slovene/datetime2-slovene.ins b/Master/texmf-dist/source/latex/datetime2-slovene/datetime2-slovene.ins new file mode 100644 index 00000000000..464e54e2edd --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-slovene/datetime2-slovene.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-slovene.dtx + Copyright 2015 Nicola Talbot + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license of (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `inactive'. + + This work consists of the files datetime2-slovene.dtx and + datetime2-slovene.ins and the derived files + datetime2-slovene-utf8.ldf, datetime2-slovene-ascii.ldf and + datetime2-slovene.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-slovene-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-slovene.dtx}{datetime2-slovene-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-slovene-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-slovene.dtx}{datetime2-slovene-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-slovene.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-slovene.dtx}{datetime2-slovene.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-swedish/datetime2-swedish.dtx b/Master/texmf-dist/source/latex/datetime2-swedish/datetime2-swedish.dtx new file mode 100644 index 00000000000..6113e3715e5 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-swedish/datetime2-swedish.dtx @@ -0,0 +1,730 @@ +%\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> +%\fi +% \iffalse +% Doc-Source file to use with LaTeX2e +% Copyright (C) 2015 Nicola Talbot, all rights reserved. +% (New maintainer add relevant lines here.) +% \fi +% \iffalse +%<*driver> +\documentclass{ltxdoc} + +\usepackage{alltt} +\usepackage{graphicx} +\usepackage{fontspec} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Swedish Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{305} + +\renewcommand*{\usage}[1]{\hyperpage{#1}} +\renewcommand*{\main}[1]{\hyperpage{#1}} +\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}} +\setcounter{IndexColumns}{2} + +\newcommand*{\sty}[1]{\textsf{#1}} +\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}} + +\RecordChanges +\PageIndex +\CodelineNumbered + +\begin{document} +\DocInput{datetime2-swedish.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Swedish Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-04-01 (v1.0)} +%\maketitle +% +%This module is currently unmaintained and may be subject to change. +%If you want to volunteer to take over maintanance, contact me at +%\url{http://www.dickimaw-books.com/contact.html} +% +%\begin{abstract} +%This is the Swedish language module for the \sty{datetime2} +%package. If you want to use the settings in this module you must +%install it in addition to installing \sty{datetime2}. If you use +%\sty{babel} or \sty{polyglossia}, you will need this module to +%prevent them from redefining \cs{today}. The \sty{datetime2} +% \opt{useregional} setting must be set to "text" or "numeric" +% for the language styles to be set. +% Alternatively, you can set the style in the document using +% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} +% depending on the value of the \opt{useregional} setting. +%\end{abstract} +% +%I've copied the date style from \texttt{babel-swedish}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Swedish. +%In particular, I don't know if the "swedish" time style is +%correct. Currently this just uses the "default" time style. Please +%be aware that this may change. Whoever takes over maintanance +%of this module may can change it as appropriate. +% +%The new maintainer should add the line: +%\begin{verbatim} +% The Current Maintainer of this work is Name. +%\end{verbatim} +%to the preamble part in \texttt{datetime2-swedish.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-swedish-utf8.ldf> +% \end{macrocode} +%\fi +%\subsection{UTF-8} +%This file contains the settings that use UTF-8 characters. This +%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure +%your text editor is set to UTF-8 if you want to view this code. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{swedish-utf8}[2015/04/01 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMswedishordinal} +% \begin{macrocode} +\newcommand*{\DTMswedishordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishmonthname} +% Swedish month names. +% \begin{macrocode} +\newcommand*{\DTMswedishmonthname}[1]{% + \ifcase#1 + \or + januari% + \or + februari% + \or + mars% + \or + april% + \or + maj% + \or + juni% + \or + juli% + \or + augusti% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMswedishMonthname}[1]{% + \ifcase#1 + \or + Januari% + \or + Februari% + \or + Mars% + \or + April% + \or + Maj% + \or + Juni% + \or + Juli% + \or + Augusti% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +% Week day names are provided but currently not used in the date style. +% +%\begin{macro}{\DTMswedishweekdayname} +% Swedish day of week names. +% \begin{macrocode} +\newcommand*{\DTMswedishweekdayname}[1]{% + \ifcase#1 + måndag% + \or + tisdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + lördag% + \or + söndag% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMswedishWeekdayname}[1]{% + \ifcase#1 + Måndag% + \or + Tisdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + Lördag% + \or + Söndag% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-swedish-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-swedish-ascii.ldf> +% \end{macrocode} +%\fi +%\subsection{ASCII} +%This file contains the settings that use \LaTeX\ commands for +%non-ASCII characters. This should be input if neither XeLaTeX nor +%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with +%"utf8", this file should still be used not the +%\texttt{datetime2-swedish-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{swedish-ascii}[2015/04/01 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMswedishordinal} +% \begin{macrocode} +\newcommand*{\DTMswedishordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishmonthname} +% Swedish month names. +% \begin{macrocode} +\newcommand*{\DTMswedishmonthname}[1]{% + \ifcase#1 + \or + januari% + \or + februari% + \or + mars% + \or + april% + \or + maj% + \or + juni% + \or + juli% + \or + augusti% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMswedishMonthname}[1]{% + \ifcase#1 + \or + Januari% + \or + Februari% + \or + Mars% + \or + April% + \or + Maj% + \or + Juni% + \or + Juli% + \or + Augusti% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +% \end{macrocode} +%\end{macro} +% +% Week day names are provided but currently not used in the date style. +% +%\begin{macro}{\DTMswedishweekdayname} +% Swedish day of week names. +% \begin{macrocode} +\newcommand*{\DTMswedishweekdayname}[1]{% + \ifcase#1 + m\protect\aa ndag% + \or + tisdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + l\protect\"ordag% + \or + s\protect\"ondag% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMswedishWeekdayname}[1]{% + \ifcase#1 + M\protect\aa ndag% + \or + Tisdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + L\protect\"ordag% + \or + S\protect\"ondag% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-swedish-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Swedish Module (\texttt{datetime2-swedish.ldf})} +%\changes{1.0}{2015-04-01}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-swedish.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{swedish}[2015/04/01 v1.0] +% \end{macrocode} +% Need to find out if XeTeX or LuaTeX are being used. +% \begin{macrocode} +\RequirePackage{ifxetex,ifluatex} +% \end{macrocode} +% XeTeX and LuaTeX natively support UTF-8, so load +% \texttt{swedish-utf8} if either of those engines are used +% otherwise load \texttt{swedish-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{swedish-utf8} +\else + \ifluatex + \RequireDateTimeModule{swedish-utf8} + \else + \RequireDateTimeModule{swedish-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{swedish} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. For +% example, if a 12 hour style similar to the "englishampm" (from the +% "english-base" module) is required. +% +% Allow the user a way of configuring the "swedish" and +% "swedish-numeric" styles. This doesn't use the package wide +% separators such as +% \cs{dtm@datetimesep} in case other date formats are also required. +%\begin{macro}{\DTMswedishdaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMswedishdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMswedishmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMswedishdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishtimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMswedishtimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMswedishdatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMswedishtimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMswedishtimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{swedish}{daymonthsep}{\renewcommand*{\DTMswedishdaymonthsep}{#1}} +\DTMdefkey{swedish}{monthyearsep}{\renewcommand*{\DTMswedishmonthyearsep}{#1}} +\DTMdefkey{swedish}{datetimesep}{\renewcommand*{\DTMswedishdatetimesep}{#1}} +\DTMdefkey{swedish}{timezonesep}{\renewcommand*{\DTMswedishtimezonesep}{#1}} +\DTMdefkey{swedish}{datesep}{\renewcommand*{\DTMswedishdatesep}{#1}} +\DTMdefkey{swedish}{timesep}{\renewcommand*{\DTMswedishtimesep}{#1}} +% \end{macrocode} +% +% TODO: provide a boolean key to switch between full and abbreviated +% formats if appropriate. (I don't know how the date should be +% abbreviated.) +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{swedish}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{swedish}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{swedish}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{swedish}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{swedish}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{swedish}{showyear}{true} +% \end{macrocode} +% +% Define the "swedish" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {swedish}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{swedish}{showdayofmonth} + {% + \DTMswedishordinal{##3}% + \DTMswedishdaymonthsep + }% + {}% + \DTMswedishmonthname{##2}% + \DTMifbool{swedish}{showyear}% + {% + \DTMswedishmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{swedish}{showdayofmonth} + {% + \DTMswedishordinal{##3}% + \DTMswedishdaymonthsep + \DTMswedishmonthname{##2}% + }% + {% + \DTMswedishMonthname{##2}% + }% + \DTMifbool{swedish}{showyear}% + {% + \DTMswedishmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMswedishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{swedish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMswedishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMswedishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMswedishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMswedishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMswedishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {swedish-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{swedish}{showdayofmonth}% + {% + \number##3 % space intended + \DTMswedishdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{swedish}{showyear}% + {% + \DTMswedishdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMswedishtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMswedishtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMswedishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{swedish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMswedishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMswedishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMswedishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMswedishzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. +% \begin{macrocode} +\newcommand*{\DTMswedishzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{swedish}} +{\DTMsetstyle{swedish-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateswedish} (or \cs{date}\meta{dialect}) to prevent +% \sty{babel} from resetting \cs{today}. (For this to work, +% \sty{babel} must already have been loaded if it's required.) +% \begin{macrocode} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateswedish + {% do nothing + }% + {% + \def\dateswedish{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{swedish}}% + {\DTMsetstyle{swedish-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{swedish}}% + {\DTMsetstyle{swedish-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-swedish.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-swedish/datetime2-swedish.ins b/Master/texmf-dist/source/latex/datetime2-swedish/datetime2-swedish.ins new file mode 100644 index 00000000000..a2efb9c4aab --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-swedish/datetime2-swedish.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-swedish.dtx + Copyright 2015 Nicola Talbot + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license of (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `inactive'. + + This work consists of the files datetime2-swedish.dtx and + datetime2-swedish.ins and the derived files + datetime2-swedish-utf8.ldf, datetime2-swedish-ascii.ldf and + datetime2-swedish.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-swedish-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-swedish.dtx}{datetime2-swedish-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-swedish-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-swedish.dtx}{datetime2-swedish-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-swedish.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-swedish.dtx}{datetime2-swedish.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-turkish/datetime2-turkish.dtx b/Master/texmf-dist/source/latex/datetime2-turkish/datetime2-turkish.dtx new file mode 100644 index 00000000000..07c97460782 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-turkish/datetime2-turkish.dtx @@ -0,0 +1,540 @@ +%\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> +%\fi +% \iffalse +% Doc-Source file to use with LaTeX2e +% Copyright (C) 2015 Nicola Talbot, all rights reserved. +% (New maintainer add relevant lines here.) +% \fi +% \iffalse +%<*driver> +\documentclass{ltxdoc} + +\usepackage{alltt} +\usepackage{graphicx} +\usepackage{fontspec} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Turkish Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{218} + +\renewcommand*{\usage}[1]{\hyperpage{#1}} +\renewcommand*{\main}[1]{\hyperpage{#1}} +\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}} +\setcounter{IndexColumns}{2} + +\newcommand*{\sty}[1]{\textsf{#1}} +\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}} + +\RecordChanges +\PageIndex +\CodelineNumbered + +\begin{document} +\DocInput{datetime2-turkish.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Turkish Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-04-01 (v1.0)} +%\maketitle +% +%This module is currently unmaintained and may be subject to change. +%If you want to volunteer to take over maintanance, contact me at +%\url{http://www.dickimaw-books.com/contact.html} +% +%\begin{abstract} +%This is the Turkish language module for the \sty{datetime2} +%package. If you want to use the settings in this module you must +%install it in addition to installing \sty{datetime2}. If you use +%\sty{babel} or \sty{polyglossia}, you will need this module to +%prevent them from redefining \cs{today}. The \sty{datetime2} +% \opt{useregional} setting must be set to "text" or "numeric" +% for the language styles to be set. +% Alternatively, you can set the style in the document using +% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} +% depending on the value of the \opt{useregional} setting. +%\end{abstract} +% +%I've copied the date style from \texttt{babel-turkish}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Turkish. +%In particular, I don't know if the "turkish" time style is +%correct. Currently this just uses the "default" time style. Please +%be aware that this may change. Whoever takes over maintanance +%of this module may can change it as appropriate. +% +%The new maintainer should add the line: +%\begin{verbatim} +% The Current Maintainer of this work is Name. +%\end{verbatim} +%to the preamble part in \texttt{datetime2-turkish.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-turkish-utf8.ldf> +% \end{macrocode} +%\fi +%\subsection{UTF-8} +%This file contains the settings that use UTF-8 characters. This +%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure +%your text editor is set to UTF-8 if you want to view this code. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{turkish-utf8}[2015/04/01 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMturkishordinal} +% \begin{macrocode} +\newcommand*{\DTMturkishordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMturkishmonthname} +% Turkish month names. +% \begin{macrocode} +\newcommand*{\DTMturkishmonthname}[1]{% + \ifcase#1 + \or + Ocak% + \or + Şubat% + \or + Mart% + \or + Nisan% + \or + Mayıs% + \or + Haziran% + \or + Temmuz% + \or + Ağustos% + \or + Eylül% + \or + Ekim% + \or + Kasım% + \or + Aralık% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-turkish-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-turkish-ascii.ldf> +% \end{macrocode} +%\fi +%\subsection{ASCII} +%This file contains the settings that use \LaTeX\ commands for +%non-ASCII characters. This should be input if neither XeLaTeX nor +%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with +%"utf8", this file should still be used not the +%\texttt{datetime2-turkish-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{turkish-ascii}[2015/04/01 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMturkishordinal} +% \begin{macrocode} +\newcommand*{\DTMturkishordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMturkishmonthname} +% Turkish month names. +% \begin{macrocode} +\newcommand*{\DTMturkishmonthname}[1]{% + \ifcase#1 + \or + Ocak% + \or + \protect\c Subat% + \or + Mart% + \or + Nisan% + \or + May\protect\i s% + \or + Haziran% + \or + Temmuz% + \or + A\protect\u gustos% + \or + Eyl\protect\"ul% + \or + Ekim% + \or + Kas\protect\i m% + \or + Aral\protect\i k% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-turkish-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Turkish Module (\texttt{datetime2-turkish.ldf})} +%\changes{1.0}{2015-04-01}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-turkish.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{turkish}[2015/04/01 v1.0] +% \end{macrocode} +% Need to find out if XeTeX or LuaTeX are being used. +% \begin{macrocode} +\RequirePackage{ifxetex,ifluatex} +% \end{macrocode} +% XeTeX and LuaTeX natively support UTF-8, so load +% \texttt{turkish-utf8} if either of those engines are used +% otherwise load \texttt{turkish-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{turkish-utf8} +\else + \ifluatex + \RequireDateTimeModule{turkish-utf8} + \else + \RequireDateTimeModule{turkish-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{turkish} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. For +% example, if a 12 hour style similar to the "englishampm" (from the +% "english-base" module) is required. +% +% Allow the user a way of configuring the "turkish" and +% "turkish-numeric" styles. This doesn't use the package wide +% separators such as +% \cs{dtm@datetimesep} in case other date formats are also required. +%\begin{macro}{\DTMturkishdaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMturkishdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMturkishmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMturkishmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMturkishdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMturkishdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMturkishtimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMturkishtimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMturkishdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMturkishdatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMturkishtimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMturkishtimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{turkish}{daymonthsep}{\renewcommand*{\DTMturkishdaymonthsep}{#1}} +\DTMdefkey{turkish}{monthyearsep}{\renewcommand*{\DTMturkishmonthyearsep}{#1}} +\DTMdefkey{turkish}{datetimesep}{\renewcommand*{\DTMturkishdatetimesep}{#1}} +\DTMdefkey{turkish}{timezonesep}{\renewcommand*{\DTMturkishtimezonesep}{#1}} +\DTMdefkey{turkish}{datesep}{\renewcommand*{\DTMturkishdatesep}{#1}} +\DTMdefkey{turkish}{timesep}{\renewcommand*{\DTMturkishtimesep}{#1}} +% \end{macrocode} +% +% TODO: provide a boolean key to switch between full and abbreviated +% formats if appropriate. (I don't know how the date should be +% abbreviated.) +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{turkish}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{turkish}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{turkish}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{turkish}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{turkish}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{turkish}{showyear}{true} +% \end{macrocode} +% +% Define the "turkish" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {turkish}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{turkish}{showdayofmonth} + {% + \DTMturkishordinal{##3}% + \DTMturkishdaymonthsep + }% + {}% + \DTMturkishmonthname{##2}% + \DTMifbool{turkish}{showyear}% + {% + \DTMturkishmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMturkishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{turkish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMturkishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMturkishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMturkishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {turkish-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{turkish}{showdayofmonth}% + {% + \number##3 % space intended + \DTMturkishdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{turkish}{showyear}% + {% + \DTMturkishdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMturkishtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMturkishtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMturkishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{turkish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMturkishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMturkishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMturkishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMturkishzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. +% \begin{macrocode} +\newcommand*{\DTMturkishzonemaps}{% + \DTMdefzonemap{02}{00}{EET}% + \DTMdefzonemap{03}{00}{EEST}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{turkish}} +{\DTMsetstyle{turkish-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateturkish} (or \cs{date}\meta{dialect}) to prevent +% \sty{babel} from resetting \cs{today}. (For this to work, +% \sty{babel} must already have been loaded if it's required.) +% \begin{macrocode} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateturkish + {% do nothing + }% + {% + \def\dateturkish{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{turkish}}% + {\DTMsetstyle{turkish-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{turkish}}% + {\DTMsetstyle{turkish-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-turkish.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-turkish/datetime2-turkish.ins b/Master/texmf-dist/source/latex/datetime2-turkish/datetime2-turkish.ins new file mode 100644 index 00000000000..1d20960c0cb --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-turkish/datetime2-turkish.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-turkish.dtx + Copyright 2015 Nicola Talbot + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license of (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `inactive'. + + This work consists of the files datetime2-turkish.dtx and + datetime2-turkish.ins and the derived files + datetime2-turkish-utf8.ldf, datetime2-turkish-ascii.ldf and + datetime2-turkish.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-turkish-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-turkish.dtx}{datetime2-turkish-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-turkish-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-turkish.dtx}{datetime2-turkish-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-turkish.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-turkish.dtx}{datetime2-turkish.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx b/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx new file mode 100644 index 00000000000..3b91651d5a4 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.dtx @@ -0,0 +1,670 @@ +%\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> +%\fi +% \iffalse +% Doc-Source file to use with LaTeX2e +% Copyright (C) 2015 Nicola Talbot, all rights reserved. +% (New maintainer add relevant lines here.) +% \fi +% \iffalse +%<*driver> +\documentclass{ltxdoc} + +\usepackage{alltt} +\usepackage{graphicx} +\usepackage{fontspec} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Ukrainian Module}]{hyperref} + +\newfontfamily\cyrillicfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{567} + +\renewcommand*{\usage}[1]{\hyperpage{#1}} +\renewcommand*{\main}[1]{\hyperpage{#1}} +\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}} +\setcounter{IndexColumns}{2} + +\newcommand*{\sty}[1]{\textsf{#1}} +\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}} + +\RecordChanges +\PageIndex +\CodelineNumbered + +\begin{document} +\DocInput{datetime2-ukrainian.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Ukrainian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-04-01 (v1.0)} +%\maketitle +% +%This module is currently unmaintained and may be subject to change. +%If you want to volunteer to take over maintanance, contact me at +%\url{http://www.dickimaw-books.com/contact.html} +% +%\begin{abstract} +%This is the Ukrainian language module for the \sty{datetime2} +%package. If you want to use the settings in this module you must +%install it in addition to installing \sty{datetime2}. If you use +%\sty{babel} or \sty{polyglossia}, you will need this module to +%prevent them from redefining \cs{today}. The \sty{datetime2} +% \opt{useregional} setting must be set to "text" or "numeric" +% for the language styles to be set. +% Alternatively, you can set the style in the document using +% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} +% depending on the value of the \opt{useregional} setting. +%\end{abstract} +% +%I've copied the date style from \texttt{babel-ukrainian}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Ukrainian. +%In particular, I don't know if the "ukrainian" time style is +%correct. Currently this just uses the "default" time style. Please +%be aware that this may change. Whoever takes over maintanance +%of this module may can change it as appropriate. +% +%The new maintainer should add the line: +%\begin{verbatim} +% The Current Maintainer of this work is Name. +%\end{verbatim} +%to the preamble part in \texttt{datetime2-ukrainian.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-ukrainian-utf8.ldf> +% \end{macrocode} +%\fi +%\subsection{UTF-8} +%This file contains the settings that use UTF-8 characters. This +%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure +%your text editor is set to UTF-8 if you want to view this code. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{ukrainian-utf8}[2015/04/01 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMukrainianordinal} +% \begin{macrocode} +\newcommand*{\DTMukrainianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainianyear} +% \begin{macrocode} +\newcommand*{\DTMukrainianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}р.% +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMukrainianmonthname} +% Ukrainian month names. +% \begin{macrocode} +\newcommand*{\DTMukrainianmonthname}[1]{% + \ifcase#1 + \or + січня% + \or + лютого% + \or + березня% + \or + квітня% + \or + травня% + \or + червня% + \or + липня% + \or + серпня% + \or + вересня% + \or + жовтня% + \or + листопада% + \or + грудня% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainianMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMukrainianMonthname}[1]{% + \ifcase#1 + \or + Січня% + \or + Лютого% + \or + Березня% + \or + Квітня% + \or + Травня% + \or + Червня% + \or + Липня% + \or + Серпня% + \or + Вересня% + \or + Жовтня% + \or + Листопада% + \or + Грудня% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-ukrainian-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-ukrainian-ascii.ldf> +% \end{macrocode} +%\fi +%\subsection{ASCII} +%This file contains the settings that use \LaTeX\ commands for +%non-ASCII characters. This should be input if neither XeLaTeX nor +%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with +%"utf8", this file should still be used not the +%\texttt{datetime2-ukrainian-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{ukrainian-ascii}[2015/04/01 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMukrainianordinal} +% \begin{macrocode} +\newcommand*{\DTMukrainianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainianyear} +% \begin{macrocode} +\newcommand*{\DTMukrainianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}\protect\cyrr.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainianmonthname} +% Ukrainian month names. +% \begin{macrocode} +\newcommand*{\DTMukrainianmonthname}[1]{% + \ifcase#1 + \or + \protect\cyrs\protect\cyrii\protect\cyrch\protect\cyrn\protect\cyrya + \or + \protect\cyrl\protect\cyryu\protect\cyrt\protect\cyro\protect\cyrg + \protect\cyro + \or + \protect\cyrb\protect\cyre\protect\cyrr\protect\cyre\protect\cyrz + \protect\cyrn\protect\cyrya + \or + \protect\cyrk\protect\cyrv\protect\cyrii\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\cyrt\protect\cyrr\protect\cyra\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\cyrch\protect\cyre\protect\cyrr\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\cyrl\protect\cyri\protect\cyrp\protect\cyrn\protect\cyrya + \or + \protect\cyrs\protect\cyre\protect\cyrr\protect\cyrp\protect\cyrn + \protect\cyrya + \or + \protect\cyrv\protect\cyre\protect\cyrr\protect\cyre\protect\cyrs + \protect\cyrn\protect\cyrya + \or + \protect\cyrzh\protect\cyro\protect\cyrv\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\cyrl\protect\cyri\protect\cyrs\protect\cyrt\protect\cyro + \protect\cyrp\protect\cyra\protect\cyrd\protect\cyra + \or + \protect\cyrg\protect\cyrr\protect\cyru\protect\cyrd\protect\cyrn + \protect\cyrya + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainianMonthname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMukrainianMonthname}[1]{% + \ifcase#1 + \or + \protect\CYRS\protect\cyrii\protect\cyrch\protect\cyrn\protect\cyrya + \or + \protect\CYRL\protect\cyryu\protect\cyrt\protect\cyro\protect\cyrg + \protect\cyro + \or + \protect\CYRB\protect\cyre\protect\cyrr\protect\cyre\protect\cyrz + \protect\cyrn\protect\cyrya + \or + \protect\CYRK\protect\cyrv\protect\cyrii\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\CYRT\protect\cyrr\protect\cyra\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\CYRCH\protect\cyre\protect\cyrr\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\CYRL\protect\cyri\protect\cyrp\protect\cyrn\protect\cyrya + \or + \protect\CYRS\protect\cyre\protect\cyrr\protect\cyrp\protect\cyrn + \protect\cyrya + \or + \protect\CYRV\protect\cyre\protect\cyrr\protect\cyre\protect\cyrs + \protect\cyrn\protect\cyrya + \or + \protect\CYRZH\protect\cyro\protect\cyrv\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\CYRL\protect\cyri\protect\cyrs\protect\cyrt\protect\cyro + \protect\cyrp\protect\cyra\protect\cyrd\protect\cyra + \or + \protect\CYRG\protect\cyrr\protect\cyru\protect\cyrd\protect\cyrn + \protect\cyrya + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-ukrainian-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Ukrainian Module (\texttt{datetime2-ukrainian.ldf})} +%\changes{1.0}{2015-04-01}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-ukrainian.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{ukrainian}[2015/04/01 v1.0] +% \end{macrocode} +% Need to find out if XeTeX or LuaTeX are being used. +% \begin{macrocode} +\RequirePackage{ifxetex,ifluatex} +% \end{macrocode} +% XeTeX and LuaTeX natively support UTF-8, so load +% \texttt{ukrainian-utf8} if either of those engines are used +% otherwise load \texttt{ukrainian-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{ukrainian-utf8} +\else + \ifluatex + \RequireDateTimeModule{ukrainian-utf8} + \else + \RequireDateTimeModule{ukrainian-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{ukrainian} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. For +% example, if a 12 hour style similar to the "englishampm" (from the +% "english-base" module) is required. +% +% Allow the user a way of configuring the "ukrainian" and +% "ukrainian-numeric" styles. This doesn't use the package wide +% separators such as +% \cs{dtm@datetimesep} in case other date formats are also required. +%\begin{macro}{\DTMukrainiandaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMukrainiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainianmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMukrainianmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainiandatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMukrainiandatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainiantimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMukrainiantimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainiandatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMukrainiandatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMukrainiantimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMukrainiantimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{ukrainian}{daymonthsep}{\renewcommand*{\DTMukrainiandaymonthsep}{#1}} +\DTMdefkey{ukrainian}{monthyearsep}{\renewcommand*{\DTMukrainianmonthyearsep}{#1}} +\DTMdefkey{ukrainian}{datetimesep}{\renewcommand*{\DTMukrainiandatetimesep}{#1}} +\DTMdefkey{ukrainian}{timezonesep}{\renewcommand*{\DTMukrainiantimezonesep}{#1}} +\DTMdefkey{ukrainian}{datesep}{\renewcommand*{\DTMukrainiandatesep}{#1}} +\DTMdefkey{ukrainian}{timesep}{\renewcommand*{\DTMukrainiantimesep}{#1}} +% \end{macrocode} +% +% TODO: provide a boolean key to switch between full and abbreviated +% formats if appropriate. (I don't know how the date should be +% abbreviated.) +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{ukrainian}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{ukrainian}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{ukrainian}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{ukrainian}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{ukrainian}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{ukrainian}{showyear}{true} +% \end{macrocode} +% +% Define the "ukrainian" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {ukrainian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{ukrainian}{showdayofmonth} + {\DTMukrainianordinal{##3}\DTMukrainiandaymonthsep}% + {}% + \DTMukrainianmonthname{##2}% + \DTMifbool{ukrainian}{showyear}% + {% + \DTMukrainianmonthyearsep + \DTMukrainianyear{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{ukrainian}{showdayofmonth} + {% + \DTMukrainianordinal{##3}\DTMukrainiandaymonthsep + \DTMukrainianmonthname{##2}% + }% + {% + \DTMukrainianMonthname{##2}% + }% + \DTMifbool{ukrainian}{showyear}% + {% + \DTMukrainianmonthyearsep + \DTMukrainianyear{##1}% + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMukrainianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{ukrainian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMukrainiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMukrainiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMukrainiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMukrainiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMukrainiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {ukrainian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{ukrainian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMukrainiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{ukrainian}{showyear}% + {% + \DTMukrainiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMukrainiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMukrainiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMukrainianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{ukrainian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMukrainiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMukrainiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMukrainiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMukrainianzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. These may need translating (in which case the definitions +% might need to be moved to the \texttt{utf8} and \texttt{ascii} ldf +% files). +% \begin{macrocode} +\newcommand*{\DTMukrainianzonemaps}{% + \DTMdefzonemap{02}{00}{EET}% + \DTMdefzonemap{03}{00}{EEST}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{ukrainian}} +{\DTMsetstyle{ukrainian-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateukrainian} (or \cs{date}\meta{dialect}) to prevent +% \sty{babel} from resetting \cs{today}. (For this to work, +% \sty{babel} must already have been loaded if it's required.) +% \begin{macrocode} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateukrainian + {% do nothing + }% + {% + \def\dateukrainian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{ukrainian}}% + {\DTMsetstyle{ukrainian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{ukrainian}}% + {\DTMsetstyle{ukrainian-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-ukrainian.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.ins b/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.ins new file mode 100644 index 00000000000..ebd784cd95c --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-ukrainian/datetime2-ukrainian.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-ukrainian.dtx + Copyright 2015 Nicola Talbot + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license of (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `inactive'. + + This work consists of the files datetime2-ukrainian.dtx and + datetime2-ukrainian.ins and the derived files + datetime2-ukrainian-utf8.ldf, datetime2-ukrainian-ascii.ldf and + datetime2-ukrainian.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-ukrainian-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-ukrainian.dtx}{datetime2-ukrainian-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-ukrainian-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-ukrainian.dtx}{datetime2-ukrainian-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-ukrainian.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-ukrainian.dtx}{datetime2-ukrainian.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-usorbian/datetime2-usorbian.dtx b/Master/texmf-dist/source/latex/datetime2-usorbian/datetime2-usorbian.dtx new file mode 100644 index 00000000000..8f31498f592 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-usorbian/datetime2-usorbian.dtx @@ -0,0 +1,792 @@ +%\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> +%\fi +% \iffalse +% Doc-Source file to use with LaTeX2e +% Copyright (C) 2015 Nicola Talbot, all rights reserved. +% (New maintainer add relevant lines here.) +% \fi +% \iffalse +%<*driver> +\documentclass{ltxdoc} + +\usepackage{alltt} +\usepackage{graphicx} +\usepackage{fontspec} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Upper Sorbian Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{395} + +\renewcommand*{\usage}[1]{\hyperpage{#1}} +\renewcommand*{\main}[1]{\hyperpage{#1}} +\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}} +\setcounter{IndexColumns}{2} + +\newcommand*{\sty}[1]{\textsf{#1}} +\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}} + +\RecordChanges +\PageIndex +\CodelineNumbered + +\begin{document} +\DocInput{datetime2-usorbian.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Upper Sorbian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-04-01 (v1.0)} +%\maketitle +% +%This module is currently unmaintained and may be subject to change. +%If you want to volunteer to take over maintanance, contact me at +%\url{http://www.dickimaw-books.com/contact.html} +% +%\begin{abstract} +%This is the Upper Sorbian language module for the \sty{datetime2} +%package. If you want to use the settings in this module you must +%install it in addition to installing \sty{datetime2}. If you use +%\sty{babel} or \sty{polyglossia}, you will need this module to +%prevent them from redefining \cs{today}. The \sty{datetime2} +% \opt{useregional} setting must be set to "text" or "numeric" +% for the language styles to be set. +% Alternatively, you can set the style in the document using +% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} +% depending on the value of the \opt{useregional} setting. +%\end{abstract} +% +%I've copied the date style from \texttt{babel-usorbian}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Upper Sorbian. +%In particular, I don't know if the "usorbian" time style is +%correct. Currently this just uses the "default" time style. Please +%be aware that this may change. Whoever takes over maintanance +%of this module may can change it as appropriate. +% +%The new maintainer should add the line: +%\begin{verbatim} +% The Current Maintainer of this work is Name. +%\end{verbatim} +%to the preamble part in \texttt{datetime2-usorbian.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-usorbian-utf8.ldf> +% \end{macrocode} +%\fi +%\subsection{UTF-8} +%This file contains the settings that use UTF-8 characters. This +%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure +%your text editor is set to UTF-8 if you want to view this code. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{usorbian-utf8}[2015/04/01 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMusorbianordinal} +% \begin{macrocode} +\newcommand*{\DTMusorbianordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMusorbiannewmonthname} +% Upper Sorbian month names. +% \begin{macrocode} +\newcommand*{\DTMusorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + měrca% + \or + apryla% + \or + meje% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbiannewMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMusorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + Měrca% + \or + Apryla% + \or + Meje% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbianoldmonthname} +% Upper Sorbian (old) month names. +% \begin{macrocode} +\newcommand*{\DTMusorbianoldmonthname}[1]{% + \ifcase#1 + \or + wulkeho róžka% + \or + małeho róžka% + \or + nalětnika% + \or + jutrownika% + \or + róžownika% + \or + smažnika% + \or + pražnika% + \or + žnjenca% + \or + požnjenca% + \or + winowca% + \or + nazymnika% + \or + hodownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbianoldMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMusorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wulkeho róžka% + \or + Małeho róžka% + \or + Nalětnika% + \or + Jutrownika% + \or + Róžownika% + \or + Smažnika% + \or + Pražnika% + \or + Žnjenca% + \or + Požnjenca% + \or + Winowca% + \or + Nazymnika% + \or + Hodownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-usorbian-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-usorbian-ascii.ldf> +% \end{macrocode} +%\fi +%\subsection{ASCII} +%This file contains the settings that use \LaTeX\ commands for +%non-ASCII characters. This should be input if neither XeLaTeX nor +%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with +%"utf8", this file should still be used not the +%\texttt{datetime2-usorbian-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-04-01}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{usorbian-ascii}[2015/04/01 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMusorbianordinal} +% \begin{macrocode} +\newcommand*{\DTMusorbianordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbiannewmonthname} +% Upper Sorbian month names. +% \begin{macrocode} +\newcommand*{\DTMusorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + m\protect\v erca% + \or + apryla% + \or + meje% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbiannewMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMusorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + M\protect\v erca% + \or + Apryla% + \or + Meje% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbianoldmonthname} +% Upper Sorbian (old) month names. +% \begin{macrocode} +\newcommand*{\DTMusorbianoldmonthname}[1]{% + \ifcase#1 + \or + wulkeho r\protect\'o\protect\v zka% + \or + ma\protect\l eho r\protect\'o\protect\v zka% + \or + nal\protect\v etnika% + \or + jutrownika% + \or + r\protect\'o\protect\v zownika% + \or + sma\protect\v znika% + \or + pra\protect\v znika% + \or + \protect\v znjenca% + \or + po\protect\v znjenca% + \or + winowca% + \or + nazymnika% + \or + hodownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbianoldMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMusorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wulkeho r\protect\'o\protect\v zka% + \or + Ma\protect\l eho r\protect\'o\protect\v zka% + \or + Nal\protect\v etnika% + \or + Jutrownika% + \or + R\protect\'o\protect\v zownika% + \or + Sma\protect\v znika% + \or + Pra\protect\v znika% + \or + \protect\v Znjenca% + \or + Po\protect\v znjenca% + \or + Winowca% + \or + Nazymnika% + \or + Hodownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-usorbian-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Upper Sorbian Module (\texttt{datetime2-usorbian.ldf})} +%\changes{1.0}{2015-04-01}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-usorbian.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{usorbian}[2015/04/01 v1.0] +% \end{macrocode} +% Need to find out if XeTeX or LuaTeX are being used. +% \begin{macrocode} +\RequirePackage{ifxetex,ifluatex} +% \end{macrocode} +% XeTeX and LuaTeX natively support UTF-8, so load +% \texttt{usorbian-utf8} if either of those engines are used +% otherwise load \texttt{usorbian-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{usorbian-utf8} +\else + \ifluatex + \RequireDateTimeModule{usorbian-utf8} + \else + \RequireDateTimeModule{usorbian-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{usorbian} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. For +% example, if a 12 hour style similar to the "englishampm" (from the +% "english-base" module) is required. +% +% Allow the user a way of configuring the "usorbian" and +% "usorbian-numeric" styles. This doesn't use the package wide +% separators such as +% \cs{dtm@datetimesep} in case other date formats are also required. +%\begin{macro}{\DTMusorbiandaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMusorbiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbianmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMusorbianmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbiandatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMusorbiandatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbiantimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMusorbiantimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbiandatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMusorbiandatesep}{/} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMusorbiantimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMusorbiantimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{usorbian}{daymonthsep}{\renewcommand*{\DTMusorbiandaymonthsep}{#1}} +\DTMdefkey{usorbian}{monthyearsep}{\renewcommand*{\DTMusorbianmonthyearsep}{#1}} +\DTMdefkey{usorbian}{datetimesep}{\renewcommand*{\DTMusorbiandatetimesep}{#1}} +\DTMdefkey{usorbian}{timezonesep}{\renewcommand*{\DTMusorbiantimezonesep}{#1}} +\DTMdefkey{usorbian}{datesep}{\renewcommand*{\DTMusorbiandatesep}{#1}} +\DTMdefkey{usorbian}{timesep}{\renewcommand*{\DTMusorbiantimesep}{#1}} +% \end{macrocode} +% +%\begin{macro}{\DTMusorbianmonthname} +% Provide a way to switch between old and new month names +% \begin{macrocode} +\newcommand*\DTMusorbianmonthname{\DTMusorbiannewmonthname} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\DTMusorbianMonthname} +% Provide a way to switch between old and new month names +% \begin{macrocode} +\newcommand*\DTMusorbianMonthname{\DTMusorbiannewMonthname} +% \end{macrocode} +%\end{macro} +% Define a key to easily switch: +% \begin{macrocode} +\DTMdefchoicekey{usorbian}{style}[\val\nr]{old,new}{% + \ifcase\nr\relax + \renewcommand*\DTMusorbianmonthname{\DTMusorbianoldmonthname}% + \renewcommand*\DTMusorbianMonthname{\DTMusorbianoldMonthname}% + \or + \renewcommand*\DTMusorbianmonthname{\DTMusorbiannewmonthname}% + \renewcommand*\DTMusorbianMonthname{\DTMusorbiannewMonthname}% + \fi +} +% \end{macrocode} +% +% TODO: provide a boolean key to switch between full and abbreviated +% formats if appropriate. (I don't know how the date should be +% abbreviated.) +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{usorbian}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{usorbian}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{usorbian}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{usorbian}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{usorbian}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{usorbian}{showyear}{true} +% \end{macrocode} +% +% Define the "usorbian" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {usorbian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{usorbian}{showdayofmonth} + {\DTMusorbianordinal{##3}\DTMusorbiandaymonthsep}% + {}% + \DTMusorbianmonthname{##2}% + \DTMifbool{usorbian}{showyear}% + {% + \DTMusorbianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{usorbian}{showdayofmonth} + {% + \DTMusorbianordinal{##3}\DTMusorbiandaymonthsep + \DTMusorbianmonthname{##2}% + }% + {% + \DTMusorbianMonthname{##2}% + }% + \DTMifbool{usorbian}{showyear}% + {% + \DTMusorbianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMusorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{usorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMusorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMusorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMusorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMusorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMusorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {usorbian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{usorbian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMusorbiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{usorbian}{showyear}% + {% + \DTMusorbiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMusorbiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMusorbiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMusorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{usorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMusorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMusorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMusorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMusorbianzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. +% \begin{macrocode} +\newcommand*{\DTMusorbianzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{usorbian}} +{\DTMsetstyle{usorbian-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateusorbian} (or \cs{date}\meta{dialect}) to prevent +% \sty{babel} from resetting \cs{today}. (For this to work, +% \sty{babel} must already have been loaded if it's required.) +% \begin{macrocode} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateusorbian + {% do nothing + }% + {% + \def\dateusorbian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{usorbian}}% + {\DTMsetstyle{usorbian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{usorbian}}% + {\DTMsetstyle{usorbian-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-usorbian.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-usorbian/datetime2-usorbian.ins b/Master/texmf-dist/source/latex/datetime2-usorbian/datetime2-usorbian.ins new file mode 100644 index 00000000000..1f34681fd93 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-usorbian/datetime2-usorbian.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-usorbian.dtx + Copyright 2015 Nicola Talbot + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license of (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `inactive'. + + This work consists of the files datetime2-usorbian.dtx and + datetime2-usorbian.ins and the derived files + datetime2-usorbian-utf8.ldf, datetime2-usorbian-ascii.ldf and + datetime2-usorbian.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-usorbian-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-usorbian.dtx}{datetime2-usorbian-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-usorbian-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-usorbian.dtx}{datetime2-usorbian-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-usorbian.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-usorbian.dtx}{datetime2-usorbian.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak-ascii.ldf new file mode 100644 index 00000000000..d4eaa29275a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak-ascii.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-slovak-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-slovak.dtx (with options: `datetime2-slovak-ascii.ldf,package') +%% +%% datetime2-slovak.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-slovak.dtx and +%% datetime2-slovak.ins and the derived files +%% datetime2-slovak-utf8.ldf, datetime2-slovak-ascii.ldf and +%% datetime2-slovak.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{slovak-ascii}[2015/04/01 v1.0] +\newcommand*{\DTMslovakordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMslovakmonthname}[1]{% + \ifcase#1 + \or + janu\protect\'ara% + \or + febru\protect\'ara% + \or + marca% + \or + apr\protect\'{\protect\i}la% + \or + m\protect\'aja% + \or + j\protect\'una% + \or + j\protect\'ula% + \or + augusta% + \or + septembra% + \or + okt\protect\'obra% + \or + novembra% + \or + decembra% + \fi +} +\newcommand*{\DTMslovakMonthname}[1]{% + \ifcase#1 + \or + Janu\protect\'ara% + \or + Febru\protect\'ara% + \or + Marca% + \or + Apr\protect\'{\protect\i}la% + \or + M\protect\'aja% + \or + J\protect\'una% + \or + J\protect\'ula% + \or + Augusta% + \or + Septembra% + \or + Okt\protect\'obra% + \or + Novembra% + \or + Decembra% + \fi +} +\endinput +%% +%% End of file `datetime2-slovak-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak-utf8.ldf new file mode 100644 index 00000000000..6733bbd6ac4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak-utf8.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-slovak-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-slovak.dtx (with options: `datetime2-slovak-utf8.ldf,package') +%% +%% datetime2-slovak.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-slovak.dtx and +%% datetime2-slovak.ins and the derived files +%% datetime2-slovak-utf8.ldf, datetime2-slovak-ascii.ldf and +%% datetime2-slovak.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{slovak-utf8}[2015/04/01 v1.0] +\newcommand*{\DTMslovakordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMslovakmonthname}[1]{% + \ifcase#1 + \or + januára% + \or + februára% + \or + marca% + \or + apríla% + \or + mája% + \or + júna% + \or + júla% + \or + augusta% + \or + septembra% + \or + októbra% + \or + novembra% + \or + decembra% + \fi +} +\newcommand*{\DTMslovakMonthname}[1]{% + \ifcase#1 + \or + Januára% + \or + Februára% + \or + Marca% + \or + Apríla% + \or + Mája% + \or + Júna% + \or + Júla% + \or + Augusta% + \or + Septembra% + \or + Októbra% + \or + Novembra% + \or + Decembra% + \fi +} +\endinput +%% +%% End of file `datetime2-slovak-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak.ldf b/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak.ldf new file mode 100644 index 00000000000..526d472048e --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-slovak/datetime2-slovak.ldf @@ -0,0 +1,233 @@ +%% +%% This is file `datetime2-slovak.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-slovak.dtx (with options: `datetime2-slovak.ldf,package') +%% +%% datetime2-slovak.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-slovak.dtx and +%% datetime2-slovak.ins and the derived files +%% datetime2-slovak-utf8.ldf, datetime2-slovak-ascii.ldf and +%% datetime2-slovak.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{slovak}[2015/04/01 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{slovak-utf8} +\else + \ifluatex + \RequireDateTimeModule{slovak-utf8} + \else + \RequireDateTimeModule{slovak-ascii} + \fi +\fi +\newcommand*{\DTMslovakdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMslovakmonthyearsep}{\space} +\newcommand*{\DTMslovakdatetimesep}{\space} +\newcommand*{\DTMslovaktimezonesep}{\space} +\newcommand*{\DTMslovakdatesep}{.} +\newcommand*{\DTMslovaktimesep}{:} +\DTMdefkey{slovak}{daymonthsep}{\renewcommand*{\DTMslovakdaymonthsep}{#1}} +\DTMdefkey{slovak}{monthyearsep}{\renewcommand*{\DTMslovakmonthyearsep}{#1}} +\DTMdefkey{slovak}{datetimesep}{\renewcommand*{\DTMslovakdatetimesep}{#1}} +\DTMdefkey{slovak}{timezonesep}{\renewcommand*{\DTMslovaktimezonesep}{#1}} +\DTMdefkey{slovak}{datesep}{\renewcommand*{\DTMslovakdatesep}{#1}} +\DTMdefkey{slovak}{timesep}{\renewcommand*{\DTMslovaktimesep}{#1}} +\DTMdefboolkey{slovak}{mapzone}[true]{} +\DTMsetbool{slovak}{mapzone}{true} +\DTMdefboolkey{slovak}{showdayofmonth}[true]{} +\DTMsetbool{slovak}{showdayofmonth}{true} +\DTMdefboolkey{slovak}{showyear}[true]{} +\DTMsetbool{slovak}{showyear}{true} +\DTMnewstyle + {slovak}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovak}{showdayofmonth} + {% + \DTMslovakordinal{##3}% + \DTMslovakdaymonthsep + }% + {}% + \DTMslovakmonthname{##2}% + \DTMifbool{slovak}{showyear}% + {% + \DTMslovakmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{slovak}{showdayofmonth} + {% + \DTMslovakordinal{##3}% + \DTMslovakdaymonthsep + \DTMslovakmonthname{##2}% + }% + {% + \DTMslovakMonthname{##2}% + }% + \DTMifbool{slovak}{showyear}% + {% + \DTMslovakmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMslovakzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovak}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovaktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovakdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovaktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMslovakdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovaktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {slovak-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovak}{showdayofmonth}% + {% + \number##3 % space intended + \DTMslovakdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{slovak}{showyear}% + {% + \DTMslovakdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMslovaktimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMslovaktimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMslovakzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovak}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovaktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovakdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovaktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMslovakzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{slovak}} +{\DTMsetstyle{slovak-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateslovak + {% do nothing + }% + {% + \def\dateslovak{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovak}}% + {\DTMsetstyle{slovak-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovak}}% + {\DTMsetstyle{slovak-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-slovak.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene-ascii.ldf new file mode 100644 index 00000000000..7668b6daba3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene-ascii.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-slovene-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-slovene.dtx (with options: `datetime2-slovene-ascii.ldf,package') +%% +%% datetime2-slovene.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-slovene.dtx and +%% datetime2-slovene.ins and the derived files +%% datetime2-slovene-utf8.ldf, datetime2-slovene-ascii.ldf and +%% datetime2-slovene.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{slovene-ascii}[2015/04/01 v1.0] +\newcommand*{\DTMsloveneordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMslovenemonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + marec% + \or + april% + \or + maj% + \or + junij% + \or + julij% + \or + avgust% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +\newcommand*{\DTMsloveneMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Marec% + \or + April% + \or + Maj% + \or + Junij% + \or + Julij% + \or + Avgust% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +\endinput +%% +%% End of file `datetime2-slovene-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene-utf8.ldf new file mode 100644 index 00000000000..1630533f310 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene-utf8.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-slovene-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-slovene.dtx (with options: `datetime2-slovene-utf8.ldf,package') +%% +%% datetime2-slovene.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-slovene.dtx and +%% datetime2-slovene.ins and the derived files +%% datetime2-slovene-utf8.ldf, datetime2-slovene-ascii.ldf and +%% datetime2-slovene.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{slovene-utf8}[2015/04/01 v1.0] +\newcommand*{\DTMsloveneordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMslovenemonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + marec% + \or + april% + \or + maj% + \or + junij% + \or + julij% + \or + avgust% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +\newcommand*{\DTMsloveneMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Marec% + \or + April% + \or + Maj% + \or + Junij% + \or + Julij% + \or + Avgust% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +\endinput +%% +%% End of file `datetime2-slovene-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene.ldf b/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene.ldf new file mode 100644 index 00000000000..7c906c77732 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-slovene/datetime2-slovene.ldf @@ -0,0 +1,233 @@ +%% +%% This is file `datetime2-slovene.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-slovene.dtx (with options: `datetime2-slovene.ldf,package') +%% +%% datetime2-slovene.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-slovene.dtx and +%% datetime2-slovene.ins and the derived files +%% datetime2-slovene-utf8.ldf, datetime2-slovene-ascii.ldf and +%% datetime2-slovene.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{slovene}[2015/04/01 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{slovene-utf8} +\else + \ifluatex + \RequireDateTimeModule{slovene-utf8} + \else + \RequireDateTimeModule{slovene-ascii} + \fi +\fi +\newcommand*{\DTMslovenedaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMslovenemonthyearsep}{\space} +\newcommand*{\DTMslovenedatetimesep}{\space} +\newcommand*{\DTMslovenetimezonesep}{\space} +\newcommand*{\DTMslovenedatesep}{.} +\newcommand*{\DTMslovenetimesep}{:} +\DTMdefkey{slovene}{daymonthsep}{\renewcommand*{\DTMslovenedaymonthsep}{#1}} +\DTMdefkey{slovene}{monthyearsep}{\renewcommand*{\DTMslovenemonthyearsep}{#1}} +\DTMdefkey{slovene}{datetimesep}{\renewcommand*{\DTMslovenedatetimesep}{#1}} +\DTMdefkey{slovene}{timezonesep}{\renewcommand*{\DTMslovenetimezonesep}{#1}} +\DTMdefkey{slovene}{datesep}{\renewcommand*{\DTMslovenedatesep}{#1}} +\DTMdefkey{slovene}{timesep}{\renewcommand*{\DTMslovenetimesep}{#1}} +\DTMdefboolkey{slovene}{mapzone}[true]{} +\DTMsetbool{slovene}{mapzone}{true} +\DTMdefboolkey{slovene}{showdayofmonth}[true]{} +\DTMsetbool{slovene}{showdayofmonth}{true} +\DTMdefboolkey{slovene}{showyear}[true]{} +\DTMsetbool{slovene}{showyear}{true} +\DTMnewstyle + {slovene}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovene}{showdayofmonth} + {% + \DTMsloveneordinal{##3}% + \DTMslovenedaymonthsep + }% + {}% + \DTMslovenemonthname{##2}% + \DTMifbool{slovene}{showyear}% + {% + \DTMslovenemonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{slovene}{showdayofmonth} + {% + \DTMsloveneordinal{##3}% + \DTMslovenedaymonthsep + \DTMslovenemonthname{##2}% + }% + {% + \DTMsloveneMonthname{##2}% + }% + \DTMifbool{slovene}{showyear}% + {% + \DTMslovenemonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMslovenezonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovene}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovenetimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovenedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovenetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMslovenedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovenetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {slovene-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{slovene}{showdayofmonth}% + {% + \number##3 % space intended + \DTMslovenedatesep + }% + {}% + \number##2 % space intended + \DTMifbool{slovene}{showyear}% + {% + \DTMslovenedatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMslovenetimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMslovenetimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMslovenezonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{slovene}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMslovenetimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMslovenedatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMslovenetimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMslovenezonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{slovene}} +{\DTMsetstyle{slovene-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateslovene + {% do nothing + }% + {% + \def\dateslovene{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovene}}% + {\DTMsetstyle{slovene-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{slovene}}% + {\DTMsetstyle{slovene-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-slovene.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish-ascii.ldf new file mode 100644 index 00000000000..2ad208e2ca5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish-ascii.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-swedish-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-swedish.dtx (with options: `datetime2-swedish-ascii.ldf,package') +%% +%% datetime2-swedish.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-swedish.dtx and +%% datetime2-swedish.ins and the derived files +%% datetime2-swedish-utf8.ldf, datetime2-swedish-ascii.ldf and +%% datetime2-swedish.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{swedish-ascii}[2015/04/01 v1.0] +\newcommand*{\DTMswedishordinal}[1]{% + \number#1 +} +\newcommand*{\DTMswedishmonthname}[1]{% + \ifcase#1 + \or + januari% + \or + februari% + \or + mars% + \or + april% + \or + maj% + \or + juni% + \or + juli% + \or + augusti% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +\newcommand*{\DTMswedishMonthname}[1]{% + \ifcase#1 + \or + Januari% + \or + Februari% + \or + Mars% + \or + April% + \or + Maj% + \or + Juni% + \or + Juli% + \or + Augusti% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +\newcommand*{\DTMswedishweekdayname}[1]{% + \ifcase#1 + m\protect\aa ndag% + \or + tisdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + l\protect\"ordag% + \or + s\protect\"ondag% + \fi +} +\newcommand*{\DTMswedishWeekdayname}[1]{% + \ifcase#1 + M\protect\aa ndag% + \or + Tisdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + L\protect\"ordag% + \or + S\protect\"ondag% + \fi +} +\endinput +%% +%% End of file `datetime2-swedish-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish-utf8.ldf new file mode 100644 index 00000000000..2c1a1af9aad --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish-utf8.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-swedish-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-swedish.dtx (with options: `datetime2-swedish-utf8.ldf,package') +%% +%% datetime2-swedish.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-swedish.dtx and +%% datetime2-swedish.ins and the derived files +%% datetime2-swedish-utf8.ldf, datetime2-swedish-ascii.ldf and +%% datetime2-swedish.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{swedish-utf8}[2015/04/01 v1.0] +\newcommand*{\DTMswedishordinal}[1]{% + \number#1 +} +\newcommand*{\DTMswedishmonthname}[1]{% + \ifcase#1 + \or + januari% + \or + februari% + \or + mars% + \or + april% + \or + maj% + \or + juni% + \or + juli% + \or + augusti% + \or + september% + \or + oktober% + \or + november% + \or + december% + \fi +} +\newcommand*{\DTMswedishMonthname}[1]{% + \ifcase#1 + \or + Januari% + \or + Februari% + \or + Mars% + \or + April% + \or + Maj% + \or + Juni% + \or + Juli% + \or + Augusti% + \or + September% + \or + Oktober% + \or + November% + \or + December% + \fi +} +\newcommand*{\DTMswedishweekdayname}[1]{% + \ifcase#1 + måndag% + \or + tisdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + lördag% + \or + söndag% + \fi +} +\newcommand*{\DTMswedishWeekdayname}[1]{% + \ifcase#1 + Måndag% + \or + Tisdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + Lördag% + \or + Söndag% + \fi +} +\endinput +%% +%% End of file `datetime2-swedish-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish.ldf b/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish.ldf new file mode 100644 index 00000000000..ffe897c74c5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish.ldf @@ -0,0 +1,233 @@ +%% +%% This is file `datetime2-swedish.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-swedish.dtx (with options: `datetime2-swedish.ldf,package') +%% +%% datetime2-swedish.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-swedish.dtx and +%% datetime2-swedish.ins and the derived files +%% datetime2-swedish-utf8.ldf, datetime2-swedish-ascii.ldf and +%% datetime2-swedish.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{swedish}[2015/04/01 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{swedish-utf8} +\else + \ifluatex + \RequireDateTimeModule{swedish-utf8} + \else + \RequireDateTimeModule{swedish-ascii} + \fi +\fi +\newcommand*{\DTMswedishdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMswedishmonthyearsep}{\space} +\newcommand*{\DTMswedishdatetimesep}{\space} +\newcommand*{\DTMswedishtimezonesep}{\space} +\newcommand*{\DTMswedishdatesep}{.} +\newcommand*{\DTMswedishtimesep}{:} +\DTMdefkey{swedish}{daymonthsep}{\renewcommand*{\DTMswedishdaymonthsep}{#1}} +\DTMdefkey{swedish}{monthyearsep}{\renewcommand*{\DTMswedishmonthyearsep}{#1}} +\DTMdefkey{swedish}{datetimesep}{\renewcommand*{\DTMswedishdatetimesep}{#1}} +\DTMdefkey{swedish}{timezonesep}{\renewcommand*{\DTMswedishtimezonesep}{#1}} +\DTMdefkey{swedish}{datesep}{\renewcommand*{\DTMswedishdatesep}{#1}} +\DTMdefkey{swedish}{timesep}{\renewcommand*{\DTMswedishtimesep}{#1}} +\DTMdefboolkey{swedish}{mapzone}[true]{} +\DTMsetbool{swedish}{mapzone}{true} +\DTMdefboolkey{swedish}{showdayofmonth}[true]{} +\DTMsetbool{swedish}{showdayofmonth}{true} +\DTMdefboolkey{swedish}{showyear}[true]{} +\DTMsetbool{swedish}{showyear}{true} +\DTMnewstyle + {swedish}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{swedish}{showdayofmonth} + {% + \DTMswedishordinal{##3}% + \DTMswedishdaymonthsep + }% + {}% + \DTMswedishmonthname{##2}% + \DTMifbool{swedish}{showyear}% + {% + \DTMswedishmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{swedish}{showdayofmonth} + {% + \DTMswedishordinal{##3}% + \DTMswedishdaymonthsep + \DTMswedishmonthname{##2}% + }% + {% + \DTMswedishMonthname{##2}% + }% + \DTMifbool{swedish}{showyear}% + {% + \DTMswedishmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMswedishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{swedish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMswedishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMswedishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMswedishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMswedishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMswedishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {swedish-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{swedish}{showdayofmonth}% + {% + \number##3 % space intended + \DTMswedishdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{swedish}{showyear}% + {% + \DTMswedishdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMswedishtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMswedishtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMswedishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{swedish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMswedishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMswedishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMswedishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMswedishzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{swedish}} +{\DTMsetstyle{swedish-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateswedish + {% do nothing + }% + {% + \def\dateswedish{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{swedish}}% + {\DTMsetstyle{swedish-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{swedish}}% + {\DTMsetstyle{swedish-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-swedish.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish-ascii.ldf new file mode 100644 index 00000000000..bdf8fc64688 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish-ascii.ldf @@ -0,0 +1,76 @@ +%% +%% This is file `datetime2-turkish-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-turkish.dtx (with options: `datetime2-turkish-ascii.ldf,package') +%% +%% datetime2-turkish.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-turkish.dtx and +%% datetime2-turkish.ins and the derived files +%% datetime2-turkish-utf8.ldf, datetime2-turkish-ascii.ldf and +%% datetime2-turkish.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{turkish-ascii}[2015/04/01 v1.0] +\newcommand*{\DTMturkishordinal}[1]{% + \number#1 +} +\newcommand*{\DTMturkishmonthname}[1]{% + \ifcase#1 + \or + Ocak% + \or + \protect\c Subat% + \or + Mart% + \or + Nisan% + \or + May\protect\i s% + \or + Haziran% + \or + Temmuz% + \or + A\protect\u gustos% + \or + Eyl\protect\"ul% + \or + Ekim% + \or + Kas\protect\i m% + \or + Aral\protect\i k% + \fi +} +\endinput +%% +%% End of file `datetime2-turkish-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish-utf8.ldf new file mode 100644 index 00000000000..c68b7e34a71 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish-utf8.ldf @@ -0,0 +1,76 @@ +%% +%% This is file `datetime2-turkish-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-turkish.dtx (with options: `datetime2-turkish-utf8.ldf,package') +%% +%% datetime2-turkish.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-turkish.dtx and +%% datetime2-turkish.ins and the derived files +%% datetime2-turkish-utf8.ldf, datetime2-turkish-ascii.ldf and +%% datetime2-turkish.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{turkish-utf8}[2015/04/01 v1.0] +\newcommand*{\DTMturkishordinal}[1]{% + \number#1 +} +\newcommand*{\DTMturkishmonthname}[1]{% + \ifcase#1 + \or + Ocak% + \or + Şubat% + \or + Mart% + \or + Nisan% + \or + Mayıs% + \or + Haziran% + \or + Temmuz% + \or + Ağustos% + \or + Eylül% + \or + Ekim% + \or + Kasım% + \or + Aralık% + \fi +} +\endinput +%% +%% End of file `datetime2-turkish-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish.ldf b/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish.ldf new file mode 100644 index 00000000000..984e2577298 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-turkish/datetime2-turkish.ldf @@ -0,0 +1,207 @@ +%% +%% This is file `datetime2-turkish.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-turkish.dtx (with options: `datetime2-turkish.ldf,package') +%% +%% datetime2-turkish.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-turkish.dtx and +%% datetime2-turkish.ins and the derived files +%% datetime2-turkish-utf8.ldf, datetime2-turkish-ascii.ldf and +%% datetime2-turkish.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{turkish}[2015/04/01 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{turkish-utf8} +\else + \ifluatex + \RequireDateTimeModule{turkish-utf8} + \else + \RequireDateTimeModule{turkish-ascii} + \fi +\fi +\newcommand*{\DTMturkishdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMturkishmonthyearsep}{\space} +\newcommand*{\DTMturkishdatetimesep}{\space} +\newcommand*{\DTMturkishtimezonesep}{\space} +\newcommand*{\DTMturkishdatesep}{.} +\newcommand*{\DTMturkishtimesep}{:} +\DTMdefkey{turkish}{daymonthsep}{\renewcommand*{\DTMturkishdaymonthsep}{#1}} +\DTMdefkey{turkish}{monthyearsep}{\renewcommand*{\DTMturkishmonthyearsep}{#1}} +\DTMdefkey{turkish}{datetimesep}{\renewcommand*{\DTMturkishdatetimesep}{#1}} +\DTMdefkey{turkish}{timezonesep}{\renewcommand*{\DTMturkishtimezonesep}{#1}} +\DTMdefkey{turkish}{datesep}{\renewcommand*{\DTMturkishdatesep}{#1}} +\DTMdefkey{turkish}{timesep}{\renewcommand*{\DTMturkishtimesep}{#1}} +\DTMdefboolkey{turkish}{mapzone}[true]{} +\DTMsetbool{turkish}{mapzone}{true} +\DTMdefboolkey{turkish}{showdayofmonth}[true]{} +\DTMsetbool{turkish}{showdayofmonth}{true} +\DTMdefboolkey{turkish}{showyear}[true]{} +\DTMsetbool{turkish}{showyear}{true} +\DTMnewstyle + {turkish}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{turkish}{showdayofmonth} + {% + \DTMturkishordinal{##3}% + \DTMturkishdaymonthsep + }% + {}% + \DTMturkishmonthname{##2}% + \DTMifbool{turkish}{showyear}% + {% + \DTMturkishmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMturkishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{turkish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMturkishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMturkishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMturkishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +\DTMnewstyle + {turkish-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{turkish}{showdayofmonth}% + {% + \number##3 % space intended + \DTMturkishdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{turkish}{showyear}% + {% + \DTMturkishdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMturkishtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMturkishtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMturkishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{turkish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMturkishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMturkishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMturkishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMturkishzonemaps}{% + \DTMdefzonemap{02}{00}{EET}% + \DTMdefzonemap{03}{00}{EEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{turkish}} +{\DTMsetstyle{turkish-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateturkish + {% do nothing + }% + {% + \def\dateturkish{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{turkish}}% + {\DTMsetstyle{turkish-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{turkish}}% + {\DTMsetstyle{turkish-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-turkish.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian-ascii.ldf new file mode 100644 index 00000000000..a48c7bcdaf5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian-ascii.ldf @@ -0,0 +1,128 @@ +%% +%% This is file `datetime2-ukrainian-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-ukrainian.dtx (with options: `datetime2-ukrainian-ascii.ldf,package') +%% +%% datetime2-ukrainian.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-ukrainian.dtx and +%% datetime2-ukrainian.ins and the derived files +%% datetime2-ukrainian-utf8.ldf, datetime2-ukrainian-ascii.ldf and +%% datetime2-ukrainian.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{ukrainian-ascii}[2015/04/01 v1.0] +\newcommand*{\DTMukrainianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMukrainianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}\protect\cyrr.% +} +\newcommand*{\DTMukrainianmonthname}[1]{% + \ifcase#1 + \or + \protect\cyrs\protect\cyrii\protect\cyrch\protect\cyrn\protect\cyrya + \or + \protect\cyrl\protect\cyryu\protect\cyrt\protect\cyro\protect\cyrg + \protect\cyro + \or + \protect\cyrb\protect\cyre\protect\cyrr\protect\cyre\protect\cyrz + \protect\cyrn\protect\cyrya + \or + \protect\cyrk\protect\cyrv\protect\cyrii\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\cyrt\protect\cyrr\protect\cyra\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\cyrch\protect\cyre\protect\cyrr\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\cyrl\protect\cyri\protect\cyrp\protect\cyrn\protect\cyrya + \or + \protect\cyrs\protect\cyre\protect\cyrr\protect\cyrp\protect\cyrn + \protect\cyrya + \or + \protect\cyrv\protect\cyre\protect\cyrr\protect\cyre\protect\cyrs + \protect\cyrn\protect\cyrya + \or + \protect\cyrzh\protect\cyro\protect\cyrv\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\cyrl\protect\cyri\protect\cyrs\protect\cyrt\protect\cyro + \protect\cyrp\protect\cyra\protect\cyrd\protect\cyra + \or + \protect\cyrg\protect\cyrr\protect\cyru\protect\cyrd\protect\cyrn + \protect\cyrya + \fi +} +\newcommand*{\DTMukrainianMonthname}[1]{% + \ifcase#1 + \or + \protect\CYRS\protect\cyrii\protect\cyrch\protect\cyrn\protect\cyrya + \or + \protect\CYRL\protect\cyryu\protect\cyrt\protect\cyro\protect\cyrg + \protect\cyro + \or + \protect\CYRB\protect\cyre\protect\cyrr\protect\cyre\protect\cyrz + \protect\cyrn\protect\cyrya + \or + \protect\CYRK\protect\cyrv\protect\cyrii\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\CYRT\protect\cyrr\protect\cyra\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\CYRCH\protect\cyre\protect\cyrr\protect\cyrv\protect\cyrn + \protect\cyrya + \or + \protect\CYRL\protect\cyri\protect\cyrp\protect\cyrn\protect\cyrya + \or + \protect\CYRS\protect\cyre\protect\cyrr\protect\cyrp\protect\cyrn + \protect\cyrya + \or + \protect\CYRV\protect\cyre\protect\cyrr\protect\cyre\protect\cyrs + \protect\cyrn\protect\cyrya + \or + \protect\CYRZH\protect\cyro\protect\cyrv\protect\cyrt\protect\cyrn + \protect\cyrya + \or + \protect\CYRL\protect\cyri\protect\cyrs\protect\cyrt\protect\cyro + \protect\cyrp\protect\cyra\protect\cyrd\protect\cyra + \or + \protect\CYRG\protect\cyrr\protect\cyru\protect\cyrd\protect\cyrn + \protect\cyrya + \fi +} +\endinput +%% +%% End of file `datetime2-ukrainian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian-utf8.ldf new file mode 100644 index 00000000000..b2f38c039b9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian-utf8.ldf @@ -0,0 +1,108 @@ +%% +%% This is file `datetime2-ukrainian-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-ukrainian.dtx (with options: `datetime2-ukrainian-utf8.ldf,package') +%% +%% datetime2-ukrainian.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-ukrainian.dtx and +%% datetime2-ukrainian.ins and the derived files +%% datetime2-ukrainian-utf8.ldf, datetime2-ukrainian-ascii.ldf and +%% datetime2-ukrainian.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{ukrainian-utf8}[2015/04/01 v1.0] +\newcommand*{\DTMukrainianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMukrainianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}р.% +} +\newcommand*{\DTMukrainianmonthname}[1]{% + \ifcase#1 + \or + січня% + \or + лютого% + \or + березня% + \or + квітня% + \or + травня% + \or + червня% + \or + липня% + \or + серпня% + \or + вересня% + \or + жовтня% + \or + листопада% + \or + грудня% + \fi +} +\newcommand*{\DTMukrainianMonthname}[1]{% + \ifcase#1 + \or + Січня% + \or + Лютого% + \or + Березня% + \or + Квітня% + \or + Травня% + \or + Червня% + \or + Липня% + \or + Серпня% + \or + Вересня% + \or + Жовтня% + \or + Листопада% + \or + Грудня% + \fi +} +\endinput +%% +%% End of file `datetime2-ukrainian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian.ldf b/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian.ldf new file mode 100644 index 00000000000..05564019e9b --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-ukrainian/datetime2-ukrainian.ldf @@ -0,0 +1,229 @@ +%% +%% This is file `datetime2-ukrainian.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-ukrainian.dtx (with options: `datetime2-ukrainian.ldf,package') +%% +%% datetime2-ukrainian.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-ukrainian.dtx and +%% datetime2-ukrainian.ins and the derived files +%% datetime2-ukrainian-utf8.ldf, datetime2-ukrainian-ascii.ldf and +%% datetime2-ukrainian.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{ukrainian}[2015/04/01 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{ukrainian-utf8} +\else + \ifluatex + \RequireDateTimeModule{ukrainian-utf8} + \else + \RequireDateTimeModule{ukrainian-ascii} + \fi +\fi +\newcommand*{\DTMukrainiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMukrainianmonthyearsep}{\space} +\newcommand*{\DTMukrainiandatetimesep}{\space} +\newcommand*{\DTMukrainiantimezonesep}{\space} +\newcommand*{\DTMukrainiandatesep}{.} +\newcommand*{\DTMukrainiantimesep}{:} +\DTMdefkey{ukrainian}{daymonthsep}{\renewcommand*{\DTMukrainiandaymonthsep}{#1}} +\DTMdefkey{ukrainian}{monthyearsep}{\renewcommand*{\DTMukrainianmonthyearsep}{#1}} +\DTMdefkey{ukrainian}{datetimesep}{\renewcommand*{\DTMukrainiandatetimesep}{#1}} +\DTMdefkey{ukrainian}{timezonesep}{\renewcommand*{\DTMukrainiantimezonesep}{#1}} +\DTMdefkey{ukrainian}{datesep}{\renewcommand*{\DTMukrainiandatesep}{#1}} +\DTMdefkey{ukrainian}{timesep}{\renewcommand*{\DTMukrainiantimesep}{#1}} +\DTMdefboolkey{ukrainian}{mapzone}[true]{} +\DTMsetbool{ukrainian}{mapzone}{true} +\DTMdefboolkey{ukrainian}{showdayofmonth}[true]{} +\DTMsetbool{ukrainian}{showdayofmonth}{true} +\DTMdefboolkey{ukrainian}{showyear}[true]{} +\DTMsetbool{ukrainian}{showyear}{true} +\DTMnewstyle + {ukrainian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{ukrainian}{showdayofmonth} + {\DTMukrainianordinal{##3}\DTMukrainiandaymonthsep}% + {}% + \DTMukrainianmonthname{##2}% + \DTMifbool{ukrainian}{showyear}% + {% + \DTMukrainianmonthyearsep + \DTMukrainianyear{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{ukrainian}{showdayofmonth} + {% + \DTMukrainianordinal{##3}\DTMukrainiandaymonthsep + \DTMukrainianmonthname{##2}% + }% + {% + \DTMukrainianMonthname{##2}% + }% + \DTMifbool{ukrainian}{showyear}% + {% + \DTMukrainianmonthyearsep + \DTMukrainianyear{##1}% + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMukrainianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{ukrainian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMukrainiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMukrainiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMukrainiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMukrainiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMukrainiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {ukrainian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{ukrainian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMukrainiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{ukrainian}{showyear}% + {% + \DTMukrainiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMukrainiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMukrainiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMukrainianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{ukrainian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMukrainiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMukrainiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMukrainiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMukrainianzonemaps}{% + \DTMdefzonemap{02}{00}{EET}% + \DTMdefzonemap{03}{00}{EEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{ukrainian}} +{\DTMsetstyle{ukrainian-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateukrainian + {% do nothing + }% + {% + \def\dateukrainian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{ukrainian}}% + {\DTMsetstyle{ukrainian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{ukrainian}}% + {\DTMsetstyle{ukrainian-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-ukrainian.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian-ascii.ldf new file mode 100644 index 00000000000..65ed9c85e5f --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian-ascii.ldf @@ -0,0 +1,160 @@ +%% +%% This is file `datetime2-usorbian-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-usorbian.dtx (with options: `datetime2-usorbian-ascii.ldf,package') +%% +%% datetime2-usorbian.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-usorbian.dtx and +%% datetime2-usorbian.ins and the derived files +%% datetime2-usorbian-utf8.ldf, datetime2-usorbian-ascii.ldf and +%% datetime2-usorbian.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{usorbian-ascii}[2015/04/01 v1.0] +\newcommand*{\DTMusorbianordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMusorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + m\protect\v erca% + \or + apryla% + \or + meje% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +\newcommand*{\DTMusorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + M\protect\v erca% + \or + Apryla% + \or + Meje% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +\newcommand*{\DTMusorbianoldmonthname}[1]{% + \ifcase#1 + \or + wulkeho r\protect\'o\protect\v zka% + \or + ma\protect\l eho r\protect\'o\protect\v zka% + \or + nal\protect\v etnika% + \or + jutrownika% + \or + r\protect\'o\protect\v zownika% + \or + sma\protect\v znika% + \or + pra\protect\v znika% + \or + \protect\v znjenca% + \or + po\protect\v znjenca% + \or + winowca% + \or + nazymnika% + \or + hodownika% + \fi +} +\newcommand*{\DTMusorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wulkeho r\protect\'o\protect\v zka% + \or + Ma\protect\l eho r\protect\'o\protect\v zka% + \or + Nal\protect\v etnika% + \or + Jutrownika% + \or + R\protect\'o\protect\v zownika% + \or + Sma\protect\v znika% + \or + Pra\protect\v znika% + \or + \protect\v Znjenca% + \or + Po\protect\v znjenca% + \or + Winowca% + \or + Nazymnika% + \or + Hodownika% + \fi +} +\endinput +%% +%% End of file `datetime2-usorbian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian-utf8.ldf new file mode 100644 index 00000000000..13745703184 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian-utf8.ldf @@ -0,0 +1,160 @@ +%% +%% This is file `datetime2-usorbian-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-usorbian.dtx (with options: `datetime2-usorbian-utf8.ldf,package') +%% +%% datetime2-usorbian.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-usorbian.dtx and +%% datetime2-usorbian.ins and the derived files +%% datetime2-usorbian-utf8.ldf, datetime2-usorbian-ascii.ldf and +%% datetime2-usorbian.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{usorbian-utf8}[2015/04/01 v1.0] +\newcommand*{\DTMusorbianordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMusorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + měrca% + \or + apryla% + \or + meje% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +\newcommand*{\DTMusorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + Měrca% + \or + Apryla% + \or + Meje% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +\newcommand*{\DTMusorbianoldmonthname}[1]{% + \ifcase#1 + \or + wulkeho róžka% + \or + małeho róžka% + \or + nalětnika% + \or + jutrownika% + \or + róžownika% + \or + smažnika% + \or + pražnika% + \or + žnjenca% + \or + požnjenca% + \or + winowca% + \or + nazymnika% + \or + hodownika% + \fi +} +\newcommand*{\DTMusorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wulkeho róžka% + \or + Małeho róžka% + \or + Nalětnika% + \or + Jutrownika% + \or + Róžownika% + \or + Smažnika% + \or + Pražnika% + \or + Žnjenca% + \or + Požnjenca% + \or + Winowca% + \or + Nazymnika% + \or + Hodownika% + \fi +} +\endinput +%% +%% End of file `datetime2-usorbian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian.ldf b/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian.ldf new file mode 100644 index 00000000000..5ec478f1bde --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-usorbian/datetime2-usorbian.ldf @@ -0,0 +1,241 @@ +%% +%% This is file `datetime2-usorbian.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-usorbian.dtx (with options: `datetime2-usorbian.ldf,package') +%% +%% datetime2-usorbian.dtx +%% Copyright 2015 Nicola Talbot +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license of (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `inactive'. +%% +%% This work consists of the files datetime2-usorbian.dtx and +%% datetime2-usorbian.ins and the derived files +%% datetime2-usorbian-utf8.ldf, datetime2-usorbian-ascii.ldf and +%% datetime2-usorbian.ldf. +%% +%% \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 \~} +\ProvidesDateTimeModule{usorbian}[2015/04/01 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{usorbian-utf8} +\else + \ifluatex + \RequireDateTimeModule{usorbian-utf8} + \else + \RequireDateTimeModule{usorbian-ascii} + \fi +\fi +\newcommand*{\DTMusorbiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMusorbianmonthyearsep}{\space} +\newcommand*{\DTMusorbiandatetimesep}{\space} +\newcommand*{\DTMusorbiantimezonesep}{\space} +\newcommand*{\DTMusorbiandatesep}{/} +\newcommand*{\DTMusorbiantimesep}{:} +\DTMdefkey{usorbian}{daymonthsep}{\renewcommand*{\DTMusorbiandaymonthsep}{#1}} +\DTMdefkey{usorbian}{monthyearsep}{\renewcommand*{\DTMusorbianmonthyearsep}{#1}} +\DTMdefkey{usorbian}{datetimesep}{\renewcommand*{\DTMusorbiandatetimesep}{#1}} +\DTMdefkey{usorbian}{timezonesep}{\renewcommand*{\DTMusorbiantimezonesep}{#1}} +\DTMdefkey{usorbian}{datesep}{\renewcommand*{\DTMusorbiandatesep}{#1}} +\DTMdefkey{usorbian}{timesep}{\renewcommand*{\DTMusorbiantimesep}{#1}} +\newcommand*\DTMusorbianmonthname{\DTMusorbiannewmonthname} +\newcommand*\DTMusorbianMonthname{\DTMusorbiannewMonthname} +\DTMdefchoicekey{usorbian}{style}[\val\nr]{old,new}{% + \ifcase\nr\relax + \renewcommand*\DTMusorbianmonthname{\DTMusorbianoldmonthname}% + \renewcommand*\DTMusorbianMonthname{\DTMusorbianoldMonthname}% + \or + \renewcommand*\DTMusorbianmonthname{\DTMusorbiannewmonthname}% + \renewcommand*\DTMusorbianMonthname{\DTMusorbiannewMonthname}% + \fi +} +\DTMdefboolkey{usorbian}{mapzone}[true]{} +\DTMsetbool{usorbian}{mapzone}{true} +\DTMdefboolkey{usorbian}{showdayofmonth}[true]{} +\DTMsetbool{usorbian}{showdayofmonth}{true} +\DTMdefboolkey{usorbian}{showyear}[true]{} +\DTMsetbool{usorbian}{showyear}{true} +\DTMnewstyle + {usorbian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{usorbian}{showdayofmonth} + {\DTMusorbianordinal{##3}\DTMusorbiandaymonthsep}% + {}% + \DTMusorbianmonthname{##2}% + \DTMifbool{usorbian}{showyear}% + {% + \DTMusorbianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{usorbian}{showdayofmonth} + {% + \DTMusorbianordinal{##3}\DTMusorbiandaymonthsep + \DTMusorbianmonthname{##2}% + }% + {% + \DTMusorbianMonthname{##2}% + }% + \DTMifbool{usorbian}{showyear}% + {% + \DTMusorbianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMusorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{usorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMusorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMusorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMusorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMusorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMusorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {usorbian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{usorbian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMusorbiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{usorbian}{showyear}% + {% + \DTMusorbiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMusorbiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMusorbiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMusorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{usorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMusorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMusorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMusorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMusorbianzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{usorbian}} +{\DTMsetstyle{usorbian-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateusorbian + {% do nothing + }% + {% + \def\dateusorbian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{usorbian}}% + {\DTMsetstyle{usorbian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{usorbian}}% + {\DTMsetstyle{usorbian-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-usorbian.ldf'. diff --git a/Master/tlpkg/tlpsrc/datetime2-slovak.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-slovak.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-slovak.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-slovene.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-slovene.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-slovene.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-swedish.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-swedish.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-swedish.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-turkish.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-turkish.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-turkish.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-ukrainian.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-ukrainian.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-ukrainian.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-usorbian.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-usorbian.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-usorbian.tlpsrc |