diff options
author | Karl Berry <karl@freefriends.org> | 2015-03-31 21:57:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-03-31 21:57:53 +0000 |
commit | 8d5ac97d04669f4d0d108242397dfbf809eeb185 (patch) | |
tree | 9a2bfc751a6ce9892ff240e5904176428c63b3b9 | |
parent | dee0a84614e3bfa877b2803b5743a5a2fc15609e (diff) |
datetime2-* (31mar15)
git-svn-id: svn://tug.org/texlive/trunk@36692 c570f23f-e606-0410-a88d-b1316a301751
94 files changed, 14019 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/datetime2-galician/README b/Master/texmf-dist/doc/latex/datetime2-galician/README new file mode 100644 index 00000000000..e32e9547714 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-galician/README @@ -0,0 +1,57 @@ +Galician 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[galician]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[galician]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{galician} +\usepackage[galician]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-galician.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-galician/ + +Documentation: + +xelatex datetime2-galician.dtx +makeindex -s gind.ist datetime2-galician.idx +makeindex -s gglo.ist -o datetime2-galician.gls datetime2-galician.glo +xelatex datetime2-galician.dtx +xelatex datetime2-galician.dtx + +Move datetime2-galician.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-galician/ + +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-galician/datetime2-galician.pdf b/Master/texmf-dist/doc/latex/datetime2-galician/datetime2-galician.pdf Binary files differnew file mode 100644 index 00000000000..3af0bae85d3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-galician/datetime2-galician.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-greek/README b/Master/texmf-dist/doc/latex/datetime2-greek/README new file mode 100644 index 00000000000..5609cac64d0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-greek/README @@ -0,0 +1,57 @@ +Greek 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[greek]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[greek]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{greek} +\usepackage[greek]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-greek.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-greek/ + +Documentation: + +xelatex datetime2-greek.dtx +makeindex -s gind.ist datetime2-greek.idx +makeindex -s gglo.ist -o datetime2-greek.gls datetime2-greek.glo +xelatex datetime2-greek.dtx +xelatex datetime2-greek.dtx + +Move datetime2-greek.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-greek/ + +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-greek/datetime2-greek.pdf b/Master/texmf-dist/doc/latex/datetime2-greek/datetime2-greek.pdf Binary files differnew file mode 100644 index 00000000000..72d0963c9f3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-greek/datetime2-greek.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-hebrew/README b/Master/texmf-dist/doc/latex/datetime2-hebrew/README new file mode 100644 index 00000000000..7537f3170b2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-hebrew/README @@ -0,0 +1,51 @@ +Hebrew 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[hebrew]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{hebrew} +\usepackage[hebrew]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +latex datetime2-hebrew.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-hebrew/ + +Documentation: + +pdflatex datetime2-hebrew.dtx +makeindex -s gind.ist datetime2-hebrew.idx +makeindex -s gglo.ist -o datetime2-hebrew.gls datetime2-hebrew.glo +pdflatex datetime2-hebrew.dtx +pdflatex datetime2-hebrew.dtx + +Move datetime2-hebrew.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-hebrew/ + +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-hebrew/datetime2-hebrew.pdf b/Master/texmf-dist/doc/latex/datetime2-hebrew/datetime2-hebrew.pdf Binary files differnew file mode 100644 index 00000000000..f42bd9e3b8b --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-hebrew/datetime2-hebrew.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-icelandic/README b/Master/texmf-dist/doc/latex/datetime2-icelandic/README new file mode 100644 index 00000000000..eb9433c1be9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-icelandic/README @@ -0,0 +1,57 @@ +Icelandic 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[icelandic]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[icelandic]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{icelandic} +\usepackage[icelandic]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-icelandic.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-icelandic/ + +Documentation: + +xelatex datetime2-icelandic.dtx +makeindex -s gind.ist datetime2-icelandic.idx +makeindex -s gglo.ist -o datetime2-icelandic.gls datetime2-icelandic.glo +xelatex datetime2-icelandic.dtx +xelatex datetime2-icelandic.dtx + +Move datetime2-icelandic.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-icelandic/ + +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-icelandic/datetime2-icelandic.pdf b/Master/texmf-dist/doc/latex/datetime2-icelandic/datetime2-icelandic.pdf Binary files differnew file mode 100644 index 00000000000..514a15b2c75 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-icelandic/datetime2-icelandic.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-latin/README b/Master/texmf-dist/doc/latex/datetime2-latin/README new file mode 100644 index 00000000000..6f709d68cc1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-latin/README @@ -0,0 +1,57 @@ +Latin 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[latin]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[latin]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{latin} +\usepackage[latin]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +latex datetime2-latin.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-latin/ + +Documentation: + +pdflatex datetime2-latin.dtx +makeindex -s gind.ist datetime2-latin.idx +makeindex -s gglo.ist -o datetime2-latin.gls datetime2-latin.glo +pdflatex datetime2-latin.dtx +pdflatex datetime2-latin.dtx + +Move datetime2-latin.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-latin/ + +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-latin/datetime2-latin.pdf b/Master/texmf-dist/doc/latex/datetime2-latin/datetime2-latin.pdf Binary files differnew file mode 100644 index 00000000000..1448e8fefe0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-latin/datetime2-latin.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-lsorbian/README b/Master/texmf-dist/doc/latex/datetime2-lsorbian/README new file mode 100644 index 00000000000..00d1f2f3342 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-lsorbian/README @@ -0,0 +1,57 @@ +Lower 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[lsorbian]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[lsorbian]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{lsorbian} +\usepackage[lsorbian]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-lsorbian.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-lsorbian/ + +Documentation: + +xelatex datetime2-lsorbian.dtx +makeindex -s gind.ist datetime2-lsorbian.idx +makeindex -s gglo.ist -o datetime2-lsorbian.gls datetime2-lsorbian.glo +xelatex datetime2-lsorbian.dtx +xelatex datetime2-lsorbian.dtx + +Move datetime2-lsorbian.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-lsorbian/ + +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-lsorbian/datetime2-lsorbian.pdf b/Master/texmf-dist/doc/latex/datetime2-lsorbian/datetime2-lsorbian.pdf Binary files differnew file mode 100644 index 00000000000..383f71414c2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-lsorbian/datetime2-lsorbian.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-magyar/README b/Master/texmf-dist/doc/latex/datetime2-magyar/README new file mode 100644 index 00000000000..fda4ab5cb49 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-magyar/README @@ -0,0 +1,57 @@ +Hungarian 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[magyar]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[magyar]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{magyar} +\usepackage[magyar]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-magyar.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-magyar/ + +Documentation: + +xelatex datetime2-magyar.dtx +makeindex -s gind.ist datetime2-magyar.idx +makeindex -s gglo.ist -o datetime2-magyar.gls datetime2-magyar.glo +xelatex datetime2-magyar.dtx +xelatex datetime2-magyar.dtx + +Move datetime2-magyar.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-magyar/ + +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-magyar/datetime2-magyar.pdf b/Master/texmf-dist/doc/latex/datetime2-magyar/datetime2-magyar.pdf Binary files differnew file mode 100644 index 00000000000..cde569bd5ec --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-magyar/datetime2-magyar.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-norsk/README b/Master/texmf-dist/doc/latex/datetime2-norsk/README new file mode 100644 index 00000000000..e7abfe168d1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-norsk/README @@ -0,0 +1,57 @@ +Norwegian 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[norsk]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[norsk]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{norsk} +\usepackage[norsk]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-norsk.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-norsk/ + +Documentation: + +xelatex datetime2-norsk.dtx +makeindex -s gind.ist datetime2-norsk.idx +makeindex -s gglo.ist -o datetime2-norsk.gls datetime2-norsk.glo +xelatex datetime2-norsk.dtx +xelatex datetime2-norsk.dtx + +Move datetime2-norsk.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-norsk/ + +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-norsk/datetime2-norsk.pdf b/Master/texmf-dist/doc/latex/datetime2-norsk/datetime2-norsk.pdf Binary files differnew file mode 100644 index 00000000000..787face1eca --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-norsk/datetime2-norsk.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-polish/README b/Master/texmf-dist/doc/latex/datetime2-polish/README new file mode 100644 index 00000000000..a8649209f26 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-polish/README @@ -0,0 +1,57 @@ +Polish 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[polish]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[polish]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{polish} +\usepackage[polish]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-polish.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-polish/ + +Documentation: + +xelatex datetime2-polish.dtx +makeindex -s gind.ist datetime2-polish.idx +makeindex -s gglo.ist -o datetime2-polish.gls datetime2-polish.glo +xelatex datetime2-polish.dtx +xelatex datetime2-polish.dtx + +Move datetime2-polish.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-polish/ + +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-polish/datetime2-polish.pdf b/Master/texmf-dist/doc/latex/datetime2-polish/datetime2-polish.pdf Binary files differnew file mode 100644 index 00000000000..864ca3b314c --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-polish/datetime2-polish.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-romanian/README b/Master/texmf-dist/doc/latex/datetime2-romanian/README new file mode 100644 index 00000000000..b5198cc7557 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-romanian/README @@ -0,0 +1,57 @@ +Romanian 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[romanian]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[romanian]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{romanian} +\usepackage[romanian]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-romanian.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-romanian/ + +Documentation: + +xelatex datetime2-romanian.dtx +makeindex -s gind.ist datetime2-romanian.idx +makeindex -s gglo.ist -o datetime2-romanian.gls datetime2-romanian.glo +xelatex datetime2-romanian.dtx +xelatex datetime2-romanian.dtx + +Move datetime2-romanian.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-romanian/ + +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-romanian/datetime2-romanian.pdf b/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian.pdf Binary files differnew file mode 100644 index 00000000000..ed0d5e471ef --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-russian/README b/Master/texmf-dist/doc/latex/datetime2-russian/README new file mode 100644 index 00000000000..b8c0aa6dd1d --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-russian/README @@ -0,0 +1,57 @@ +Russian 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[russian]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[russian]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{russian} +\usepackage[russian]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-russian.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-russian/ + +Documentation: + +xelatex datetime2-russian.dtx +makeindex -s gind.ist datetime2-russian.idx +makeindex -s gglo.ist -o datetime2-russian.gls datetime2-russian.glo +xelatex datetime2-russian.dtx +xelatex datetime2-russian.dtx + +Move datetime2-russian.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-russian/ + +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-russian/datetime2-russian.pdf b/Master/texmf-dist/doc/latex/datetime2-russian/datetime2-russian.pdf Binary files differnew file mode 100644 index 00000000000..27dee37754d --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-russian/datetime2-russian.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-samin/README b/Master/texmf-dist/doc/latex/datetime2-samin/README new file mode 100644 index 00000000000..2682996e83b --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-samin/README @@ -0,0 +1,57 @@ +Northern Sami 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[samin]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass[samin]{article} +\usepackage{babel} +\usepackage[useregional]{datetime2} +\begin{document} +\today +\end{document} + +\documentclass{article} +\usepackage{polyglossia} +\setmainlanguage{samin} +\usepackage[samin]{datetime2} +\begin{document} +\today +\end{document} + +INSTALLATION +============ + +xelatex datetime2-samin.ins + +Move all *.ldf files to +TEXMF/tex/latex/datetime2-contrib/datetime2-samin/ + +Documentation: + +xelatex datetime2-samin.dtx +makeindex -s gind.ist datetime2-samin.idx +makeindex -s gglo.ist -o datetime2-samin.gls datetime2-samin.glo +xelatex datetime2-samin.dtx +xelatex datetime2-samin.dtx + +Move datetime2-samin.pdf and README to +TEXMF/doc/latex/datetime2-contrib/datetime2-samin/ + +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-samin/datetime2-samin.pdf b/Master/texmf-dist/doc/latex/datetime2-samin/datetime2-samin.pdf Binary files differnew file mode 100644 index 00000000000..59dbe97e05a --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-samin/datetime2-samin.pdf diff --git a/Master/texmf-dist/source/latex/datetime2-galician/datetime2-galician.dtx b/Master/texmf-dist/source/latex/datetime2-galician/datetime2-galician.dtx new file mode 100644 index 00000000000..45d58b939ba --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-galician/datetime2-galician.dtx @@ -0,0 +1,636 @@ +%\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 Galician Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{261} + +\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-galician.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Galician Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-30 (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 Galician 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-galician}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Galician. +%In particular, I don't know if the "galician" 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-galician.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-galician-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-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{galician-utf8}[2015/03/30 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMgalicianordinal} +% \begin{macrocode} +\newcommand*{\DTMgalicianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMgalicianmonthname} +% Galician month names. +% \begin{macrocode} +\newcommand*{\DTMgalicianmonthname}[1]{% + \ifcase#1 + \or + xaneiro% + \or + febreiro% + \or + marzo% + \or + abril% + \or + maio% + \or + xuño% + \or + xullo% + \or + agosto% + \or + setembro% + \or + outubro% + \or + novembro% + \or + decembro% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgalicianMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMgalicianMonthname}[1]{% + \ifcase#1 + \or + Xaneiro% + \or + Febreiro% + \or + Marzo% + \or + Abril% + \or + Maio% + \or + Xuño% + \or + Xullo% + \or + Agosto% + \or + Setembro% + \or + Outubro% + \or + Novembro% + \or + Decembro% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-galician-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-galician-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-galician-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{galician-ascii}[2015/03/30 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMgalicianordinal} +% \begin{macrocode} +\newcommand*{\DTMgalicianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgalicianmonthname} +% Galician month names. +% \begin{macrocode} +\newcommand*{\DTMgalicianmonthname}[1]{% + \ifcase#1 + \or + xaneiro% + \or + febreiro% + \or + marzo% + \or + abril% + \or + maio% + \or + xu\protect\~no% + \or + xullo% + \or + agosto% + \or + setembro% + \or + outubro% + \or + novembro% + \or + decembro% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgalicianMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMgalicianMonthname}[1]{% + \ifcase#1 + \or + Xaneiro% + \or + Febreiro% + \or + Marzo% + \or + Abril% + \or + Maio% + \or + Xu\protect\~no% + \or + Xullo% + \or + Agosto% + \or + Setembro% + \or + Outubro% + \or + Novembro% + \or + Decembro% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-galician-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Galician Module (\texttt{datetime2-galician.ldf})} +%\changes{1.0}{2015-03-30}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-galician.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{galician}[2015/03/30 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{galician-utf8} if either of those engines are used +% otherwise load \texttt{galician-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{galician-utf8} +\else + \ifluatex + \RequireDateTimeModule{galician-utf8} + \else + \RequireDateTimeModule{galician-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{galician} 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 "galician" and +% "galician-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}{\DTMgaliciandaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMgaliciandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% + de\space +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgalicianmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMgalicianmonthyearsep}{% + \space de% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgaliciandatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMgaliciandatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgaliciantimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMgaliciantimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgaliciandatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMgaliciandatesep}{/} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgaliciantimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMgaliciantimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{galician}{daymonthsep}{\renewcommand*{\DTMgaliciandaymonthsep}{#1}} +\DTMdefkey{galician}{monthyearsep}{\renewcommand*{\DTMgalicianmonthyearsep}{#1}} +\DTMdefkey{galician}{datetimesep}{\renewcommand*{\DTMgaliciandatetimesep}{#1}} +\DTMdefkey{galician}{timezonesep}{\renewcommand*{\DTMgaliciantimezonesep}{#1}} +\DTMdefkey{galician}{datesep}{\renewcommand*{\DTMgaliciandatesep}{#1}} +\DTMdefkey{galician}{timesep}{\renewcommand*{\DTMgaliciantimesep}{#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{galician}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{galician}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{galician}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{galician}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{galician}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{galician}{showyear}{true} +% \end{macrocode} +% +% Define the "galician" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {galician}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{galician}{showdayofmonth} + {\DTMgalicianordinal{##3}\DTMgaliciandaymonthsep}% + {}% + \DTMgalicianmonthname{##2}% + \DTMifbool{galician}{showyear}% + {% + \DTMgalicianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{galician}{showdayofmonth} + {% + \DTMgalicianordinal{##3}\DTMgaliciandaymonthsep + \DTMgalicianmonthname{##2}% + }% + {% + \DTMgalicianMonthname{##2}% + }% + \DTMifbool{galician}{showyear}% + {% + \DTMgalicianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMgalicianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{galician}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgaliciantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgaliciandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgaliciantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMgaliciandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgaliciantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {galician-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{galician}{showdayofmonth}% + {% + \number##3 % space intended + \DTMgaliciandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{galician}{showyear}% + {% + \DTMgaliciandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMgaliciantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMgaliciantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMgalicianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{galician}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgaliciantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgaliciandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgaliciantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMgalicianzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. No default mappings are provided at the moment. +% \begin{macrocode} +\newcommand*{\DTMgalicianzonemaps}{% + \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{galician}} +{\DTMsetstyle{galician-numeric}} +% \end{macrocode} +% +% Redefine \cs{dategalician} (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\dategalician + {% do nothing + }% + {% + \def\dategalician{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{galician}}% + {\DTMsetstyle{galician-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{galician}}% + {\DTMsetstyle{galician-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-galician.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-galician/datetime2-galician.ins b/Master/texmf-dist/source/latex/datetime2-galician/datetime2-galician.ins new file mode 100644 index 00000000000..7de788083ad --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-galician/datetime2-galician.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-galician.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-galician.dtx and + datetime2-galician.ins and the derived files + datetime2-galician-utf8.ldf, datetime2-galician-ascii.ldf and + datetime2-galician.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-galician-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-galician.dtx}{datetime2-galician-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-galician-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-galician.dtx}{datetime2-galician-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-galician.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-galician.dtx}{datetime2-galician.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-greek/datetime2-greek.dtx b/Master/texmf-dist/source/latex/datetime2-greek/datetime2-greek.dtx new file mode 100644 index 00000000000..c9f21c3e858 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-greek/datetime2-greek.dtx @@ -0,0 +1,538 @@ +%\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 Greek Module}]{hyperref} + +\newfontfamily\greekfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{230} + +\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-greek.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Greek Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-30 (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 Greek 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-greek}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Greek. +%In particular, I don't know if the "greek" 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-greek.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +%Currently there is only a regionless style. There is currently no +%support for Ancient Greek. +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +%\iffalse +% \begin{macrocode} +%<*datetime2-greek-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-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{greek-utf8}[2015/03/30 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMgreekordinal} +% \begin{macrocode} +\newcommand*{\DTMgreekordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMgreekmonthname} +% Greek month names. +% \begin{macrocode} +\newcommand*{\DTMgreekmonthname}[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-greek-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-greek-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-greek-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{greek-ascii}[2015/03/30 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMgreekordinal} +% \begin{macrocode} +\newcommand*{\DTMgreekordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgreekmonthname} +% Greek month names. +% \begin{macrocode} +\newcommand*{\DTMgreekmonthname}[1]{% + \ifcase#1 + \or + Ianouar\protect\'iou% + \or + Febrouar\protect\'iou% + \or + Mart\protect\'iou% + \or + April\protect\'iou% + \or + Ma\protect\'{\protect\"i}ou% + \or + Ioun\protect\'iou% + \or + Ioul\protect\'iou% + \or + Augo\protect\'ustou% + \or + Septembr\protect\'iou% + \or + Oktwbr\protect\'iou% + \or + Noembr\protect\'iou% + \or + Dekembr\protect\'iou% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-greek-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Greek Module (\texttt{datetime2-greek.ldf})} +%\changes{1.0}{2015-03-30}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-greek.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{greek}[2015/03/30 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{greek-utf8} if either of those engines are used +% otherwise load \texttt{greek-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{greek-utf8} +\else + \ifluatex + \RequireDateTimeModule{greek-utf8} + \else + \RequireDateTimeModule{greek-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{greek} 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 "greek" and +% "greek-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}{\DTMgreekdaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMgreekdaymonthsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgreekmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMgreekmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgreekdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMgreekdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgreektimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMgreektimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgreekdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMgreekdatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMgreektimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMgreektimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{greek}{daymonthsep}{\renewcommand*{\DTMgreekdaymonthsep}{#1}} +\DTMdefkey{greek}{monthyearsep}{\renewcommand*{\DTMgreekmonthyearsep}{#1}} +\DTMdefkey{greek}{datetimesep}{\renewcommand*{\DTMgreekdatetimesep}{#1}} +\DTMdefkey{greek}{timezonesep}{\renewcommand*{\DTMgreektimezonesep}{#1}} +\DTMdefkey{greek}{datesep}{\renewcommand*{\DTMgreekdatesep}{#1}} +\DTMdefkey{greek}{timesep}{\renewcommand*{\DTMgreektimesep}{#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{greek}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{greek}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{greek}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{greek}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{greek}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{greek}{showyear}{true} +% \end{macrocode} +% +% Define the "greek" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {greek}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{greek}{showdayofmonth} + {\DTMgreekordinal{##3}\DTMgreekdaymonthsep}% + {}% + \DTMgreekmonthname{##2}% + \DTMifbool{greek}{showyear}% + {% + \DTMgreekmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMgreekzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{greek}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgreektimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgreekdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgreektimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {greek-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{greek}{showdayofmonth}% + {% + \number##3 % space intended + \DTMgreekdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{greek}{showyear}% + {% + \DTMgreekdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMgreektimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMgreektimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMgreekzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{greek}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgreektimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgreekdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgreektimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMgreekzonemaps} +% 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*{\DTMgreekzonemaps}{% + \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{greek}} +{\DTMsetstyle{greek-numeric}} +% \end{macrocode} +% +% Redefine \cs{dategreek} (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\dategreek + {% do nothing + }% + {% + \def\dategreek{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{greek}}% + {\DTMsetstyle{greek-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{greek}}% + {\DTMsetstyle{greek-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-greek.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-greek/datetime2-greek.ins b/Master/texmf-dist/source/latex/datetime2-greek/datetime2-greek.ins new file mode 100644 index 00000000000..c32ff1b4091 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-greek/datetime2-greek.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-greek.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-greek.dtx and + datetime2-greek.ins and the derived files + datetime2-greek-utf8.ldf, datetime2-greek-ascii.ldf and + datetime2-greek.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-greek-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-greek.dtx}{datetime2-greek-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-greek-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-greek.dtx}{datetime2-greek-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-greek.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-greek.dtx}{datetime2-greek.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-hebrew/datetime2-hebrew.dtx b/Master/texmf-dist/source/latex/datetime2-hebrew/datetime2-hebrew.dtx new file mode 100644 index 00000000000..feba06e73d3 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-hebrew/datetime2-hebrew.dtx @@ -0,0 +1,360 @@ +%\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[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Hebrew Module}]{hyperref} + +\CheckSum{162} + +\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-hebrew.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Hebrew Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-30 (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 Hebrew 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} +% +%The date style simply uses either \sty{babel}'s \cs{hebdate} +%or \sty{polyglossia}'s \cs{hebrewdate} so the date style isn't +%expandable. +% +%I don't know if these settings are correct as I can't speak Hebrew. +%In particular, I don't know if the "hebrew" 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-hebrew.ins} where Name +%is the name of the maintainer(s) and replace +%the `inactive' status to `maintained'. +% +% +%\StopEventually{% +%\clearpage +%\phantomsection +%\addcontentsline{toc}{section}{Change History}% +%\PrintChanges +%\addcontentsline{toc}{section}{\indexname}% +%\PrintIndex} +%\section{The Code} +% There is currently only one ".ldf" file. +% +%\subsection{Main Hebrew Module (\texttt{datetime2-hebrew.ldf})} +%\changes{1.0}{2015-03-30}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-hebrew.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{hebrew}[2015/03/30 v1.0] +% \end{macrocode} +% The date style uses \cs{hebrewdate} or \cs{hebdate}, depending on +% which is defined. This needs to be robust, which means the date +% can't be expanded with this style. This should be fixed if at all +% possible. (I don't know how.) +%\begin{macro}{\DTMhebrewdate} +% \begin{macrocode} +\ifdef\hebrewdate +{% + \newrobustcmd*\DTMhebrewdate[3]{\hebrewdate{#3}{#2}{#1}}% +}% +{% + \ifdef\hebdate + {% + \newrobustcmd*\DTMhebrewdate[3]{\hebdate{#3}{#2}{#1}}% + }% + {% + \newcommand*\DTMhebrewdate[3]{#3-#2-#1}% + \PackageWarning{datetime2-hebrew}{Neither + \string\hebrewdate\space nor \string\hebdate\space defined}{}% + }% +}% +% \end{macrocode} +%\end{macro} +%For some reason \cs{hebrewdate} doesn't work with \cs{datetime2}'s +%definition of \cs{today} so it needs to be changed. +%\begin{macro}{\today} +% \begin{macrocode} +\renewcommand*{\today}{\DTMdisplaydate{\year}{\month}{\day}{-1}} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\Today} +% \begin{macrocode} +\renewcommand*{\Today}{\DTMDisplaydate{\year}{\month}{\day}{-1}} +% \end{macrocode} +%\end{macro} +% +%The full style will probably need to check for RL or LR. +%\begin{macro}{\DTMhebrewdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMhebrewdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMhebrewtimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMhebrewtimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMhebrewdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMhebrewdatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMhebrewtimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMhebrewtimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{hebrew}{datetimesep}{\renewcommand*{\DTMhebrewdatetimesep}{#1}} +\DTMdefkey{hebrew}{timezonesep}{\renewcommand*{\DTMhebrewtimezonesep}{#1}} +\DTMdefkey{hebrew}{datesep}{\renewcommand*{\DTMhebrewdatesep}{#1}} +\DTMdefkey{hebrew}{timesep}{\renewcommand*{\DTMhebrewtimesep}{#1}} +% \end{macrocode} +% +% Define a boolean key that determines if the time zone mappings +% should be used. +% \begin{macrocode} +\DTMdefboolkey{hebrew}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{hebrew}{mapzone}{true} +% \end{macrocode} +% +% Define the "hebrew" style. +% \begin{macrocode} +\DTMnewstyle + {hebrew}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMtexorpdfstring{\DTMhebrewdate{##1}{##2}{##3}}{##3-##2-##1}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMhebrewzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{hebrew}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMhebrewtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMhebrewdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMhebrewtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {hebrew-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{hebrew}{showdayofmonth}% + {% + \number##3 % space intended + \DTMhebrewdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{hebrew}{showyear}% + {% + \DTMhebrewdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMhebrewtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMhebrewtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMhebrewzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{hebrew}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMhebrewtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMhebrewdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMhebrewtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMhebrewzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. There are currently no mappings. +% \begin{macrocode} +\newcommand*{\DTMhebrewzonemaps}{% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{hebrew}} +{\DTMsetstyle{hebrew-numeric}} +% \end{macrocode} +% +% Redefine \cs{datehebrew} (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\datehebrew + {% do nothing + }% + {% + \def\datehebrew{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{hebrew}}% + {\DTMsetstyle{hebrew-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{hebrew}}% + {\DTMsetstyle{hebrew-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-hebrew.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-hebrew/datetime2-hebrew.ins b/Master/texmf-dist/source/latex/datetime2-hebrew/datetime2-hebrew.ins new file mode 100644 index 00000000000..12ecc81e483 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-hebrew/datetime2-hebrew.ins @@ -0,0 +1,38 @@ +\input docstrip + +\preamble + + datetime2-hebrew.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-hebrew.dtx and + datetime2-hebrew.ins and the derived file + datetime2-hebrew.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-hebrew.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-hebrew.dtx}{datetime2-hebrew.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx new file mode 100644 index 00000000000..c72118b636e --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx @@ -0,0 +1,631 @@ +%\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 Icelandic Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{300} + +\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-icelandic.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Icelandic Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-30 (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 Icelandic 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-icelandic}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Icelandic. +%In particular, I don't know if the "icelandic" 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-icelandic.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-icelandic-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-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{icelandic-utf8}[2015/03/30 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMicelandicordinal} +% \begin{macrocode} +\newcommand*{\DTMicelandicordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMicelandicmonthname} +% Icelandic month names. +% \begin{macrocode} +\newcommand*{\DTMicelandicmonthname}[1]{% + \ifcase#1 + \or + janúar% + \or + febrúar% + \or + mars% + \or + apríl% + \or + maí% + \or + júní% + \or + júlí% + \or + ágúst% + \or + september% + \or + október% + \or + nóvember% + \or + desembe% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandicMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMicelandicMonthname}[1]{% + \ifcase#1 + \or + Janúar% + \or + Febrúar% + \or + Mars% + \or + Apríl% + \or + Maí% + \or + Júní% + \or + Júlí% + \or + Ágúst% + \or + September% + \or + Október% + \or + Nóvember% + \or + Desembe% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-icelandic-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-icelandic-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-icelandic-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{icelandic-ascii}[2015/03/30 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMicelandicordinal} +% \begin{macrocode} +\newcommand*{\DTMicelandicordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandicmonthname} +% Icelandic month names. +% \begin{macrocode} +\newcommand*{\DTMicelandicmonthname}[1]{% + \ifcase#1 + \or + jan\protect\'uar% + \or + febr\protect\'uar% + \or + mars% + \or + apr\protect\'il% + \or + ma\protect\'i% + \or + j\protect\'un\protect\'i% + \or + j\protect\'ul\protect\'i% + \or + \protect\'ag\protect\'ust% + \or + september% + \or + okt\protect\'ober% + \or + n\protect\'ovember% + \or + desembe% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandicMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMicelandicMonthname}[1]{% + \ifcase#1 + \or + Jan\protect\'uar% + \or + Febr\protect\'uar% + \or + Mars% + \or + Apr\protect\'il% + \or + Ma\protect\'i% + \or + J\protect\'un\protect\'i% + \or + J\protect\'ul\protect\'i% + \or + \protect\'Ag\protect\'ust% + \or + September% + \or + Okt\protect\'ober% + \or + N\protect\'ovember% + \or + Desembe% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-icelandic-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Icelandic Module (\texttt{datetime2-icelandic.ldf})} +%\changes{1.0}{2015-03-30}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-icelandic.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{icelandic}[2015/03/30 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{icelandic-utf8} if either of those engines are used +% otherwise load \texttt{icelandic-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{icelandic-utf8} +\else + \ifluatex + \RequireDateTimeModule{icelandic-utf8} + \else + \RequireDateTimeModule{icelandic-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{icelandic} 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 "icelandic" and +% "icelandic-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}{\DTMicelandicdaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMicelandicdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandicmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMicelandicmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandicdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMicelandicdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandictimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMicelandictimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandicdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMicelandicdatesep}{/} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMicelandictimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMicelandictimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{icelandic}{daymonthsep}{\renewcommand*{\DTMicelandicdaymonthsep}{#1}} +\DTMdefkey{icelandic}{monthyearsep}{\renewcommand*{\DTMicelandicmonthyearsep}{#1}} +\DTMdefkey{icelandic}{datetimesep}{\renewcommand*{\DTMicelandicdatetimesep}{#1}} +\DTMdefkey{icelandic}{timezonesep}{\renewcommand*{\DTMicelandictimezonesep}{#1}} +\DTMdefkey{icelandic}{datesep}{\renewcommand*{\DTMicelandicdatesep}{#1}} +\DTMdefkey{icelandic}{timesep}{\renewcommand*{\DTMicelandictimesep}{#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{icelandic}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{icelandic}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{icelandic}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{icelandic}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{icelandic}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{icelandic}{showyear}{true} +% \end{macrocode} +% +% Define the "icelandic" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {icelandic}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{icelandic}{showdayofmonth} + {\DTMicelandicordinal{##3}\DTMicelandicdaymonthsep}% + {}% + \DTMicelandicmonthname{##2}% + \DTMifbool{icelandic}{showyear}% + {% + \DTMicelandicmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{icelandic}{showdayofmonth} + {% + \DTMicelandicordinal{##3}\DTMicelandicdaymonthsep + \DTMicelandicmonthname{##2}% + }% + {% + \DTMicelandicMonthname{##2}% + }% + \DTMifbool{icelandic}{showyear}% + {% + \DTMicelandicmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMicelandiczonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{icelandic}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMicelandictimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMicelandicdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMicelandictimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMicelandicdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMicelandictimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {icelandic-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{icelandic}{showdayofmonth}% + {% + \number##3 % space intended + \DTMicelandicdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{icelandic}{showyear}% + {% + \DTMicelandicdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMicelandictimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMicelandictimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMicelandiczonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{icelandic}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMicelandictimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMicelandicdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMicelandictimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMicelandiczonemaps} +% 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*{\DTMicelandiczonemaps}{% + \DTMdefzonemap{00}{00}{GMT}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{icelandic}} +{\DTMsetstyle{icelandic-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateicelandic} (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\dateicelandic + {% do nothing + }% + {% + \def\dateicelandic{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{icelandic}}% + {\DTMsetstyle{icelandic-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{icelandic}}% + {\DTMsetstyle{icelandic-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-icelandic.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins new file mode 100644 index 00000000000..2f9a258657b --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-icelandic.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-icelandic.dtx and + datetime2-icelandic.ins and the derived files + datetime2-icelandic-utf8.ldf, datetime2-icelandic-ascii.ldf and + datetime2-icelandic.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-icelandic-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-icelandic.dtx}{datetime2-icelandic-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-icelandic-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-icelandic.dtx}{datetime2-icelandic-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-icelandic.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-icelandic.dtx}{datetime2-icelandic.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-latin/datetime2-latin.dtx b/Master/texmf-dist/source/latex/datetime2-latin/datetime2-latin.dtx new file mode 100644 index 00000000000..879a041fbe3 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-latin/datetime2-latin.dtx @@ -0,0 +1,500 @@ +%\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[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[colorlinks, + bookmarks, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime2.sty Latin Module}]{hyperref} + + +\CheckSum{212} + +\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-latin.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Latin Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (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 Latin 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-latin}'s \cs{today}. +%This is different from \sty{polyglossia}'s Latin \cs{today} so +%there's a check to see if \sty{polyglossia} has been loaded to make +%the styles match. +% +%I don't know if these settings are correct. +%In particular, I don't know if the "latin" 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-latin.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} +%At the moment there is only the one ".ldf" file. +% +%\subsection{Main Latin Module (\texttt{datetime2-latin.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-latin.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{latin}[2015/03/31 v1.0] +% \end{macrocode} +% +%\begin{macro}{\DTMlatindatefont} +%\sty{polyglossia} version doesn't implement a font change. +% \begin{macrocode} +\@ifpackageloaded{polyglossia} +{ + \newcommand*{\DTMlatindayfont}[1]{#1} +} +{ +% \end{macrocode} +%This will need protecting. +% \begin{macrocode} + \newcommand*{\DTMlatindayfont}[1]{% + {\check@mathfonts\fontsize\sf@size\z@\math@fontsfalse\selectfont#1}% + } +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatinordinal} +% \begin{macrocode} +\newcommand*{\DTMlatinordinal}[1]{% + \DTMtexorpdfstring + {% + \protect\DTMlatindayfont{\uppercase\expandafter{\romannumeral#1}}% + }% + {\romannumeral#1 }% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatinyear} +% \begin{macrocode} +\newcommand*{\DTMlatinyear}[1]{% + \DTMtexorpdfstring + {% + \uppercase\expandafter{\romannumeral#1}% + }% + {\romannumeral#1 }% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatinmonthname} +% Latin month names. +% \begin{macrocode} +\@ifpackageloaded{polyglossia} +{ +% \end{macrocode} +% Match \sty{polyglossia} month names: +% \begin{macrocode} + \newcommand*{\DTMlatinmonthname}[1]{% + \ifcase#1 + \or + Januarii% + \or + Februarii% + \or + Martii% + \or + Aprilis% + \or + Maji% + \or + Junii% + \or + Julii% + \or + Augusti% + \or + Septembris% + \or + Octobris% + \or + Novembris% + \or + Decembris% + \fi + } +} +{ +% \end{macrocode} +% Match \sty{babel} month names: +% \begin{macrocode} + \newcommand*{\DTMlatinmonthname}[1]{% + \ifcase#1 + \or + Ianuarii% + \or + Februarii% + \or + Martii% + \or + Aprilis% + \or + Maii% + \or + Iunii% + \or + Iulii% + \or + Augusti% + \or + Septembris% + \or + Octobris% + \or + Novembris% + \or + Decembris% + \fi + } +} +% \end{macrocode} +%\end{macro} +% +% +% Define the \texttt{latin} style. +% The time style is the same as the "default" style +% provided by \sty{datetime2}. This may need correcting. +% +% Allow the user a way of configuring the "latin" and +% "latin-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}{\DTMlatindaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMlatindaymonthsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatinmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMlatinmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatindatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMlatindatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatintimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMlatintimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatindatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMlatindatesep}{/} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlatintimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMlatintimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{latin}{daymonthsep}{\renewcommand*{\DTMlatindaymonthsep}{#1}} +\DTMdefkey{latin}{monthyearsep}{\renewcommand*{\DTMlatinmonthyearsep}{#1}} +\DTMdefkey{latin}{datetimesep}{\renewcommand*{\DTMlatindatetimesep}{#1}} +\DTMdefkey{latin}{timezonesep}{\renewcommand*{\DTMlatintimezonesep}{#1}} +\DTMdefkey{latin}{datesep}{\renewcommand*{\DTMlatindatesep}{#1}} +\DTMdefkey{latin}{timesep}{\renewcommand*{\DTMlatintimesep}{#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{latin}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{latin}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{latin}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{latin}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{latin}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{latin}{showyear}{true} +% \end{macrocode} +% +% Define the "latin" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {latin}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{latin}{showdayofmonth} + {\DTMlatinordinal{##3}\DTMlatindaymonthsep}% + {}% + \DTMlatinmonthname{##2}% + \DTMifbool{latin}{showyear}% + {% + \DTMlatinmonthyearsep + \DTMlatinyear{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMlatinzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{latin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlatintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlatindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlatintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {latin-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{latin}{showdayofmonth}% + {% + \number##3 % space intended + \DTMlatindatesep + }% + {}% + \number##2 % space intended + \DTMifbool{latin}{showyear}% + {% + \DTMlatindatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMlatintimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMlatintimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMlatinzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{latin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlatintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlatindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlatintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMlatinzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. This currently has no mappings. +% \begin{macrocode} +\newcommand*{\DTMlatinzonemaps}{% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{latin}} +{\DTMsetstyle{latin-numeric}} +% \end{macrocode} +% +% Redefine \cs{datelatin} (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\datelatin + {% do nothing + }% + {% + \def\datelatin{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{latin}}% + {\DTMsetstyle{latin-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{latin}}% + {\DTMsetstyle{latin-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-latin.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-latin/datetime2-latin.ins b/Master/texmf-dist/source/latex/datetime2-latin/datetime2-latin.ins new file mode 100644 index 00000000000..112cf79667e --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-latin/datetime2-latin.ins @@ -0,0 +1,38 @@ +\input docstrip + +\preamble + + datetime2-latin.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-latin.dtx and + datetime2-latin.ins and the derived file + datetime2-latin.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-latin.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-latin.dtx}{datetime2-latin.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-lsorbian/datetime2-lsorbian.dtx b/Master/texmf-dist/source/latex/datetime2-lsorbian/datetime2-lsorbian.dtx new file mode 100644 index 00000000000..d7795cdc690 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-lsorbian/datetime2-lsorbian.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 Lower 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-lsorbian.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Lower Sorbian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-30 (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 Lower 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-lsorbian}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Lower Sorbian. +%In particular, I don't know if the "lsorbian" 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-lsorbian.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-lsorbian-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-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{lsorbian-utf8}[2015/03/30 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMlsorbianordinal} +% \begin{macrocode} +\newcommand*{\DTMlsorbianordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMlsorbiannewmonthname} +% Lower Sorbian month names. +% \begin{macrocode} +\newcommand*{\DTMlsorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + měrca% + \or + apryla% + \or + maja% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbiannewMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMlsorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + Měrca% + \or + Apryla% + \or + Maja% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbianoldmonthname} +% Lower Sorbian (old) month names. +% \begin{macrocode} +\newcommand*{\DTMlsorbianoldmonthname}[1]{% + \ifcase#1 + \or + wjelikego rožka% + \or + małego rožka% + \or + nalětnika% + \or + jatšownika% + \or + rožownika% + \or + smažnika% + \or + pražnika% + \or + žnjeńca% + \or + požnjeńca% + \or + winowca% + \or + nazymnika% + \or + godownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbianoldMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMlsorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wjelikego rožka% + \or + Małego rožka% + \or + Nalětnika% + \or + Jatšownika% + \or + Rožownika% + \or + Smažnika% + \or + Pražnika% + \or + Žnjeńca% + \or + Požnjeńca% + \or + Winowca% + \or + Nazymnika% + \or + Godownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-lsorbian-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-lsorbian-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-lsorbian-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-30}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{lsorbian-ascii}[2015/03/30 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMlsorbianordinal} +% \begin{macrocode} +\newcommand*{\DTMlsorbianordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbiannewmonthname} +% Lower Sorbian month names. +% \begin{macrocode} +\newcommand*{\DTMlsorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + m\protect\v erca% + \or + apryla% + \or + maja% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbiannewMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMlsorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + M\protect\v erca% + \or + Apryla% + \or + Maja% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbianoldmonthname} +% Lower Sorbian (old) month names. +% \begin{macrocode} +\newcommand*{\DTMlsorbianoldmonthname}[1]{% + \ifcase#1 + \or + wjelikego ro\protect\v zka% + \or + ma\protect\l ego ro\protect\v zka% + \or + nal\protect\v etnika% + \or + jat\protect\v sownika% + \or + ro\protect\v zownika% + \or + sma\protect\v znika% + \or + pra\protect\v znika% + \or + \protect\v znje\protect\'nca% + \or + po\protect\v znje\protec\'nca% + \or + winowca% + \or + nazymnika% + \or + godownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbianoldMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMlsorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wjelikego ro\protect\v zka% + \or + Ma\protect\l ego ro\protect\v zka% + \or + Nal\protect\v etnika% + \or + Jat\protect\v sownika% + \or + Ro\protect\v zownika% + \or + Sma\protect\v znika% + \or + Pra\protect\v znika% + \or + \protect\v Znje\protect\'nca% + \or + Po\protect\v znje\protec\'nca% + \or + Winowca% + \or + Nazymnika% + \or + Godownika% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-lsorbian-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Lower Sorbian Module (\texttt{datetime2-lsorbian.ldf})} +%\changes{1.0}{2015-03-30}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-lsorbian.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{lsorbian}[2015/03/30 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{lsorbian-utf8} if either of those engines are used +% otherwise load \texttt{lsorbian-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{lsorbian-utf8} +\else + \ifluatex + \RequireDateTimeModule{lsorbian-utf8} + \else + \RequireDateTimeModule{lsorbian-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{lsorbian} 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 "lsorbian" and +% "lsorbian-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}{\DTMlsorbiandaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMlsorbiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbianmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMlsorbianmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbiandatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMlsorbiandatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbiantimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMlsorbiantimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbiandatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMlsorbiandatesep}{/} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMlsorbiantimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMlsorbiantimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{lsorbian}{daymonthsep}{\renewcommand*{\DTMlsorbiandaymonthsep}{#1}} +\DTMdefkey{lsorbian}{monthyearsep}{\renewcommand*{\DTMlsorbianmonthyearsep}{#1}} +\DTMdefkey{lsorbian}{datetimesep}{\renewcommand*{\DTMlsorbiandatetimesep}{#1}} +\DTMdefkey{lsorbian}{timezonesep}{\renewcommand*{\DTMlsorbiantimezonesep}{#1}} +\DTMdefkey{lsorbian}{datesep}{\renewcommand*{\DTMlsorbiandatesep}{#1}} +\DTMdefkey{lsorbian}{timesep}{\renewcommand*{\DTMlsorbiantimesep}{#1}} +% \end{macrocode} +% +%\begin{macro}{\DTMlsorbianmonthname} +% Provide a way to switch between old and new month names +% \begin{macrocode} +\newcommand*\DTMlsorbianmonthname{\DTMlsorbiannewmonthname} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\DTMlsorbianMonthname} +% Provide a way to switch between old and new month names +% \begin{macrocode} +\newcommand*\DTMlsorbianMonthname{\DTMlsorbiannewMonthname} +% \end{macrocode} +%\end{macro} +% Define a key to easily switch: +% \begin{macrocode} +\DTMdefchoicekey{lsorbian}{style}[\val\nr]{old,new}{% + \ifcase\nr\relax + \renewcommand*\DTMlsorbianmonthname{\DTMlsorbianoldmonthname}% + \renewcommand*\DTMlsorbianMonthname{\DTMlsorbianoldMonthname}% + \or + \renewcommand*\DTMlsorbianmonthname{\DTMlsorbiannewmonthname}% + \renewcommand*\DTMlsorbianMonthname{\DTMlsorbiannewMonthname}% + \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{lsorbian}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{lsorbian}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{lsorbian}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{lsorbian}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{lsorbian}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{lsorbian}{showyear}{true} +% \end{macrocode} +% +% Define the "lsorbian" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {lsorbian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{lsorbian}{showdayofmonth} + {\DTMlsorbianordinal{##3}\DTMlsorbiandaymonthsep}% + {}% + \DTMlsorbianmonthname{##2}% + \DTMifbool{lsorbian}{showyear}% + {% + \DTMlsorbianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{lsorbian}{showdayofmonth} + {% + \DTMlsorbianordinal{##3}\DTMlsorbiandaymonthsep + \DTMlsorbianmonthname{##2}% + }% + {% + \DTMlsorbianMonthname{##2}% + }% + \DTMifbool{lsorbian}{showyear}% + {% + \DTMlsorbianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMlsorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{lsorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlsorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlsorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlsorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMlsorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlsorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {lsorbian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{lsorbian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMlsorbiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{lsorbian}{showyear}% + {% + \DTMlsorbiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMlsorbiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMlsorbiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMlsorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{lsorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlsorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlsorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlsorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMlsorbianzonemaps} +% 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*{\DTMlsorbianzonemaps}{% + \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{lsorbian}} +{\DTMsetstyle{lsorbian-numeric}} +% \end{macrocode} +% +% Redefine \cs{datelsorbian} (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\datelsorbian + {% do nothing + }% + {% + \def\datelsorbian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{lsorbian}}% + {\DTMsetstyle{lsorbian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{lsorbian}}% + {\DTMsetstyle{lsorbian-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-lsorbian.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-lsorbian/datetime2-lsorbian.ins b/Master/texmf-dist/source/latex/datetime2-lsorbian/datetime2-lsorbian.ins new file mode 100644 index 00000000000..1a70ca3b2d5 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-lsorbian/datetime2-lsorbian.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-lsorbian.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-lsorbian.dtx and + datetime2-lsorbian.ins and the derived files + datetime2-lsorbian-utf8.ldf, datetime2-lsorbian-ascii.ldf and + datetime2-lsorbian.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-lsorbian-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-lsorbian.dtx}{datetime2-lsorbian-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-lsorbian-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-lsorbian.dtx}{datetime2-lsorbian-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-lsorbian.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-lsorbian.dtx}{datetime2-lsorbian.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-magyar/datetime2-magyar.dtx b/Master/texmf-dist/source/latex/datetime2-magyar/datetime2-magyar.dtx new file mode 100644 index 00000000000..52c23fddfd5 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-magyar/datetime2-magyar.dtx @@ -0,0 +1,646 @@ +%\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 Hungarian Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{289} + +\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-magyar.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Hungarian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (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 Hungarian 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-magyar}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Hungarian. +%In particular, I don't know if the "magyar" 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-magyar.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-magyar-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-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{magyar-utf8}[2015/03/31 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMmagyarordinal} +% \begin{macrocode} +\newcommand*{\DTMmagyarordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyaryear} +% \begin{macrocode} +\newcommand*{\DTMmagyaryear}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMmagyarmonthname} +% Hungarian month names. +% \begin{macrocode} +\newcommand*{\DTMmagyarmonthname}[1]{% + \ifcase#1 + \or + január% + \or + február% + \or + március% + \or + április% + \or + május% + \or + június% + \or + július% + \or + augusztus% + \or + szeptember% + \or + október% + \or + november% + \or + december% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyarMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMmagyarMonthname}[1]{% + \ifcase#1 + \or + Január% + \or + Február% + \or + Március% + \or + Április% + \or + Május% + \or + Június% + \or + Július% + \or + Augusztus% + \or + Szeptember% + \or + Október% + \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-magyar-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-magyar-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-magyar-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{magyar-ascii}[2015/03/31 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMmagyarordinal} +% \begin{macrocode} +\newcommand*{\DTMmagyarordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyaryear} +% \begin{macrocode} +\newcommand*{\DTMmagyaryear}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyarmonthname} +% Hungarian month names. +% \begin{macrocode} +\newcommand*{\DTMmagyarmonthname}[1]{% + \ifcase#1 + \or + janu\protect\'ar% + \or + febru\protect\'ar% + \or + m\protect\'arcius% + \or + \protect\'aprilis% + \or + m\protect\'ajus% + \or + j\protect\'unius% + \or + j\protect\'ulius% + \or + augusztus% + \or + szeptember% + \or + okt\protect\'ober% + \or + november% + \or + december% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyarMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMmagyarMonthname}[1]{% + \ifcase#1 + \or + Janu\protect\'ar% + \or + Febru\protect\'ar% + \or + M\protect\'arcius% + \or + \protect\'Aprilis% + \or + M\protect\'ajus% + \or + J\protect\'unius% + \or + J\protect\'ulius% + \or + Augusztus% + \or + Szeptember% + \or + Okt\protect\'ober% + \or + November% + \or + December% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-magyar-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Hungarian Module (\texttt{datetime2-magyar.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-magyar.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{magyar}[2015/03/31 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{magyar-utf8} if either of those engines are used +% otherwise load \texttt{magyar-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{magyar-utf8} +\else + \ifluatex + \RequireDateTimeModule{magyar-utf8} + \else + \RequireDateTimeModule{magyar-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{magyar} 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 "magyar" and +% "magyar-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}{\DTMmagyardaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMmagyardaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyarmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMmagyarmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyardatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMmagyardatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyartimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMmagyartimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyardatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMmagyardatesep}{/} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMmagyartimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMmagyartimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{magyar}{daymonthsep}{\renewcommand*{\DTMmagyardaymonthsep}{#1}} +\DTMdefkey{magyar}{monthyearsep}{\renewcommand*{\DTMmagyarmonthyearsep}{#1}} +\DTMdefkey{magyar}{datetimesep}{\renewcommand*{\DTMmagyardatetimesep}{#1}} +\DTMdefkey{magyar}{timezonesep}{\renewcommand*{\DTMmagyartimezonesep}{#1}} +\DTMdefkey{magyar}{datesep}{\renewcommand*{\DTMmagyardatesep}{#1}} +\DTMdefkey{magyar}{timesep}{\renewcommand*{\DTMmagyartimesep}{#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{magyar}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{magyar}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{magyar}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{magyar}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{magyar}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{magyar}{showyear}{true} +% \end{macrocode} +% +% Define the "magyar" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {magyar}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{magyar}{showdayofmonth} + {\DTMmagyarordinal{##3}\DTMmagyardaymonthsep}% + {}% + \DTMmagyarmonthname{##2}% + \DTMifbool{magyar}{showyear}% + {% + \DTMmagyarmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{magyar}{showdayofmonth} + {% + \DTMmagyarordinal{##3}\DTMmagyardaymonthsep + \DTMmagyarmonthname{##2}% + }% + {% + \DTMmagyarMonthname{##2}% + }% + \DTMifbool{magyar}{showyear}% + {% + \DTMmagyarmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMmagyarzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{magyar}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMmagyartimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMmagyardatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMmagyartimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMmagyardatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMmagyartimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {magyar-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{magyar}{showdayofmonth}% + {% + \number##3 % space intended + \DTMmagyardatesep + }% + {}% + \number##2 % space intended + \DTMifbool{magyar}{showyear}% + {% + \DTMmagyardatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMmagyartimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMmagyartimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMmagyarzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{magyar}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMmagyartimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMmagyardatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMmagyartimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMmagyarzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. There are currently no mappings defined. +% \begin{macrocode} +\newcommand*{\DTMmagyarzonemaps}{% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{magyar}} +{\DTMsetstyle{magyar-numeric}} +% \end{macrocode} +% +% Redefine \cs{datemagyar} (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\datemagyar + {% do nothing + }% + {% + \def\datemagyar{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{magyar}}% + {\DTMsetstyle{magyar-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{magyar}}% + {\DTMsetstyle{magyar-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-magyar.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-magyar/datetime2-magyar.ins b/Master/texmf-dist/source/latex/datetime2-magyar/datetime2-magyar.ins new file mode 100644 index 00000000000..fae6431931d --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-magyar/datetime2-magyar.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-magyar.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-magyar.dtx and + datetime2-magyar.ins and the derived files + datetime2-magyar-utf8.ldf, datetime2-magyar-ascii.ldf and + datetime2-magyar.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-magyar-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-magyar.dtx}{datetime2-magyar-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-magyar-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-magyar.dtx}{datetime2-magyar-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-magyar.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-magyar.dtx}{datetime2-magyar.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-norsk/datetime2-norsk.dtx b/Master/texmf-dist/source/latex/datetime2-norsk/datetime2-norsk.dtx new file mode 100644 index 00000000000..3ee4bf488ea --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-norsk/datetime2-norsk.dtx @@ -0,0 +1,723 @@ +%\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 Norwegian Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{297} + +\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-norsk.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Norwegian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (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 Norwegian 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-norsk}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Norwegian. +%In particular, I don't know if the "norsk" 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-norsk.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-norsk-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-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{norsk-utf8}[2015/03/31 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMnorskordinal} +% \begin{macrocode} +\newcommand*{\DTMnorskordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskmonthname} +% Norwegian month names. +% \begin{macrocode} +\newcommand*{\DTMnorskmonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + mars% + \or + april% + \or + mai% + \or + juni% + \or + juli% + \or + august% + \or + september% + \or + oktober% + \or + november% + \or + desember% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMnorskMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Mars% + \or + April% + \or + Mai% + \or + Juni% + \or + Juli% + \or + August% + \or + September% + \or + Oktober% + \or + November% + \or + Desember% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\begin{macro}{\DTMnorskweekdayname} +% Day of week names. +% \begin{macrocode} +\newcommand*{\DTMnorskweekdayname}[1]{% + \ifcase#1 + mandag% + \or + tirsdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + lørdag% + \or + søndag% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMnorskWeekdayname}[1]{% + \ifcase#1 + Mandag% + \or + Tirsdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + Lørdag% + \or + Søndag% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-norsk-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-norsk-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-norsk-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{norsk-ascii}[2015/03/31 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMnorskordinal} +% \begin{macrocode} +\newcommand*{\DTMnorskordinal}[1]{% + \number#1.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskmonthname} +% Norwegian month names. +% \begin{macrocode} +\newcommand*{\DTMnorskmonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + mars% + \or + april% + \or + mai% + \or + juni% + \or + juli% + \or + august% + \or + september% + \or + oktober% + \or + november% + \or + desember% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMnorskMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Mars% + \or + April% + \or + Mai% + \or + Juni% + \or + Juli% + \or + August% + \or + September% + \or + Oktober% + \or + November% + \or + Desember% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskweekdayname} +% Day of week names. +% \begin{macrocode} +\newcommand*{\DTMnorskweekdayname}[1]{% + \ifcase#1 + mandag% + \or + tirsdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + l\o rdag% + \or + s\o ndag% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMnorskWeekdayname}[1]{% + \ifcase#1 + Mandag% + \or + Tirsdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + L\o rdag% + \or + S\o ndag% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-norsk-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Norwegian Module (\texttt{datetime2-norsk.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-norsk.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{norsk}[2015/03/31 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{norsk-utf8} if either of those engines are used +% otherwise load \texttt{norsk-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{norsk-utf8} +\else + \ifluatex + \RequireDateTimeModule{norsk-utf8} + \else + \RequireDateTimeModule{norsk-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{norsk} 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 "norsk" and +% "norsk-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}{\DTMnorskdaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMnorskdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMnorskmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMnorskdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorsktimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMnorsktimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorskdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMnorskdatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMnorsktimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMnorsktimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{norsk}{daymonthsep}{\renewcommand*{\DTMnorskdaymonthsep}{#1}} +\DTMdefkey{norsk}{monthyearsep}{\renewcommand*{\DTMnorskmonthyearsep}{#1}} +\DTMdefkey{norsk}{datetimesep}{\renewcommand*{\DTMnorskdatetimesep}{#1}} +\DTMdefkey{norsk}{timezonesep}{\renewcommand*{\DTMnorsktimezonesep}{#1}} +\DTMdefkey{norsk}{datesep}{\renewcommand*{\DTMnorskdatesep}{#1}} +\DTMdefkey{norsk}{timesep}{\renewcommand*{\DTMnorsktimesep}{#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{norsk}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{norsk}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{norsk}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{norsk}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{norsk}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{norsk}{showyear}{true} +% \end{macrocode} +% +% Define the "norsk" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {norsk}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{norsk}{showdayofmonth} + {\DTMnorskordinal{##3}\DTMnorskdaymonthsep}% + {}% + \DTMnorskmonthname{##2}% + \DTMifbool{norsk}{showyear}% + {% + \DTMnorskmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{norsk}{showdayofmonth} + {% + \DTMnorskordinal{##3}\DTMnorskdaymonthsep + \DTMnorskmonthname{##2}% + }% + {% + \DTMnorskMonthname{##2}% + }% + \DTMifbool{norsk}{showyear}% + {% + \DTMnorskmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMnorskzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{norsk}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMnorsktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMnorskdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMnorsktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMnorskdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMnorsktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {norsk-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{norsk}{showdayofmonth}% + {% + \number##3 % space intended + \DTMnorskdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{norsk}{showyear}% + {% + \DTMnorskdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMnorsktimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMnorsktimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMnorskzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{norsk}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMnorsktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMnorskdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMnorsktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMnorskzonemaps} +% 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*{\DTMnorskzonemaps}{% + \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{norsk}} +{\DTMsetstyle{norsk-numeric}} +% \end{macrocode} +% +% Redefine \cs{datenorsk} (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\datenorsk + {% do nothing + }% + {% + \def\datenorsk{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{norsk}}% + {\DTMsetstyle{norsk-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{norsk}}% + {\DTMsetstyle{norsk-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-norsk.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-norsk/datetime2-norsk.ins b/Master/texmf-dist/source/latex/datetime2-norsk/datetime2-norsk.ins new file mode 100644 index 00000000000..ad619455f90 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-norsk/datetime2-norsk.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-norsk.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-norsk.dtx and + datetime2-norsk.ins and the derived files + datetime2-norsk-utf8.ldf, datetime2-norsk-ascii.ldf and + datetime2-norsk.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-norsk-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-norsk.dtx}{datetime2-norsk-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-norsk-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-norsk.dtx}{datetime2-norsk-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-norsk.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-norsk.dtx}{datetime2-norsk.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-polish/datetime2-polish.dtx b/Master/texmf-dist/source/latex/datetime2-polish/datetime2-polish.dtx new file mode 100644 index 00000000000..5c22610f5f3 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-polish/datetime2-polish.dtx @@ -0,0 +1,723 @@ +%\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 Polish Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{313} + +\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-polish.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Polish Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (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 Polish 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-polish}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Polish. +%In particular, I don't know if the "polish" 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-polish.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-polish-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-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{polish-utf8}[2015/03/31 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMpolishordinal} +% \begin{macrocode} +\newcommand*{\DTMpolishordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishmonthname} +% Polish month names. +% \begin{macrocode} +\newcommand*{\DTMpolishmonthname}[1]{% + \ifcase#1 + \or + stycznia% + \or + lutego% + \or + marca% + \or + kwietnia% + \or + maja% + \or + czerwca% + \or + lipca% + \or + sierpnia% + \or + września% + \or + października% + \or + listopada% + \or + grudnia% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMpolishMonthname}[1]{% + \ifcase#1 + \or + Stycznia% + \or + Lutego% + \or + Marca% + \or + Kwietnia% + \or + Maja% + \or + Czerwca% + \or + Lipca% + \or + Sierpnia% + \or + Września% + \or + Października% + \or + Listopada% + \or + Grudnia% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\begin{macro}{\DTMpolishweekdayname} +% Day of week names. +% \begin{macrocode} +\newcommand*{\DTMpolishweekdayname}[1]{% + \ifcase#1 + poniedziałek% + \or + wtorek% + \or + środa% + \or + czwartek% + \or + piątek% + \or + sobota% + \or + niedziela% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMpolishWeekdayname}[1]{% + \ifcase#1 + Poniedziałek% + \or + Wtorek% + \or + Środa% + \or + Czwartek% + \or + Piątek% + \or + Sobota% + \or + Niedziela% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-polish-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-polish-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-polish-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{polish-ascii}[2015/03/31 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMpolishordinal} +% \begin{macrocode} +\newcommand*{\DTMpolishordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishmonthname} +% Polish month names. +% \begin{macrocode} +\newcommand*{\DTMpolishmonthname}[1]{% + \ifcase#1 + \or + stycznia% + \or + lutego% + \or + marca% + \or + kwietnia% + \or + maja% + \or + czerwca% + \or + lipca% + \or + sierpnia% + \or + wrze\protect\'snia% + \or + pa\protect\'zdziernika% + \or + listopada% + \or + grudnia% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMpolishMonthname}[1]{% + \ifcase#1 + \or + Stycznia% + \or + Lutego% + \or + Marca% + \or + Kwietnia% + \or + Maja% + \or + Czerwca% + \or + Lipca% + \or + Sierpnia% + \or + Wrze\protect\'snia% + \or + Pa\protect\'zdziernika% + \or + Listopada% + \or + Grudnia% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishweekdayname} +% Day of week names. +% \begin{macrocode} +\newcommand*{\DTMpolishweekdayname}[1]{% + \ifcase#1 + poniedzia\protect\l ek% + \or + wtorek% + \or + \protect\'sroda% + \or + czwartek% + \or + pi\protect\k atek% + \or + sobota% + \or + niedziela% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMpolishWeekdayname}[1]{% + \ifcase#1 + Poniedzia\protect\l ek% + \or + Wtorek% + \or + \protect\'Sroda% + \or + Czwartek% + \or + Pi\protect\k atek% + \or + Sobota% + \or + Niedziela% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-polish-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Polish Module (\texttt{datetime2-polish.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-polish.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{polish}[2015/03/31 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{polish-utf8} if either of those engines are used +% otherwise load \texttt{polish-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{polish-utf8} +\else + \ifluatex + \RequireDateTimeModule{polish-utf8} + \else + \RequireDateTimeModule{polish-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{polish} 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 "polish" and +% "polish-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}{\DTMpolishdaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMpolishdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMpolishmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishdatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMpolishdatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishtimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMpolishtimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishdatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMpolishdatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMpolishtimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMpolishtimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{polish}{daymonthsep}{\renewcommand*{\DTMpolishdaymonthsep}{#1}} +\DTMdefkey{polish}{monthyearsep}{\renewcommand*{\DTMpolishmonthyearsep}{#1}} +\DTMdefkey{polish}{datetimesep}{\renewcommand*{\DTMpolishdatetimesep}{#1}} +\DTMdefkey{polish}{timezonesep}{\renewcommand*{\DTMpolishtimezonesep}{#1}} +\DTMdefkey{polish}{datesep}{\renewcommand*{\DTMpolishdatesep}{#1}} +\DTMdefkey{polish}{timesep}{\renewcommand*{\DTMpolishtimesep}{#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{polish}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{polish}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{polish}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{polish}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{polish}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{polish}{showyear}{true} +% \end{macrocode} +% +% Define the "polish" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {polish}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{polish}{showdayofmonth} + {\DTMpolishordinal{##3}\DTMpolishdaymonthsep}% + {}% + \DTMpolishmonthname{##2}% + \DTMifbool{polish}{showyear}% + {% + \DTMpolishmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{polish}{showdayofmonth} + {% + \DTMpolishordinal{##3}\DTMpolishdaymonthsep + \DTMpolishmonthname{##2}% + }% + {% + \DTMpolishMonthname{##2}% + }% + \DTMifbool{polish}{showyear}% + {% + \DTMpolishmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMpolishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{polish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMpolishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMpolishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMpolishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMpolishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMpolishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {polish-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{polish}{showdayofmonth}% + {% + \number##3 % space intended + \DTMpolishdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{polish}{showyear}% + {% + \DTMpolishdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMpolishtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMpolishtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMpolishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{polish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMpolishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMpolishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMpolishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMpolishzonemaps} +% 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*{\DTMpolishzonemaps}{% + \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{polish}} +{\DTMsetstyle{polish-numeric}} +% \end{macrocode} +% +% Redefine \cs{datepolish} (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\datepolish + {% do nothing + }% + {% + \def\datepolish{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{polish}}% + {\DTMsetstyle{polish-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{polish}}% + {\DTMsetstyle{polish-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-polish.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-polish/datetime2-polish.ins b/Master/texmf-dist/source/latex/datetime2-polish/datetime2-polish.ins new file mode 100644 index 00000000000..5b4c36b3038 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-polish/datetime2-polish.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-polish.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-polish.dtx and + datetime2-polish.ins and the derived files + datetime2-polish-utf8.ldf, datetime2-polish-ascii.ldf and + datetime2-polish.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-polish-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-polish.dtx}{datetime2-polish-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-polish-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-polish.dtx}{datetime2-polish-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-polish.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-polish.dtx}{datetime2-polish.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.dtx b/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.dtx new file mode 100644 index 00000000000..ad0b55b624b --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.dtx @@ -0,0 +1,723 @@ +%\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 Romanian Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{313} + +\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-romanian.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Romanian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (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 Romanian 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-romanian}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Romanian. +%In particular, I don't know if the "romanian" 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-romanian.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-romanian-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-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{romanian-utf8}[2015/03/31 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMromanianordinal} +% \begin{macrocode} +\newcommand*{\DTMromanianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianmonthname} +% Romanian month names. +% \begin{macrocode} +\newcommand*{\DTMromanianmonthname}[1]{% + \ifcase#1 + \or + ianuarie% + \or + februarie% + \or + martie% + \or + aprilie% + \or + mai% + \or + iunie% + \or + iulie% + \or + august% + \or + septembrie% + \or + octombrie% + \or + noiembrie% + \or + decembrie% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMromanianMonthname}[1]{% + \ifcase#1 + \or + Ianuarie% + \or + Februarie% + \or + Martie% + \or + Aprilie% + \or + Mai% + \or + Iunie% + \or + Iulie% + \or + August% + \or + Septembrie% + \or + Octombrie% + \or + Noiembrie% + \or + Decembrie% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\begin{macro}{\DTMromanianweekdayname} +% Day of week names. +% \begin{macrocode} +\newcommand*{\DTMromanianweekdayname}[1]{% + \ifcase#1 + luni% + \or + marţi% + \or + miercuri% + \or + joi% + \or + vineri% + \or + sâmbătă% + \or + duminică% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMromanianWeekdayname}[1]{% + \ifcase#1 + Luni% + \or + Marţi% + \or + Miercuri% + \or + Joi% + \or + Vineri% + \or + Sâmbătă% + \or + Duminică% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-romanian-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-romanian-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-romanian-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{romanian-ascii}[2015/03/31 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMromanianordinal} +% \begin{macrocode} +\newcommand*{\DTMromanianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianmonthname} +% Romanian month names. +% \begin{macrocode} +\newcommand*{\DTMromanianmonthname}[1]{% + \ifcase#1 + \or + ianuarie% + \or + februarie% + \or + martie% + \or + aprilie% + \or + mai% + \or + iunie% + \or + iulie% + \or + august% + \or + septembrie% + \or + octombrie% + \or + noiembrie% + \or + decembrie% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMromanianMonthname}[1]{% + \ifcase#1 + \or + Ianuarie% + \or + Februarie% + \or + Martie% + \or + Aprilie% + \or + Mai% + \or + Iunie% + \or + Iulie% + \or + August% + \or + Septembrie% + \or + Octombrie% + \or + Noiembrie% + \or + Decembrie% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianweekdayname} +% Day of week names. +% \begin{macrocode} +\newcommand*{\DTMromanianweekdayname}[1]{% + \ifcase#1 + luni% + \or + mar\protect\c ti% + \or + miercuri% + \or + joi% + \or + vineri% + \or + s\protect\^amb\protect\u at\protect\u a% + \or + duminic\protect\u a% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianWeekdayname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMromanianWeekdayname}[1]{% + \ifcase#1 + Luni% + \or + Mar\protect\c ti% + \or + Miercuri% + \or + Joi% + \or + Vineri% + \or + S\protect\^amb\protect\u at\protect\u a% + \or + Duminic\protect\u a% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-romanian-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Romanian Module (\texttt{datetime2-romanian.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-romanian.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{romanian}[2015/03/31 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{romanian-utf8} if either of those engines are used +% otherwise load \texttt{romanian-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{romanian-utf8} +\else + \ifluatex + \RequireDateTimeModule{romanian-utf8} + \else + \RequireDateTimeModule{romanian-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{romanian} 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 "romanian" and +% "romanian-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}{\DTMromaniandaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMromaniandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromanianmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMromanianmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromaniandatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMromaniandatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromaniantimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMromaniantimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromaniandatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMromaniandatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMromaniantimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMromaniantimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{romanian}{daymonthsep}{\renewcommand*{\DTMromaniandaymonthsep}{#1}} +\DTMdefkey{romanian}{monthyearsep}{\renewcommand*{\DTMromanianmonthyearsep}{#1}} +\DTMdefkey{romanian}{datetimesep}{\renewcommand*{\DTMromaniandatetimesep}{#1}} +\DTMdefkey{romanian}{timezonesep}{\renewcommand*{\DTMromaniantimezonesep}{#1}} +\DTMdefkey{romanian}{datesep}{\renewcommand*{\DTMromaniandatesep}{#1}} +\DTMdefkey{romanian}{timesep}{\renewcommand*{\DTMromaniantimesep}{#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{romanian}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{romanian}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{romanian}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{romanian}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{romanian}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{romanian}{showyear}{true} +% \end{macrocode} +% +% Define the "romanian" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {romanian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{romanian}{showdayofmonth} + {\DTMromanianordinal{##3}\DTMromaniandaymonthsep}% + {}% + \DTMromanianmonthname{##2}% + \DTMifbool{romanian}{showyear}% + {% + \DTMromanianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{romanian}{showdayofmonth} + {% + \DTMromanianordinal{##3}\DTMromaniandaymonthsep + \DTMromanianmonthname{##2}% + }% + {% + \DTMromanianMonthname{##2}% + }% + \DTMifbool{romanian}{showyear}% + {% + \DTMromanianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMromanianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{romanian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMromaniantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMromaniandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMromaniantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMromaniandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMromaniantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {romanian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{romanian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMromaniandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{romanian}{showyear}% + {% + \DTMromaniandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMromaniantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMromaniantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMromanianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{romanian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMromaniantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMromaniandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMromaniantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMromanianzonemaps} +% 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*{\DTMromanianzonemaps}{% + \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{romanian}} +{\DTMsetstyle{romanian-numeric}} +% \end{macrocode} +% +% Redefine \cs{dateromanian} (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\dateromanian + {% do nothing + }% + {% + \def\dateromanian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{romanian}}% + {\DTMsetstyle{romanian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{romanian}}% + {\DTMsetstyle{romanian-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-romanian.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.ins b/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.ins new file mode 100644 index 00000000000..6c41ae50977 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-romanian.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-romanian.dtx and + datetime2-romanian.ins and the derived files + datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and + datetime2-romanian.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-romanian-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-romanian.dtx}{datetime2-romanian-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-romanian-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-romanian.dtx}{datetime2-romanian-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-romanian.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-romanian.dtx}{datetime2-romanian.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-russian/datetime2-russian.dtx b/Master/texmf-dist/source/latex/datetime2-russian/datetime2-russian.dtx new file mode 100644 index 00000000000..4eb3d6952dd --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-russian/datetime2-russian.dtx @@ -0,0 +1,640 @@ +%\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 Russian Module}]{hyperref} + +\newfontfamily\cyrillicfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{401} + +\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-russian.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Russian Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (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 Russian 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-russian}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Russian. +%In particular, I don't know if the "russian" 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-russian.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-russian-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-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{russian-utf8}[2015/03/31 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMrussianordinal} +% \begin{macrocode} +\newcommand*{\DTMrussianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussianyear} +% \begin{macrocode} +\newcommand*{\DTMrussianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}г.% +} +% \end{macrocode} +%\end{macro} +% +% +%\begin{macro}{\DTMrussianmonthname} +% Russian month names. +% \begin{macrocode} +\newcommand*{\DTMrussianmonthname}[1]{% + \ifcase#1 + \or + января% + \or + февраля% + \or + марта% + \or + апреля% + \or + мая% + \or + июня% + \or + июля% + \or + августа% + \or + сентября% + \or + октября% + \or + ноября% + \or + декабря% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussianMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMrussianMonthname}[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-russian-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-russian-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-russian-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{russian-ascii}[2015/03/31 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMrussianordinal} +% \begin{macrocode} +\newcommand*{\DTMrussianordinal}[1]{% + \number#1 +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussianyear} +% \begin{macrocode} +\newcommand*{\DTMrussianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}\protect\cyrg.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussianmonthname} +% Russian month names. +% \begin{macrocode} +\newcommand*{\DTMrussianmonthname}[1]{% + \ifcase#1 + \or + \protect\cyrya\protect\cyrn\protect\cyrv\protect\cyra\protect\cyrr + \protect\cyrya + \or + \protect\cyrf\protect\cyre\protect\cyrv\protect\cyrr\protect\cyra + \protect\cyrl\protect\cyrya + \or + \protect\cyrm\protect\cyra\protect\cyrr\protect\cyrt\protect\cyra + \or + \protect\cyra\protect\cyrp\protect\cyrr\protect\cyre\protect\cyrl + \protect\cyrya + \or + \protect\cyrm\protect\cyra\protect\cyrya + \or + \protect\cyri\protect\cyryu\protect\cyrn\protect\cyrya + \or + \protect\cyri\protect\cyryu\protect\cyrl\protect\cyrya + \or + \protect\cyra\protect\cyrv\protect\cyrg\protect\cyru\protect\cyrs + \protect\cyrt\protect\cyra + \or + \protect\cyrs\protect\cyre\protect\cyrn\protect\cyrt\protect\cyrya + \protect\cyrb\protect\cyrr\protect\cyrya + \or + \protect\cyro\protect\cyrk\protect\cyrt\protect\cyrya\protect\cyrb + \protect\cyrr\protect\cyrya + \or + \protect\cyrn\protect\cyro\protect\cyrya\protect\cyrb\protect\cyrr + \protect\cyrya + \or + \protect\cyrd\protect\cyre\protect\cyrk\protect\cyra\protect\cyrb + \protect\cyrr\protect\cyrya + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussianMonthname} +% As above but start with a capital. +% \begin{macrocode} +\newcommand*{\DTMrussianMonthname}[1]{% +} +% \end{macrocode} +%\end{macro} +% +%\iffalse +% \begin{macrocode} +%</datetime2-russian-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Russian Module (\texttt{datetime2-russian.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-russian.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{russian}[2015/03/31 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{russian-utf8} if either of those engines are used +% otherwise load \texttt{russian-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{russian-utf8} +\else + \ifluatex + \RequireDateTimeModule{russian-utf8} + \else + \RequireDateTimeModule{russian-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{russian} 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 "russian" and +% "russian-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}{\DTMrussiandaymonthsep} +% The separator between the day and month for the text format. +% \begin{macrocode} +\newcommand*{\DTMrussiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussianmonthyearsep} +% The separator between the month and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMrussianmonthyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussiandatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMrussiandatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussiantimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMrussiantimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussiandatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMrussiandatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMrussiantimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMrussiantimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{russian}{daymonthsep}{\renewcommand*{\DTMrussiandaymonthsep}{#1}} +\DTMdefkey{russian}{monthyearsep}{\renewcommand*{\DTMrussianmonthyearsep}{#1}} +\DTMdefkey{russian}{datetimesep}{\renewcommand*{\DTMrussiandatetimesep}{#1}} +\DTMdefkey{russian}{timezonesep}{\renewcommand*{\DTMrussiantimezonesep}{#1}} +\DTMdefkey{russian}{datesep}{\renewcommand*{\DTMrussiandatesep}{#1}} +\DTMdefkey{russian}{timesep}{\renewcommand*{\DTMrussiantimesep}{#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{russian}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{russian}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{russian}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{russian}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{russian}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{russian}{showyear}{true} +% \end{macrocode} +% +% Define the "russian" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {russian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{russian}{showdayofmonth} + {\DTMrussianordinal{##3}\DTMrussiandaymonthsep}% + {}% + \DTMrussianmonthname{##2}% + \DTMifbool{russian}{showyear}% + {% + \DTMrussianmonthyearsep + \DTMrussianyear{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{russian}{showdayofmonth} + {% + \DTMrussianordinal{##3}\DTMrussiandaymonthsep + \DTMrussianmonthname{##2}% + }% + {% + \DTMrussianMonthname{##2}% + }% + \DTMifbool{russian}{showyear}% + {% + \DTMrussianmonthyearsep + \DTMrussianyear{##1}% + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMrussianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{russian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMrussiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMrussiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMrussiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMrussiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMrussiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {russian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{russian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMrussiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{russian}{showyear}% + {% + \DTMrussiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMrussiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMrussiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMrussianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{russian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMrussiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMrussiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMrussiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMrussianzonemaps} +% 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). Daylight saving is not taken into account. +% \begin{macrocode} +\newcommand*{\DTMrussianzonemaps}{% + \DTMdefzonemap{03}{00}{MKT}% + \DTMdefzonemap{04}{00}{SAMT}% + \DTMdefzonemap{05}{00}{YEKT}% + \DTMdefzonemap{06}{00}{OMST}% + \DTMdefzonemap{07}{00}{KRAT}% + \DTMdefzonemap{08}{00}{IRKST}% + \DTMdefzonemap{09}{00}{YAKST}% + \DTMdefzonemap{10}{00}{VLAT}% + \DTMdefzonemap{11}{00}{SRET}% + \DTMdefzonemap{12}{00}{PETT}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{russian}} +{\DTMsetstyle{russian-numeric}} +% \end{macrocode} +% +% Redefine \cs{daterussian} (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\daterussian + {% do nothing + }% + {% + \def\daterussian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{russian}}% + {\DTMsetstyle{russian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{russian}}% + {\DTMsetstyle{russian-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-russian.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-russian/datetime2-russian.ins b/Master/texmf-dist/source/latex/datetime2-russian/datetime2-russian.ins new file mode 100644 index 00000000000..4af80e64702 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-russian/datetime2-russian.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-russian.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-russian.dtx and + datetime2-russian.ins and the derived files + datetime2-russian-utf8.ldf, datetime2-russian-ascii.ldf and + datetime2-russian.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-russian-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-russian.dtx}{datetime2-russian-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-russian-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-russian.dtx}{datetime2-russian-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-russian.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-russian.dtx}{datetime2-russian.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/source/latex/datetime2-samin/datetime2-samin.dtx b/Master/texmf-dist/source/latex/datetime2-samin/datetime2-samin.dtx new file mode 100644 index 00000000000..175dda39edf --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-samin/datetime2-samin.dtx @@ -0,0 +1,631 @@ +%\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 Northern Sami Module}]{hyperref} + +\setmainfont{Liberation Serif} +\setmonofont{Liberation Mono} + +\CheckSum{332} + +\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-samin.dtx} +\end{document} +%</driver> +%\fi +% +%\MakeShortVerb{"} +% +%\title{Northern Sami Module for datetime2 Package} +%\author{Nicola L. C. Talbot (inactive)} +%\date{2015-03-31 (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 Northern Sami 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-samin}'s \cs{today}. +% +%I don't know if these settings are correct as I can't speak Northern Sami. +%In particular, I don't know if the "samin" 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-samin.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-samin-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-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{samin-utf8}[2015/03/31 v1.0] +% \end{macrocode} +%\begin{macro}{\DTMsaminordinal} +% \begin{macrocode} +\newcommand*{\DTMsaminordinal}[1]{% + \number#1.\DTMtexorpdfstring{\protect~}{\space}b.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsaminmonthname} +% Northern Sami month names. +% \begin{macrocode} +\newcommand*{\DTMsaminmonthname}[1]{% + \ifcase#1 + \or + ođđajagemánu% + \or + guovvamánu% + \or + njukčamánu% + \or + cuoŋománu% + \or + miessemánu% + \or + geassemánu% + \or + suoidnemánu% + \or + borgemánu% + \or + čakčamánu% + \or + golggotmánu% + \or + skábmamánu% + \or + juovlamánu% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsaminMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMsaminMonthname}[1]{% + \ifcase#1 + \or + Ođđajagemánu% + \or + Guovvamánu% + \or + Njukčamánu% + \or + Cuoŋománu% + \or + Miessemánu% + \or + Geassemánu% + \or + Suoidnemánu% + \or + Borgemánu% + \or + Čakčamánu% + \or + Golggotmánu% + \or + Skábmamánu% + \or + Juovlamánu% + \fi +} +% \end{macrocode} +%\end{macro} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +% +%\iffalse +% \begin{macrocode} +%</datetime2-samin-utf8.ldf> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime2-samin-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-samin-utf8.ldf} file as the non-ASCII +%characters are made active in that situation and would need +%protecting against expansion. +%\changes{1.0}{2015-03-31}{Initial release} +% Identify module +% \begin{macrocode} +\ProvidesDateTimeModule{samin-ascii}[2015/03/31 v1.0] +% \end{macrocode} +% +%If abbreviated dates are supported, short month names should be +%likewise provided. +%\begin{macro}{\DTMsaminordinal} +% \begin{macrocode} +\newcommand*{\DTMsaminordinal}[1]{% + \number#1.\DTMtexorpdfstring{\protect~}{\space}b.% +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsaminmonthname} +% Northern Sami month names. +% \begin{macrocode} +\newcommand*{\DTMsaminmonthname}[1]{% + \ifcase#1 + \or + o\protect\dj\protect\dj ajagem\protect\'anu% + \or + guovvam\protect\'anu% + \or + njuk\protect\v cam\protect\'anu% + \or + cuo\protect\ng om\protect\'anu% + \or + miessem\protect\'anu% + \or + geassem\protect\'anu% + \or + suoidnem\protect\'anu% + \or + borgem\protect\'anu% + \or + \protect\v cak\protect\v cam\protect\'anu% + \or + golggotm\protect\'anu% + \or + sk\protect\'abmam\protect\'anu% + \or + juovlam\protect\'anu% + \fi +} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsaminMonthname} +% As above but capitalize. +% \begin{macrocode} +\newcommand*{\DTMsaminMonthname}[1]{% + \ifcase#1 + \or + O\protect\dj\protect\dj ajagem\protect\'anu% + \or + Guovvam\protect\'anu% + \or + Njuk\protect\v cam\protect\'anu% + \or + Cuo\protect\ng om\protect\'anu% + \or + Miessem\protect\'anu% + \or + Geassem\protect\'anu% + \or + Suoidnem\protect\'anu% + \or + Borgem\protect\'anu% + \or + \protect\v Cak\protect\v cam\protect\'anu% + \or + Golggotm\protect\'anu% + \or + Sk\protect\'abmam\protect\'anu% + \or + Juovlam\protect\'anu% + \fi +} +% \end{macrocode} +%\end{macro} +% +% +%\iffalse +% \begin{macrocode} +%</datetime2-samin-ascii.ldf> +% \end{macrocode} +%\fi +% +%\subsection{Main Northern Sami Module (\texttt{datetime2-samin.ldf})} +%\changes{1.0}{2015-03-31}{Initial release} +% +%\iffalse +% \begin{macrocode} +%<*datetime2-samin.ldf> +% \end{macrocode} +%\fi +% +% Identify Module +% \begin{macrocode} +\ProvidesDateTimeModule{samin}[2015/03/31 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{samin-utf8} if either of those engines are used +% otherwise load \texttt{samin-ascii}. +% \begin{macrocode} +\ifxetex + \RequireDateTimeModule{samin-utf8} +\else + \ifluatex + \RequireDateTimeModule{samin-utf8} + \else + \RequireDateTimeModule{samin-ascii} + \fi +\fi +% \end{macrocode} +% +% Define the \texttt{samin} 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 "samin" and +% "samin-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}{\DTMsaminmonthdaysep} +% The separator between the month and day for the text format. +% \begin{macrocode} +\newcommand*{\DTMsaminmonthdaysep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsamindayyearsep} +% The separator between the day and year for the text format. +% \begin{macrocode} +\newcommand*{\DTMsamindayyearsep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsamindatetimesep} +% The separator between the date and time blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMsamindatetimesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsamintimezonesep} +% The separator between the time and zone blocks in the full format +% (either text or numeric). +% \begin{macrocode} +\newcommand*{\DTMsamintimezonesep}{\space} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsamindatesep} +% The separator for the numeric date format. +% \begin{macrocode} +\newcommand*{\DTMsamindatesep}{.} +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\DTMsamintimesep} +% The separator for the numeric time format. +% \begin{macrocode} +\newcommand*{\DTMsamintimesep}{:} +% \end{macrocode} +%\end{macro} +% +%Provide keys that can be used in \cs{DTMlangsetup} to set these +%separators. +% \begin{macrocode} +\DTMdefkey{samin}{monthdaysep}{\renewcommand*{\DTMsaminmonthdaysep}{#1}} +\DTMdefkey{samin}{dayyearsep}{\renewcommand*{\DTMsamindayyearsep}{#1}} +\DTMdefkey{samin}{datetimesep}{\renewcommand*{\DTMsamindatetimesep}{#1}} +\DTMdefkey{samin}{timezonesep}{\renewcommand*{\DTMsamintimezonesep}{#1}} +\DTMdefkey{samin}{datesep}{\renewcommand*{\DTMsamindatesep}{#1}} +\DTMdefkey{samin}{timesep}{\renewcommand*{\DTMsamintimesep}{#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{samin}{mapzone}[true]{} +% \end{macrocode} +% The default is to use mappings. +% \begin{macrocode} +\DTMsetbool{samin}{mapzone}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the day of month should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{samin}{showdayofmonth}[true]{} +% \end{macrocode} +% The default is to show the day of month. +% \begin{macrocode} +\DTMsetbool{samin}{showdayofmonth}{true} +% \end{macrocode} +% +% Define a boolean key that determines if the year should be +% displayed. +% \begin{macrocode} +\DTMdefboolkey{samin}{showyear}[true]{} +% \end{macrocode} +% The default is to show the year. +% \begin{macrocode} +\DTMsetbool{samin}{showyear}{true} +% \end{macrocode} +% +% Define the "samin" style. (TODO: implement day of week?) +% \begin{macrocode} +\DTMnewstyle + {samin}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMsaminmonthname{##2}% + \DTMifbool{samin}{showdayofmonth} + {% + \DTMsaminmonthdaysep + \DTMsaminordinal{##3}% + }% + {}% + \DTMifbool{samin}{showyear}% + {% + \DTMsamindayyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMsaminMonthname{##2}% + \DTMifbool{samin}{showdayofmonth} + {% + \DTMsaminmonthdaysep + \DTMsaminordinal{##3}% + }% + {}% + \DTMifbool{samin}{showyear}% + {% + \DTMsamindayyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMsaminzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{samin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsamintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsamindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMsamintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsamindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMsamintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +% \end{macrocode} +% +% Define numeric style. +% \begin{macrocode} +\DTMnewstyle + {samin-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{samin}{showdayofmonth}% + {% + \number##3 % space intended + \DTMsamindatesep + }% + {}% + \number##2 % space intended + \DTMifbool{samin}{showyear}% + {% + \DTMsamindatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMsamintimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsamintimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMsaminzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{samin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsamintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsamindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMsamintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +% \end{macrocode} +% +%\begin{macro}{\DTMsaminzonemaps} +% The time zone mappings are set through this command, which can be +% redefined if extra mappings are required or mappings need to be +% removed. Daylight saving isn't taken into account. +% \begin{macrocode} +\newcommand*{\DTMsaminzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{EET}% +} +% \end{macrocode} +%\end{macro} + +% Switch style according to the \opt{useregional} setting. +% \begin{macrocode} +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{samin}} +{\DTMsetstyle{samin-numeric}} +% \end{macrocode} +% +% Redefine \cs{datesamin} (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\datesamin + {% do nothing + }% + {% + \def\datesamin{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{samin}}% + {\DTMsetstyle{samin-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{samin}}% + {\DTMsetstyle{samin-numeric}} + }% +}% +% \end{macrocode} +%\iffalse +% \begin{macrocode} +%</datetime2-samin.ldf> +% \end{macrocode} +%\fi +%\Finale +\endinput diff --git a/Master/texmf-dist/source/latex/datetime2-samin/datetime2-samin.ins b/Master/texmf-dist/source/latex/datetime2-samin/datetime2-samin.ins new file mode 100644 index 00000000000..f8f46076da6 --- /dev/null +++ b/Master/texmf-dist/source/latex/datetime2-samin/datetime2-samin.ins @@ -0,0 +1,61 @@ +\input docstrip + +\preamble + + datetime2-samin.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-samin.dtx and + datetime2-samin.ins and the derived files + datetime2-samin-utf8.ldf, datetime2-samin-ascii.ldf and + datetime2-samin.ldf. + +\endpreamble + +\askforoverwritefalse + +\generate +{% + \file + {datetime2-samin-utf8.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-samin.dtx}{datetime2-samin-utf8.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-samin-ascii.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-samin.dtx}{datetime2-samin-ascii.ldf,package}% + }% +} + +\generate +{% + \file + {datetime2-samin.ldf}% + {% + \usepreamble\defaultpreamble + \usepostamble\defaultpostamble + \from{datetime2-samin.dtx}{datetime2-samin.ldf,package}% + }% +} + +\endbatchfile + diff --git a/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician-ascii.ldf new file mode 100644 index 00000000000..9fef13fc61a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician-ascii.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-galician-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-galician.dtx (with options: `datetime2-galician-ascii.ldf,package') +%% +%% datetime2-galician.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-galician.dtx and +%% datetime2-galician.ins and the derived files +%% datetime2-galician-utf8.ldf, datetime2-galician-ascii.ldf and +%% datetime2-galician.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{galician-ascii}[2015/03/30 v1.0] +\newcommand*{\DTMgalicianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMgalicianmonthname}[1]{% + \ifcase#1 + \or + xaneiro% + \or + febreiro% + \or + marzo% + \or + abril% + \or + maio% + \or + xu\protect\~no% + \or + xullo% + \or + agosto% + \or + setembro% + \or + outubro% + \or + novembro% + \or + decembro% + \fi +} +\newcommand*{\DTMgalicianMonthname}[1]{% + \ifcase#1 + \or + Xaneiro% + \or + Febreiro% + \or + Marzo% + \or + Abril% + \or + Maio% + \or + Xu\protect\~no% + \or + Xullo% + \or + Agosto% + \or + Setembro% + \or + Outubro% + \or + Novembro% + \or + Decembro% + \fi +} +\endinput +%% +%% End of file `datetime2-galician-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician-utf8.ldf new file mode 100644 index 00000000000..e5b901ec1cd --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician-utf8.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-galician-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-galician.dtx (with options: `datetime2-galician-utf8.ldf,package') +%% +%% datetime2-galician.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-galician.dtx and +%% datetime2-galician.ins and the derived files +%% datetime2-galician-utf8.ldf, datetime2-galician-ascii.ldf and +%% datetime2-galician.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{galician-utf8}[2015/03/30 v1.0] +\newcommand*{\DTMgalicianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMgalicianmonthname}[1]{% + \ifcase#1 + \or + xaneiro% + \or + febreiro% + \or + marzo% + \or + abril% + \or + maio% + \or + xuño% + \or + xullo% + \or + agosto% + \or + setembro% + \or + outubro% + \or + novembro% + \or + decembro% + \fi +} +\newcommand*{\DTMgalicianMonthname}[1]{% + \ifcase#1 + \or + Xaneiro% + \or + Febreiro% + \or + Marzo% + \or + Abril% + \or + Maio% + \or + Xuño% + \or + Xullo% + \or + Agosto% + \or + Setembro% + \or + Outubro% + \or + Novembro% + \or + Decembro% + \fi +} +\endinput +%% +%% End of file `datetime2-galician-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician.ldf b/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician.ldf new file mode 100644 index 00000000000..7f978f0cf5a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-galician/datetime2-galician.ldf @@ -0,0 +1,234 @@ +%% +%% This is file `datetime2-galician.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-galician.dtx (with options: `datetime2-galician.ldf,package') +%% +%% datetime2-galician.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-galician.dtx and +%% datetime2-galician.ins and the derived files +%% datetime2-galician-utf8.ldf, datetime2-galician-ascii.ldf and +%% datetime2-galician.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{galician}[2015/03/30 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{galician-utf8} +\else + \ifluatex + \RequireDateTimeModule{galician-utf8} + \else + \RequireDateTimeModule{galician-ascii} + \fi +\fi +\newcommand*{\DTMgaliciandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% + de\space +} +\newcommand*{\DTMgalicianmonthyearsep}{% + \space de% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMgaliciandatetimesep}{\space} +\newcommand*{\DTMgaliciantimezonesep}{\space} +\newcommand*{\DTMgaliciandatesep}{/} +\newcommand*{\DTMgaliciantimesep}{:} +\DTMdefkey{galician}{daymonthsep}{\renewcommand*{\DTMgaliciandaymonthsep}{#1}} +\DTMdefkey{galician}{monthyearsep}{\renewcommand*{\DTMgalicianmonthyearsep}{#1}} +\DTMdefkey{galician}{datetimesep}{\renewcommand*{\DTMgaliciandatetimesep}{#1}} +\DTMdefkey{galician}{timezonesep}{\renewcommand*{\DTMgaliciantimezonesep}{#1}} +\DTMdefkey{galician}{datesep}{\renewcommand*{\DTMgaliciandatesep}{#1}} +\DTMdefkey{galician}{timesep}{\renewcommand*{\DTMgaliciantimesep}{#1}} +\DTMdefboolkey{galician}{mapzone}[true]{} +\DTMsetbool{galician}{mapzone}{true} +\DTMdefboolkey{galician}{showdayofmonth}[true]{} +\DTMsetbool{galician}{showdayofmonth}{true} +\DTMdefboolkey{galician}{showyear}[true]{} +\DTMsetbool{galician}{showyear}{true} +\DTMnewstyle + {galician}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{galician}{showdayofmonth} + {\DTMgalicianordinal{##3}\DTMgaliciandaymonthsep}% + {}% + \DTMgalicianmonthname{##2}% + \DTMifbool{galician}{showyear}% + {% + \DTMgalicianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{galician}{showdayofmonth} + {% + \DTMgalicianordinal{##3}\DTMgaliciandaymonthsep + \DTMgalicianmonthname{##2}% + }% + {% + \DTMgalicianMonthname{##2}% + }% + \DTMifbool{galician}{showyear}% + {% + \DTMgalicianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMgalicianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{galician}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgaliciantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgaliciandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgaliciantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMgaliciandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgaliciantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {galician-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{galician}{showdayofmonth}% + {% + \number##3 % space intended + \DTMgaliciandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{galician}{showyear}% + {% + \DTMgaliciandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMgaliciantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMgaliciantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMgalicianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{galician}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgaliciantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgaliciandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgaliciantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMgalicianzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{galician}} +{\DTMsetstyle{galician-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dategalician + {% do nothing + }% + {% + \def\dategalician{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{galician}}% + {\DTMsetstyle{galician-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{galician}}% + {\DTMsetstyle{galician-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-galician.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek-ascii.ldf new file mode 100644 index 00000000000..007fb8e3ce9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek-ascii.ldf @@ -0,0 +1,76 @@ +%% +%% This is file `datetime2-greek-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-greek.dtx (with options: `datetime2-greek-ascii.ldf,package') +%% +%% datetime2-greek.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-greek.dtx and +%% datetime2-greek.ins and the derived files +%% datetime2-greek-utf8.ldf, datetime2-greek-ascii.ldf and +%% datetime2-greek.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{greek-ascii}[2015/03/30 v1.0] +\newcommand*{\DTMgreekordinal}[1]{% + \number#1 +} +\newcommand*{\DTMgreekmonthname}[1]{% + \ifcase#1 + \or + Ianouar\protect\'iou% + \or + Febrouar\protect\'iou% + \or + Mart\protect\'iou% + \or + April\protect\'iou% + \or + Ma\protect\'{\protect\"i}ou% + \or + Ioun\protect\'iou% + \or + Ioul\protect\'iou% + \or + Augo\protect\'ustou% + \or + Septembr\protect\'iou% + \or + Oktwbr\protect\'iou% + \or + Noembr\protect\'iou% + \or + Dekembr\protect\'iou% + \fi +} +\endinput +%% +%% End of file `datetime2-greek-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek-utf8.ldf new file mode 100644 index 00000000000..2c9ed7b182c --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek-utf8.ldf @@ -0,0 +1,76 @@ +%% +%% This is file `datetime2-greek-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-greek.dtx (with options: `datetime2-greek-utf8.ldf,package') +%% +%% datetime2-greek.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-greek.dtx and +%% datetime2-greek.ins and the derived files +%% datetime2-greek-utf8.ldf, datetime2-greek-ascii.ldf and +%% datetime2-greek.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{greek-utf8}[2015/03/30 v1.0] +\newcommand*{\DTMgreekordinal}[1]{% + \number#1 +} +\newcommand*{\DTMgreekmonthname}[1]{% + \ifcase#1 + \or + Ιανουαρίου% + \or + Φεβρουαρίου% + \or + Μαρτίου% + \or + Απριλίου% + \or + Μαΐου% + \or + Ιουνίου% + \or + Ιουλίου% + \or + Αυγούστου% + \or + Σεπτεμβρίου% + \or + Οκτωβρίου% + \or + Νοεμβρίου% + \or + Δεκεμβρίου% + \fi +} +\endinput +%% +%% End of file `datetime2-greek-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek.ldf b/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek.ldf new file mode 100644 index 00000000000..c94349c812c --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-greek/datetime2-greek.ldf @@ -0,0 +1,203 @@ +%% +%% This is file `datetime2-greek.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-greek.dtx (with options: `datetime2-greek.ldf,package') +%% +%% datetime2-greek.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-greek.dtx and +%% datetime2-greek.ins and the derived files +%% datetime2-greek-utf8.ldf, datetime2-greek-ascii.ldf and +%% datetime2-greek.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{greek}[2015/03/30 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{greek-utf8} +\else + \ifluatex + \RequireDateTimeModule{greek-utf8} + \else + \RequireDateTimeModule{greek-ascii} + \fi +\fi +\newcommand*{\DTMgreekdaymonthsep}{\space} +\newcommand*{\DTMgreekmonthyearsep}{\space} +\newcommand*{\DTMgreekdatetimesep}{\space} +\newcommand*{\DTMgreektimezonesep}{\space} +\newcommand*{\DTMgreekdatesep}{.} +\newcommand*{\DTMgreektimesep}{:} +\DTMdefkey{greek}{daymonthsep}{\renewcommand*{\DTMgreekdaymonthsep}{#1}} +\DTMdefkey{greek}{monthyearsep}{\renewcommand*{\DTMgreekmonthyearsep}{#1}} +\DTMdefkey{greek}{datetimesep}{\renewcommand*{\DTMgreekdatetimesep}{#1}} +\DTMdefkey{greek}{timezonesep}{\renewcommand*{\DTMgreektimezonesep}{#1}} +\DTMdefkey{greek}{datesep}{\renewcommand*{\DTMgreekdatesep}{#1}} +\DTMdefkey{greek}{timesep}{\renewcommand*{\DTMgreektimesep}{#1}} +\DTMdefboolkey{greek}{mapzone}[true]{} +\DTMsetbool{greek}{mapzone}{true} +\DTMdefboolkey{greek}{showdayofmonth}[true]{} +\DTMsetbool{greek}{showdayofmonth}{true} +\DTMdefboolkey{greek}{showyear}[true]{} +\DTMsetbool{greek}{showyear}{true} +\DTMnewstyle + {greek}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{greek}{showdayofmonth} + {\DTMgreekordinal{##3}\DTMgreekdaymonthsep}% + {}% + \DTMgreekmonthname{##2}% + \DTMifbool{greek}{showyear}% + {% + \DTMgreekmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMgreekzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{greek}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgreektimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgreekdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgreektimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +\DTMnewstyle + {greek-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{greek}{showdayofmonth}% + {% + \number##3 % space intended + \DTMgreekdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{greek}{showyear}% + {% + \DTMgreekdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMgreektimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMgreektimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMgreekzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{greek}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMgreektimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMgreekdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMgreektimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMgreekzonemaps}{% + \DTMdefzonemap{02}{00}{EET}% + \DTMdefzonemap{03}{00}{EEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{greek}} +{\DTMsetstyle{greek-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dategreek + {% do nothing + }% + {% + \def\dategreek{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{greek}}% + {\DTMsetstyle{greek-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{greek}}% + {\DTMsetstyle{greek-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-greek.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-hebrew/datetime2-hebrew.ldf b/Master/texmf-dist/tex/latex/datetime2-hebrew/datetime2-hebrew.ldf new file mode 100644 index 00000000000..d0d14f554cf --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-hebrew/datetime2-hebrew.ldf @@ -0,0 +1,190 @@ +%% +%% This is file `datetime2-hebrew.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-hebrew.dtx (with options: `datetime2-hebrew.ldf,package') +%% +%% datetime2-hebrew.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-hebrew.dtx and +%% datetime2-hebrew.ins and the derived file +%% datetime2-hebrew.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{hebrew}[2015/03/30 v1.0] +\ifdef\hebrewdate +{% + \newrobustcmd*\DTMhebrewdate[3]{\hebrewdate{#3}{#2}{#1}}% +}% +{% + \ifdef\hebdate + {% + \newrobustcmd*\DTMhebrewdate[3]{\hebdate{#3}{#2}{#1}}% + }% + {% + \newcommand*\DTMhebrewdate[3]{#3-#2-#1}% + \PackageWarning{datetime2-hebrew}{Neither + \string\hebrewdate\space nor \string\hebdate\space defined}{}% + }% +}% +\renewcommand*{\today}{\DTMdisplaydate{\year}{\month}{\day}{-1}} +\renewcommand*{\Today}{\DTMDisplaydate{\year}{\month}{\day}{-1}} +\newcommand*{\DTMhebrewdatetimesep}{\space} +\newcommand*{\DTMhebrewtimezonesep}{\space} +\newcommand*{\DTMhebrewdatesep}{.} +\newcommand*{\DTMhebrewtimesep}{:} +\DTMdefkey{hebrew}{datetimesep}{\renewcommand*{\DTMhebrewdatetimesep}{#1}} +\DTMdefkey{hebrew}{timezonesep}{\renewcommand*{\DTMhebrewtimezonesep}{#1}} +\DTMdefkey{hebrew}{datesep}{\renewcommand*{\DTMhebrewdatesep}{#1}} +\DTMdefkey{hebrew}{timesep}{\renewcommand*{\DTMhebrewtimesep}{#1}} +\DTMdefboolkey{hebrew}{mapzone}[true]{} +\DTMsetbool{hebrew}{mapzone}{true} +\DTMnewstyle + {hebrew}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMtexorpdfstring{\DTMhebrewdate{##1}{##2}{##3}}{##3-##2-##1}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMhebrewzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{hebrew}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMhebrewtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMhebrewdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMhebrewtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +\DTMnewstyle + {hebrew-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{hebrew}{showdayofmonth}% + {% + \number##3 % space intended + \DTMhebrewdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{hebrew}{showyear}% + {% + \DTMhebrewdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMhebrewtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMhebrewtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMhebrewzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{hebrew}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMhebrewtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMhebrewdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMhebrewtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMhebrewzonemaps}{% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{hebrew}} +{\DTMsetstyle{hebrew-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datehebrew + {% do nothing + }% + {% + \def\datehebrew{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{hebrew}}% + {\DTMsetstyle{hebrew-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{hebrew}}% + {\DTMsetstyle{hebrew-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-hebrew.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic-ascii.ldf new file mode 100644 index 00000000000..06fc2d7090a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic-ascii.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-icelandic-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-icelandic.dtx (with options: `datetime2-icelandic-ascii.ldf,package') +%% +%% datetime2-icelandic.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-icelandic.dtx and +%% datetime2-icelandic.ins and the derived files +%% datetime2-icelandic-utf8.ldf, datetime2-icelandic-ascii.ldf and +%% datetime2-icelandic.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{icelandic-ascii}[2015/03/30 v1.0] +\newcommand*{\DTMicelandicordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMicelandicmonthname}[1]{% + \ifcase#1 + \or + jan\protect\'uar% + \or + febr\protect\'uar% + \or + mars% + \or + apr\protect\'il% + \or + ma\protect\'i% + \or + j\protect\'un\protect\'i% + \or + j\protect\'ul\protect\'i% + \or + \protect\'ag\protect\'ust% + \or + september% + \or + okt\protect\'ober% + \or + n\protect\'ovember% + \or + desembe% + \fi +} +\newcommand*{\DTMicelandicMonthname}[1]{% + \ifcase#1 + \or + Jan\protect\'uar% + \or + Febr\protect\'uar% + \or + Mars% + \or + Apr\protect\'il% + \or + Ma\protect\'i% + \or + J\protect\'un\protect\'i% + \or + J\protect\'ul\protect\'i% + \or + \protect\'Ag\protect\'ust% + \or + September% + \or + Okt\protect\'ober% + \or + N\protect\'ovember% + \or + Desembe% + \fi +} +\endinput +%% +%% End of file `datetime2-icelandic-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic-utf8.ldf new file mode 100644 index 00000000000..b0e9162b99f --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic-utf8.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-icelandic-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-icelandic.dtx (with options: `datetime2-icelandic-utf8.ldf,package') +%% +%% datetime2-icelandic.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-icelandic.dtx and +%% datetime2-icelandic.ins and the derived files +%% datetime2-icelandic-utf8.ldf, datetime2-icelandic-ascii.ldf and +%% datetime2-icelandic.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{icelandic-utf8}[2015/03/30 v1.0] +\newcommand*{\DTMicelandicordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMicelandicmonthname}[1]{% + \ifcase#1 + \or + janúar% + \or + febrúar% + \or + mars% + \or + apríl% + \or + maí% + \or + júní% + \or + júlí% + \or + ágúst% + \or + september% + \or + október% + \or + nóvember% + \or + desembe% + \fi +} +\newcommand*{\DTMicelandicMonthname}[1]{% + \ifcase#1 + \or + Janúar% + \or + Febrúar% + \or + Mars% + \or + Apríl% + \or + Maí% + \or + Júní% + \or + Júlí% + \or + Ágúst% + \or + September% + \or + Október% + \or + Nóvember% + \or + Desembe% + \fi +} +\endinput +%% +%% End of file `datetime2-icelandic-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic.ldf b/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic.ldf new file mode 100644 index 00000000000..13d1c9ffebc --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-icelandic/datetime2-icelandic.ldf @@ -0,0 +1,229 @@ +%% +%% This is file `datetime2-icelandic.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-icelandic.dtx (with options: `datetime2-icelandic.ldf,package') +%% +%% datetime2-icelandic.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-icelandic.dtx and +%% datetime2-icelandic.ins and the derived files +%% datetime2-icelandic-utf8.ldf, datetime2-icelandic-ascii.ldf and +%% datetime2-icelandic.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{icelandic}[2015/03/30 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{icelandic-utf8} +\else + \ifluatex + \RequireDateTimeModule{icelandic-utf8} + \else + \RequireDateTimeModule{icelandic-ascii} + \fi +\fi +\newcommand*{\DTMicelandicdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMicelandicmonthyearsep}{\space} +\newcommand*{\DTMicelandicdatetimesep}{\space} +\newcommand*{\DTMicelandictimezonesep}{\space} +\newcommand*{\DTMicelandicdatesep}{/} +\newcommand*{\DTMicelandictimesep}{:} +\DTMdefkey{icelandic}{daymonthsep}{\renewcommand*{\DTMicelandicdaymonthsep}{#1}} +\DTMdefkey{icelandic}{monthyearsep}{\renewcommand*{\DTMicelandicmonthyearsep}{#1}} +\DTMdefkey{icelandic}{datetimesep}{\renewcommand*{\DTMicelandicdatetimesep}{#1}} +\DTMdefkey{icelandic}{timezonesep}{\renewcommand*{\DTMicelandictimezonesep}{#1}} +\DTMdefkey{icelandic}{datesep}{\renewcommand*{\DTMicelandicdatesep}{#1}} +\DTMdefkey{icelandic}{timesep}{\renewcommand*{\DTMicelandictimesep}{#1}} +\DTMdefboolkey{icelandic}{mapzone}[true]{} +\DTMsetbool{icelandic}{mapzone}{true} +\DTMdefboolkey{icelandic}{showdayofmonth}[true]{} +\DTMsetbool{icelandic}{showdayofmonth}{true} +\DTMdefboolkey{icelandic}{showyear}[true]{} +\DTMsetbool{icelandic}{showyear}{true} +\DTMnewstyle + {icelandic}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{icelandic}{showdayofmonth} + {\DTMicelandicordinal{##3}\DTMicelandicdaymonthsep}% + {}% + \DTMicelandicmonthname{##2}% + \DTMifbool{icelandic}{showyear}% + {% + \DTMicelandicmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{icelandic}{showdayofmonth} + {% + \DTMicelandicordinal{##3}\DTMicelandicdaymonthsep + \DTMicelandicmonthname{##2}% + }% + {% + \DTMicelandicMonthname{##2}% + }% + \DTMifbool{icelandic}{showyear}% + {% + \DTMicelandicmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMicelandiczonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{icelandic}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMicelandictimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMicelandicdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMicelandictimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMicelandicdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMicelandictimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {icelandic-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{icelandic}{showdayofmonth}% + {% + \number##3 % space intended + \DTMicelandicdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{icelandic}{showyear}% + {% + \DTMicelandicdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMicelandictimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMicelandictimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMicelandiczonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{icelandic}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMicelandictimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMicelandicdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMicelandictimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMicelandiczonemaps}{% + \DTMdefzonemap{00}{00}{GMT}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{icelandic}} +{\DTMsetstyle{icelandic-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateicelandic + {% do nothing + }% + {% + \def\dateicelandic{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{icelandic}}% + {\DTMsetstyle{icelandic-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{icelandic}}% + {\DTMsetstyle{icelandic-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-icelandic.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-latin/datetime2-latin.ldf b/Master/texmf-dist/tex/latex/datetime2-latin/datetime2-latin.ldf new file mode 100644 index 00000000000..ec0da1ae101 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-latin/datetime2-latin.ldf @@ -0,0 +1,274 @@ +%% +%% This is file `datetime2-latin.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-latin.dtx (with options: `datetime2-latin.ldf,package') +%% +%% datetime2-latin.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-latin.dtx and +%% datetime2-latin.ins and the derived file +%% datetime2-latin.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{latin}[2015/03/31 v1.0] +\@ifpackageloaded{polyglossia} +{ + \newcommand*{\DTMlatindayfont}[1]{#1} +} +{ + \newcommand*{\DTMlatindayfont}[1]{% + {\check@mathfonts\fontsize\sf@size\z@\math@fontsfalse\selectfont#1}% + } +} +\newcommand*{\DTMlatinordinal}[1]{% + \DTMtexorpdfstring + {% + \protect\DTMlatindayfont{\uppercase\expandafter{\romannumeral#1}}% + }% + {\romannumeral#1 }% +} +\newcommand*{\DTMlatinyear}[1]{% + \DTMtexorpdfstring + {% + \uppercase\expandafter{\romannumeral#1}% + }% + {\romannumeral#1 }% +} +\@ifpackageloaded{polyglossia} +{ + \newcommand*{\DTMlatinmonthname}[1]{% + \ifcase#1 + \or + Januarii% + \or + Februarii% + \or + Martii% + \or + Aprilis% + \or + Maji% + \or + Junii% + \or + Julii% + \or + Augusti% + \or + Septembris% + \or + Octobris% + \or + Novembris% + \or + Decembris% + \fi + } +} +{ + \newcommand*{\DTMlatinmonthname}[1]{% + \ifcase#1 + \or + Ianuarii% + \or + Februarii% + \or + Martii% + \or + Aprilis% + \or + Maii% + \or + Iunii% + \or + Iulii% + \or + Augusti% + \or + Septembris% + \or + Octobris% + \or + Novembris% + \or + Decembris% + \fi + } +} +\newcommand*{\DTMlatindaymonthsep}{\space} +\newcommand*{\DTMlatinmonthyearsep}{\space} +\newcommand*{\DTMlatindatetimesep}{\space} +\newcommand*{\DTMlatintimezonesep}{\space} +\newcommand*{\DTMlatindatesep}{/} +\newcommand*{\DTMlatintimesep}{:} +\DTMdefkey{latin}{daymonthsep}{\renewcommand*{\DTMlatindaymonthsep}{#1}} +\DTMdefkey{latin}{monthyearsep}{\renewcommand*{\DTMlatinmonthyearsep}{#1}} +\DTMdefkey{latin}{datetimesep}{\renewcommand*{\DTMlatindatetimesep}{#1}} +\DTMdefkey{latin}{timezonesep}{\renewcommand*{\DTMlatintimezonesep}{#1}} +\DTMdefkey{latin}{datesep}{\renewcommand*{\DTMlatindatesep}{#1}} +\DTMdefkey{latin}{timesep}{\renewcommand*{\DTMlatintimesep}{#1}} +\DTMdefboolkey{latin}{mapzone}[true]{} +\DTMsetbool{latin}{mapzone}{true} +\DTMdefboolkey{latin}{showdayofmonth}[true]{} +\DTMsetbool{latin}{showdayofmonth}{true} +\DTMdefboolkey{latin}{showyear}[true]{} +\DTMsetbool{latin}{showyear}{true} +\DTMnewstyle + {latin}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{latin}{showdayofmonth} + {\DTMlatinordinal{##3}\DTMlatindaymonthsep}% + {}% + \DTMlatinmonthname{##2}% + \DTMifbool{latin}{showyear}% + {% + \DTMlatinmonthyearsep + \DTMlatinyear{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate{\DTMdisplaydate}% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMlatinzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{latin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlatintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlatindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlatintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + }% +\DTMnewstyle + {latin-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{latin}{showdayofmonth}% + {% + \number##3 % space intended + \DTMlatindatesep + }% + {}% + \number##2 % space intended + \DTMifbool{latin}{showyear}% + {% + \DTMlatindatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMlatintimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMlatintimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMlatinzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{latin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlatintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlatindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlatintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMlatinzonemaps}{% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{latin}} +{\DTMsetstyle{latin-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datelatin + {% do nothing + }% + {% + \def\datelatin{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{latin}}% + {\DTMsetstyle{latin-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{latin}}% + {\DTMsetstyle{latin-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-latin.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian-ascii.ldf new file mode 100644 index 00000000000..1c9863f4b50 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian-ascii.ldf @@ -0,0 +1,160 @@ +%% +%% This is file `datetime2-lsorbian-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-lsorbian.dtx (with options: `datetime2-lsorbian-ascii.ldf,package') +%% +%% datetime2-lsorbian.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-lsorbian.dtx and +%% datetime2-lsorbian.ins and the derived files +%% datetime2-lsorbian-utf8.ldf, datetime2-lsorbian-ascii.ldf and +%% datetime2-lsorbian.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{lsorbian-ascii}[2015/03/30 v1.0] +\newcommand*{\DTMlsorbianordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMlsorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + m\protect\v erca% + \or + apryla% + \or + maja% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +\newcommand*{\DTMlsorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + M\protect\v erca% + \or + Apryla% + \or + Maja% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +\newcommand*{\DTMlsorbianoldmonthname}[1]{% + \ifcase#1 + \or + wjelikego ro\protect\v zka% + \or + ma\protect\l ego ro\protect\v zka% + \or + nal\protect\v etnika% + \or + jat\protect\v sownika% + \or + ro\protect\v zownika% + \or + sma\protect\v znika% + \or + pra\protect\v znika% + \or + \protect\v znje\protect\'nca% + \or + po\protect\v znje\protec\'nca% + \or + winowca% + \or + nazymnika% + \or + godownika% + \fi +} +\newcommand*{\DTMlsorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wjelikego ro\protect\v zka% + \or + Ma\protect\l ego ro\protect\v zka% + \or + Nal\protect\v etnika% + \or + Jat\protect\v sownika% + \or + Ro\protect\v zownika% + \or + Sma\protect\v znika% + \or + Pra\protect\v znika% + \or + \protect\v Znje\protect\'nca% + \or + Po\protect\v znje\protec\'nca% + \or + Winowca% + \or + Nazymnika% + \or + Godownika% + \fi +} +\endinput +%% +%% End of file `datetime2-lsorbian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian-utf8.ldf new file mode 100644 index 00000000000..4c15ecd6b26 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian-utf8.ldf @@ -0,0 +1,160 @@ +%% +%% This is file `datetime2-lsorbian-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-lsorbian.dtx (with options: `datetime2-lsorbian-utf8.ldf,package') +%% +%% datetime2-lsorbian.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-lsorbian.dtx and +%% datetime2-lsorbian.ins and the derived files +%% datetime2-lsorbian-utf8.ldf, datetime2-lsorbian-ascii.ldf and +%% datetime2-lsorbian.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{lsorbian-utf8}[2015/03/30 v1.0] +\newcommand*{\DTMlsorbianordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMlsorbiannewmonthname}[1]{% + \ifcase#1 + \or + januara% + \or + februara% + \or + měrca% + \or + apryla% + \or + maja% + \or + junija% + \or + julija% + \or + awgusta% + \or + septembra% + \or + oktobra% + \or + nowembra% + \or + decembra% + \fi +} +\newcommand*{\DTMlsorbiannewMonthname}[1]{% + \ifcase#1 + \or + Januara% + \or + Februara% + \or + Měrca% + \or + Apryla% + \or + Maja% + \or + Junija% + \or + Julija% + \or + Awgusta% + \or + Septembra% + \or + Oktobra% + \or + Nowembra% + \or + Decembra% + \fi +} +\newcommand*{\DTMlsorbianoldmonthname}[1]{% + \ifcase#1 + \or + wjelikego rožka% + \or + małego rožka% + \or + nalětnika% + \or + jatšownika% + \or + rožownika% + \or + smažnika% + \or + pražnika% + \or + žnjeńca% + \or + požnjeńca% + \or + winowca% + \or + nazymnika% + \or + godownika% + \fi +} +\newcommand*{\DTMlsorbianoldMonthname}[1]{% + \ifcase#1 + \or + Wjelikego rožka% + \or + Małego rožka% + \or + Nalětnika% + \or + Jatšownika% + \or + Rožownika% + \or + Smažnika% + \or + Pražnika% + \or + Žnjeńca% + \or + Požnjeńca% + \or + Winowca% + \or + Nazymnika% + \or + Godownika% + \fi +} +\endinput +%% +%% End of file `datetime2-lsorbian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian.ldf b/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian.ldf new file mode 100644 index 00000000000..f0071bf91ca --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-lsorbian/datetime2-lsorbian.ldf @@ -0,0 +1,241 @@ +%% +%% This is file `datetime2-lsorbian.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-lsorbian.dtx (with options: `datetime2-lsorbian.ldf,package') +%% +%% datetime2-lsorbian.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-lsorbian.dtx and +%% datetime2-lsorbian.ins and the derived files +%% datetime2-lsorbian-utf8.ldf, datetime2-lsorbian-ascii.ldf and +%% datetime2-lsorbian.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{lsorbian}[2015/03/30 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{lsorbian-utf8} +\else + \ifluatex + \RequireDateTimeModule{lsorbian-utf8} + \else + \RequireDateTimeModule{lsorbian-ascii} + \fi +\fi +\newcommand*{\DTMlsorbiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMlsorbianmonthyearsep}{\space} +\newcommand*{\DTMlsorbiandatetimesep}{\space} +\newcommand*{\DTMlsorbiantimezonesep}{\space} +\newcommand*{\DTMlsorbiandatesep}{/} +\newcommand*{\DTMlsorbiantimesep}{:} +\DTMdefkey{lsorbian}{daymonthsep}{\renewcommand*{\DTMlsorbiandaymonthsep}{#1}} +\DTMdefkey{lsorbian}{monthyearsep}{\renewcommand*{\DTMlsorbianmonthyearsep}{#1}} +\DTMdefkey{lsorbian}{datetimesep}{\renewcommand*{\DTMlsorbiandatetimesep}{#1}} +\DTMdefkey{lsorbian}{timezonesep}{\renewcommand*{\DTMlsorbiantimezonesep}{#1}} +\DTMdefkey{lsorbian}{datesep}{\renewcommand*{\DTMlsorbiandatesep}{#1}} +\DTMdefkey{lsorbian}{timesep}{\renewcommand*{\DTMlsorbiantimesep}{#1}} +\newcommand*\DTMlsorbianmonthname{\DTMlsorbiannewmonthname} +\newcommand*\DTMlsorbianMonthname{\DTMlsorbiannewMonthname} +\DTMdefchoicekey{lsorbian}{style}[\val\nr]{old,new}{% + \ifcase\nr\relax + \renewcommand*\DTMlsorbianmonthname{\DTMlsorbianoldmonthname}% + \renewcommand*\DTMlsorbianMonthname{\DTMlsorbianoldMonthname}% + \or + \renewcommand*\DTMlsorbianmonthname{\DTMlsorbiannewmonthname}% + \renewcommand*\DTMlsorbianMonthname{\DTMlsorbiannewMonthname}% + \fi +} +\DTMdefboolkey{lsorbian}{mapzone}[true]{} +\DTMsetbool{lsorbian}{mapzone}{true} +\DTMdefboolkey{lsorbian}{showdayofmonth}[true]{} +\DTMsetbool{lsorbian}{showdayofmonth}{true} +\DTMdefboolkey{lsorbian}{showyear}[true]{} +\DTMsetbool{lsorbian}{showyear}{true} +\DTMnewstyle + {lsorbian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{lsorbian}{showdayofmonth} + {\DTMlsorbianordinal{##3}\DTMlsorbiandaymonthsep}% + {}% + \DTMlsorbianmonthname{##2}% + \DTMifbool{lsorbian}{showyear}% + {% + \DTMlsorbianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{lsorbian}{showdayofmonth} + {% + \DTMlsorbianordinal{##3}\DTMlsorbiandaymonthsep + \DTMlsorbianmonthname{##2}% + }% + {% + \DTMlsorbianMonthname{##2}% + }% + \DTMifbool{lsorbian}{showyear}% + {% + \DTMlsorbianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMlsorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{lsorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlsorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlsorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlsorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMlsorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlsorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {lsorbian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{lsorbian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMlsorbiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{lsorbian}{showyear}% + {% + \DTMlsorbiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMlsorbiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMlsorbiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMlsorbianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{lsorbian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMlsorbiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMlsorbiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMlsorbiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMlsorbianzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{lsorbian}} +{\DTMsetstyle{lsorbian-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datelsorbian + {% do nothing + }% + {% + \def\datelsorbian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{lsorbian}}% + {\DTMsetstyle{lsorbian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{lsorbian}}% + {\DTMsetstyle{lsorbian-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-lsorbian.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar-ascii.ldf new file mode 100644 index 00000000000..3422c8c2711 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar-ascii.ldf @@ -0,0 +1,107 @@ +%% +%% This is file `datetime2-magyar-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-magyar.dtx (with options: `datetime2-magyar-ascii.ldf,package') +%% +%% datetime2-magyar.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-magyar.dtx and +%% datetime2-magyar.ins and the derived files +%% datetime2-magyar-utf8.ldf, datetime2-magyar-ascii.ldf and +%% datetime2-magyar.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{magyar-ascii}[2015/03/31 v1.0] +\newcommand*{\DTMmagyarordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMmagyaryear}[1]{% + \number#1.% +} +\newcommand*{\DTMmagyarmonthname}[1]{% + \ifcase#1 + \or + janu\protect\'ar% + \or + febru\protect\'ar% + \or + m\protect\'arcius% + \or + \protect\'aprilis% + \or + m\protect\'ajus% + \or + j\protect\'unius% + \or + j\protect\'ulius% + \or + augusztus% + \or + szeptember% + \or + okt\protect\'ober% + \or + november% + \or + december% + \fi +} +\newcommand*{\DTMmagyarMonthname}[1]{% + \ifcase#1 + \or + Janu\protect\'ar% + \or + Febru\protect\'ar% + \or + M\protect\'arcius% + \or + \protect\'Aprilis% + \or + M\protect\'ajus% + \or + J\protect\'unius% + \or + J\protect\'ulius% + \or + Augusztus% + \or + Szeptember% + \or + Okt\protect\'ober% + \or + November% + \or + December% + \fi +} +\endinput +%% +%% End of file `datetime2-magyar-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar-utf8.ldf new file mode 100644 index 00000000000..7531078a947 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar-utf8.ldf @@ -0,0 +1,107 @@ +%% +%% This is file `datetime2-magyar-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-magyar.dtx (with options: `datetime2-magyar-utf8.ldf,package') +%% +%% datetime2-magyar.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-magyar.dtx and +%% datetime2-magyar.ins and the derived files +%% datetime2-magyar-utf8.ldf, datetime2-magyar-ascii.ldf and +%% datetime2-magyar.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{magyar-utf8}[2015/03/31 v1.0] +\newcommand*{\DTMmagyarordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMmagyaryear}[1]{% + \number#1.% +} +\newcommand*{\DTMmagyarmonthname}[1]{% + \ifcase#1 + \or + január% + \or + február% + \or + március% + \or + április% + \or + május% + \or + június% + \or + július% + \or + augusztus% + \or + szeptember% + \or + október% + \or + november% + \or + december% + \fi +} +\newcommand*{\DTMmagyarMonthname}[1]{% + \ifcase#1 + \or + Január% + \or + Február% + \or + Március% + \or + Április% + \or + Május% + \or + Június% + \or + Július% + \or + Augusztus% + \or + Szeptember% + \or + Október% + \or + November% + \or + December% + \fi +} +\endinput +%% +%% End of file `datetime2-magyar-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar.ldf b/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar.ldf new file mode 100644 index 00000000000..0e33627ee21 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-magyar/datetime2-magyar.ldf @@ -0,0 +1,228 @@ +%% +%% This is file `datetime2-magyar.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-magyar.dtx (with options: `datetime2-magyar.ldf,package') +%% +%% datetime2-magyar.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-magyar.dtx and +%% datetime2-magyar.ins and the derived files +%% datetime2-magyar-utf8.ldf, datetime2-magyar-ascii.ldf and +%% datetime2-magyar.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{magyar}[2015/03/31 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{magyar-utf8} +\else + \ifluatex + \RequireDateTimeModule{magyar-utf8} + \else + \RequireDateTimeModule{magyar-ascii} + \fi +\fi +\newcommand*{\DTMmagyardaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMmagyarmonthyearsep}{\space} +\newcommand*{\DTMmagyardatetimesep}{\space} +\newcommand*{\DTMmagyartimezonesep}{\space} +\newcommand*{\DTMmagyardatesep}{/} +\newcommand*{\DTMmagyartimesep}{:} +\DTMdefkey{magyar}{daymonthsep}{\renewcommand*{\DTMmagyardaymonthsep}{#1}} +\DTMdefkey{magyar}{monthyearsep}{\renewcommand*{\DTMmagyarmonthyearsep}{#1}} +\DTMdefkey{magyar}{datetimesep}{\renewcommand*{\DTMmagyardatetimesep}{#1}} +\DTMdefkey{magyar}{timezonesep}{\renewcommand*{\DTMmagyartimezonesep}{#1}} +\DTMdefkey{magyar}{datesep}{\renewcommand*{\DTMmagyardatesep}{#1}} +\DTMdefkey{magyar}{timesep}{\renewcommand*{\DTMmagyartimesep}{#1}} +\DTMdefboolkey{magyar}{mapzone}[true]{} +\DTMsetbool{magyar}{mapzone}{true} +\DTMdefboolkey{magyar}{showdayofmonth}[true]{} +\DTMsetbool{magyar}{showdayofmonth}{true} +\DTMdefboolkey{magyar}{showyear}[true]{} +\DTMsetbool{magyar}{showyear}{true} +\DTMnewstyle + {magyar}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{magyar}{showdayofmonth} + {\DTMmagyarordinal{##3}\DTMmagyardaymonthsep}% + {}% + \DTMmagyarmonthname{##2}% + \DTMifbool{magyar}{showyear}% + {% + \DTMmagyarmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{magyar}{showdayofmonth} + {% + \DTMmagyarordinal{##3}\DTMmagyardaymonthsep + \DTMmagyarmonthname{##2}% + }% + {% + \DTMmagyarMonthname{##2}% + }% + \DTMifbool{magyar}{showyear}% + {% + \DTMmagyarmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMmagyarzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{magyar}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMmagyartimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMmagyardatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMmagyartimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMmagyardatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMmagyartimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {magyar-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{magyar}{showdayofmonth}% + {% + \number##3 % space intended + \DTMmagyardatesep + }% + {}% + \number##2 % space intended + \DTMifbool{magyar}{showyear}% + {% + \DTMmagyardatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMmagyartimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMmagyartimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMmagyarzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{magyar}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMmagyartimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMmagyardatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMmagyartimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMmagyarzonemaps}{% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{magyar}} +{\DTMsetstyle{magyar-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datemagyar + {% do nothing + }% + {% + \def\datemagyar{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{magyar}}% + {\DTMsetstyle{magyar-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{magyar}}% + {\DTMsetstyle{magyar-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-magyar.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk-ascii.ldf new file mode 100644 index 00000000000..8cd97903459 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk-ascii.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-norsk-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-norsk.dtx (with options: `datetime2-norsk-ascii.ldf,package') +%% +%% datetime2-norsk.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-norsk.dtx and +%% datetime2-norsk.ins and the derived files +%% datetime2-norsk-utf8.ldf, datetime2-norsk-ascii.ldf and +%% datetime2-norsk.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{norsk-ascii}[2015/03/31 v1.0] +\newcommand*{\DTMnorskordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMnorskmonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + mars% + \or + april% + \or + mai% + \or + juni% + \or + juli% + \or + august% + \or + september% + \or + oktober% + \or + november% + \or + desember% + \fi +} +\newcommand*{\DTMnorskMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Mars% + \or + April% + \or + Mai% + \or + Juni% + \or + Juli% + \or + August% + \or + September% + \or + Oktober% + \or + November% + \or + Desember% + \fi +} +\newcommand*{\DTMnorskweekdayname}[1]{% + \ifcase#1 + mandag% + \or + tirsdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + l\o rdag% + \or + s\o ndag% + \fi +} +\newcommand*{\DTMnorskWeekdayname}[1]{% + \ifcase#1 + Mandag% + \or + Tirsdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + L\o rdag% + \or + S\o ndag% + \fi +} +\endinput +%% +%% End of file `datetime2-norsk-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk-utf8.ldf new file mode 100644 index 00000000000..c96fb715d7f --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk-utf8.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-norsk-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-norsk.dtx (with options: `datetime2-norsk-utf8.ldf,package') +%% +%% datetime2-norsk.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-norsk.dtx and +%% datetime2-norsk.ins and the derived files +%% datetime2-norsk-utf8.ldf, datetime2-norsk-ascii.ldf and +%% datetime2-norsk.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{norsk-utf8}[2015/03/31 v1.0] +\newcommand*{\DTMnorskordinal}[1]{% + \number#1.% +} +\newcommand*{\DTMnorskmonthname}[1]{% + \ifcase#1 + \or + januar% + \or + februar% + \or + mars% + \or + april% + \or + mai% + \or + juni% + \or + juli% + \or + august% + \or + september% + \or + oktober% + \or + november% + \or + desember% + \fi +} +\newcommand*{\DTMnorskMonthname}[1]{% + \ifcase#1 + \or + Januar% + \or + Februar% + \or + Mars% + \or + April% + \or + Mai% + \or + Juni% + \or + Juli% + \or + August% + \or + September% + \or + Oktober% + \or + November% + \or + Desember% + \fi +} +\newcommand*{\DTMnorskweekdayname}[1]{% + \ifcase#1 + mandag% + \or + tirsdag% + \or + onsdag% + \or + torsdag% + \or + fredag% + \or + lørdag% + \or + søndag% + \fi +} +\newcommand*{\DTMnorskWeekdayname}[1]{% + \ifcase#1 + Mandag% + \or + Tirsdag% + \or + Onsdag% + \or + Torsdag% + \or + Fredag% + \or + Lørdag% + \or + Søndag% + \fi +} +\endinput +%% +%% End of file `datetime2-norsk-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk.ldf b/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk.ldf new file mode 100644 index 00000000000..e421b54c180 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-norsk/datetime2-norsk.ldf @@ -0,0 +1,230 @@ +%% +%% This is file `datetime2-norsk.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-norsk.dtx (with options: `datetime2-norsk.ldf,package') +%% +%% datetime2-norsk.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-norsk.dtx and +%% datetime2-norsk.ins and the derived files +%% datetime2-norsk-utf8.ldf, datetime2-norsk-ascii.ldf and +%% datetime2-norsk.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{norsk}[2015/03/31 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{norsk-utf8} +\else + \ifluatex + \RequireDateTimeModule{norsk-utf8} + \else + \RequireDateTimeModule{norsk-ascii} + \fi +\fi +\newcommand*{\DTMnorskdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMnorskmonthyearsep}{\space} +\newcommand*{\DTMnorskdatetimesep}{\space} +\newcommand*{\DTMnorsktimezonesep}{\space} +\newcommand*{\DTMnorskdatesep}{.} +\newcommand*{\DTMnorsktimesep}{:} +\DTMdefkey{norsk}{daymonthsep}{\renewcommand*{\DTMnorskdaymonthsep}{#1}} +\DTMdefkey{norsk}{monthyearsep}{\renewcommand*{\DTMnorskmonthyearsep}{#1}} +\DTMdefkey{norsk}{datetimesep}{\renewcommand*{\DTMnorskdatetimesep}{#1}} +\DTMdefkey{norsk}{timezonesep}{\renewcommand*{\DTMnorsktimezonesep}{#1}} +\DTMdefkey{norsk}{datesep}{\renewcommand*{\DTMnorskdatesep}{#1}} +\DTMdefkey{norsk}{timesep}{\renewcommand*{\DTMnorsktimesep}{#1}} +\DTMdefboolkey{norsk}{mapzone}[true]{} +\DTMsetbool{norsk}{mapzone}{true} +\DTMdefboolkey{norsk}{showdayofmonth}[true]{} +\DTMsetbool{norsk}{showdayofmonth}{true} +\DTMdefboolkey{norsk}{showyear}[true]{} +\DTMsetbool{norsk}{showyear}{true} +\DTMnewstyle + {norsk}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{norsk}{showdayofmonth} + {\DTMnorskordinal{##3}\DTMnorskdaymonthsep}% + {}% + \DTMnorskmonthname{##2}% + \DTMifbool{norsk}{showyear}% + {% + \DTMnorskmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{norsk}{showdayofmonth} + {% + \DTMnorskordinal{##3}\DTMnorskdaymonthsep + \DTMnorskmonthname{##2}% + }% + {% + \DTMnorskMonthname{##2}% + }% + \DTMifbool{norsk}{showyear}% + {% + \DTMnorskmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMnorskzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{norsk}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMnorsktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMnorskdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMnorsktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMnorskdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMnorsktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {norsk-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{norsk}{showdayofmonth}% + {% + \number##3 % space intended + \DTMnorskdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{norsk}{showyear}% + {% + \DTMnorskdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMnorsktimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMnorsktimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMnorskzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{norsk}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMnorsktimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMnorskdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMnorsktimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMnorskzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{norsk}} +{\DTMsetstyle{norsk-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datenorsk + {% do nothing + }% + {% + \def\datenorsk{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{norsk}}% + {\DTMsetstyle{norsk-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{norsk}}% + {\DTMsetstyle{norsk-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-norsk.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish-ascii.ldf new file mode 100644 index 00000000000..12dacda1b3a --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish-ascii.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-polish-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-polish.dtx (with options: `datetime2-polish-ascii.ldf,package') +%% +%% datetime2-polish.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-polish.dtx and +%% datetime2-polish.ins and the derived files +%% datetime2-polish-utf8.ldf, datetime2-polish-ascii.ldf and +%% datetime2-polish.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{polish-ascii}[2015/03/31 v1.0] +\newcommand*{\DTMpolishordinal}[1]{% + \number#1 +} +\newcommand*{\DTMpolishmonthname}[1]{% + \ifcase#1 + \or + stycznia% + \or + lutego% + \or + marca% + \or + kwietnia% + \or + maja% + \or + czerwca% + \or + lipca% + \or + sierpnia% + \or + wrze\protect\'snia% + \or + pa\protect\'zdziernika% + \or + listopada% + \or + grudnia% + \fi +} +\newcommand*{\DTMpolishMonthname}[1]{% + \ifcase#1 + \or + Stycznia% + \or + Lutego% + \or + Marca% + \or + Kwietnia% + \or + Maja% + \or + Czerwca% + \or + Lipca% + \or + Sierpnia% + \or + Wrze\protect\'snia% + \or + Pa\protect\'zdziernika% + \or + Listopada% + \or + Grudnia% + \fi +} +\newcommand*{\DTMpolishweekdayname}[1]{% + \ifcase#1 + poniedzia\protect\l ek% + \or + wtorek% + \or + \protect\'sroda% + \or + czwartek% + \or + pi\protect\k atek% + \or + sobota% + \or + niedziela% + \fi +} +\newcommand*{\DTMpolishWeekdayname}[1]{% + \ifcase#1 + Poniedzia\protect\l ek% + \or + Wtorek% + \or + \protect\'Sroda% + \or + Czwartek% + \or + Pi\protect\k atek% + \or + Sobota% + \or + Niedziela% + \fi +} +\endinput +%% +%% End of file `datetime2-polish-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish-utf8.ldf new file mode 100644 index 00000000000..2f71756cacd --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish-utf8.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-polish-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-polish.dtx (with options: `datetime2-polish-utf8.ldf,package') +%% +%% datetime2-polish.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-polish.dtx and +%% datetime2-polish.ins and the derived files +%% datetime2-polish-utf8.ldf, datetime2-polish-ascii.ldf and +%% datetime2-polish.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{polish-utf8}[2015/03/31 v1.0] +\newcommand*{\DTMpolishordinal}[1]{% + \number#1 +} +\newcommand*{\DTMpolishmonthname}[1]{% + \ifcase#1 + \or + stycznia% + \or + lutego% + \or + marca% + \or + kwietnia% + \or + maja% + \or + czerwca% + \or + lipca% + \or + sierpnia% + \or + września% + \or + października% + \or + listopada% + \or + grudnia% + \fi +} +\newcommand*{\DTMpolishMonthname}[1]{% + \ifcase#1 + \or + Stycznia% + \or + Lutego% + \or + Marca% + \or + Kwietnia% + \or + Maja% + \or + Czerwca% + \or + Lipca% + \or + Sierpnia% + \or + Września% + \or + Października% + \or + Listopada% + \or + Grudnia% + \fi +} +\newcommand*{\DTMpolishweekdayname}[1]{% + \ifcase#1 + poniedziałek% + \or + wtorek% + \or + środa% + \or + czwartek% + \or + piątek% + \or + sobota% + \or + niedziela% + \fi +} +\newcommand*{\DTMpolishWeekdayname}[1]{% + \ifcase#1 + Poniedziałek% + \or + Wtorek% + \or + Środa% + \or + Czwartek% + \or + Piątek% + \or + Sobota% + \or + Niedziela% + \fi +} +\endinput +%% +%% End of file `datetime2-polish-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish.ldf b/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish.ldf new file mode 100644 index 00000000000..c390c77e08c --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-polish/datetime2-polish.ldf @@ -0,0 +1,230 @@ +%% +%% This is file `datetime2-polish.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-polish.dtx (with options: `datetime2-polish.ldf,package') +%% +%% datetime2-polish.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-polish.dtx and +%% datetime2-polish.ins and the derived files +%% datetime2-polish-utf8.ldf, datetime2-polish-ascii.ldf and +%% datetime2-polish.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{polish}[2015/03/31 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{polish-utf8} +\else + \ifluatex + \RequireDateTimeModule{polish-utf8} + \else + \RequireDateTimeModule{polish-ascii} + \fi +\fi +\newcommand*{\DTMpolishdaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMpolishmonthyearsep}{\space} +\newcommand*{\DTMpolishdatetimesep}{\space} +\newcommand*{\DTMpolishtimezonesep}{\space} +\newcommand*{\DTMpolishdatesep}{.} +\newcommand*{\DTMpolishtimesep}{:} +\DTMdefkey{polish}{daymonthsep}{\renewcommand*{\DTMpolishdaymonthsep}{#1}} +\DTMdefkey{polish}{monthyearsep}{\renewcommand*{\DTMpolishmonthyearsep}{#1}} +\DTMdefkey{polish}{datetimesep}{\renewcommand*{\DTMpolishdatetimesep}{#1}} +\DTMdefkey{polish}{timezonesep}{\renewcommand*{\DTMpolishtimezonesep}{#1}} +\DTMdefkey{polish}{datesep}{\renewcommand*{\DTMpolishdatesep}{#1}} +\DTMdefkey{polish}{timesep}{\renewcommand*{\DTMpolishtimesep}{#1}} +\DTMdefboolkey{polish}{mapzone}[true]{} +\DTMsetbool{polish}{mapzone}{true} +\DTMdefboolkey{polish}{showdayofmonth}[true]{} +\DTMsetbool{polish}{showdayofmonth}{true} +\DTMdefboolkey{polish}{showyear}[true]{} +\DTMsetbool{polish}{showyear}{true} +\DTMnewstyle + {polish}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{polish}{showdayofmonth} + {\DTMpolishordinal{##3}\DTMpolishdaymonthsep}% + {}% + \DTMpolishmonthname{##2}% + \DTMifbool{polish}{showyear}% + {% + \DTMpolishmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{polish}{showdayofmonth} + {% + \DTMpolishordinal{##3}\DTMpolishdaymonthsep + \DTMpolishmonthname{##2}% + }% + {% + \DTMpolishMonthname{##2}% + }% + \DTMifbool{polish}{showyear}% + {% + \DTMpolishmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMpolishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{polish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMpolishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMpolishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMpolishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMpolishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMpolishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {polish-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{polish}{showdayofmonth}% + {% + \number##3 % space intended + \DTMpolishdatesep + }% + {}% + \number##2 % space intended + \DTMifbool{polish}{showyear}% + {% + \DTMpolishdatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMpolishtimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMpolishtimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMpolishzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{polish}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMpolishtimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMpolishdatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMpolishtimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMpolishzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{CEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{polish}} +{\DTMsetstyle{polish-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datepolish + {% do nothing + }% + {% + \def\datepolish{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{polish}}% + {\DTMsetstyle{polish-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{polish}}% + {\DTMsetstyle{polish-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-polish.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf new file mode 100644 index 00000000000..ea4ea092e51 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-romanian-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-romanian.dtx (with options: `datetime2-romanian-ascii.ldf,package') +%% +%% datetime2-romanian.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-romanian.dtx and +%% datetime2-romanian.ins and the derived files +%% datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and +%% datetime2-romanian.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{romanian-ascii}[2015/03/31 v1.0] +\newcommand*{\DTMromanianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMromanianmonthname}[1]{% + \ifcase#1 + \or + ianuarie% + \or + februarie% + \or + martie% + \or + aprilie% + \or + mai% + \or + iunie% + \or + iulie% + \or + august% + \or + septembrie% + \or + octombrie% + \or + noiembrie% + \or + decembrie% + \fi +} +\newcommand*{\DTMromanianMonthname}[1]{% + \ifcase#1 + \or + Ianuarie% + \or + Februarie% + \or + Martie% + \or + Aprilie% + \or + Mai% + \or + Iunie% + \or + Iulie% + \or + August% + \or + Septembrie% + \or + Octombrie% + \or + Noiembrie% + \or + Decembrie% + \fi +} +\newcommand*{\DTMromanianweekdayname}[1]{% + \ifcase#1 + luni% + \or + mar\protect\c ti% + \or + miercuri% + \or + joi% + \or + vineri% + \or + s\protect\^amb\protect\u at\protect\u a% + \or + duminic\protect\u a% + \fi +} +\newcommand*{\DTMromanianWeekdayname}[1]{% + \ifcase#1 + Luni% + \or + Mar\protect\c ti% + \or + Miercuri% + \or + Joi% + \or + Vineri% + \or + S\protect\^amb\protect\u at\protect\u a% + \or + Duminic\protect\u a% + \fi +} +\endinput +%% +%% End of file `datetime2-romanian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf new file mode 100644 index 00000000000..dc981af285f --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf @@ -0,0 +1,138 @@ +%% +%% This is file `datetime2-romanian-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-romanian.dtx (with options: `datetime2-romanian-utf8.ldf,package') +%% +%% datetime2-romanian.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-romanian.dtx and +%% datetime2-romanian.ins and the derived files +%% datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and +%% datetime2-romanian.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{romanian-utf8}[2015/03/31 v1.0] +\newcommand*{\DTMromanianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMromanianmonthname}[1]{% + \ifcase#1 + \or + ianuarie% + \or + februarie% + \or + martie% + \or + aprilie% + \or + mai% + \or + iunie% + \or + iulie% + \or + august% + \or + septembrie% + \or + octombrie% + \or + noiembrie% + \or + decembrie% + \fi +} +\newcommand*{\DTMromanianMonthname}[1]{% + \ifcase#1 + \or + Ianuarie% + \or + Februarie% + \or + Martie% + \or + Aprilie% + \or + Mai% + \or + Iunie% + \or + Iulie% + \or + August% + \or + Septembrie% + \or + Octombrie% + \or + Noiembrie% + \or + Decembrie% + \fi +} +\newcommand*{\DTMromanianweekdayname}[1]{% + \ifcase#1 + luni% + \or + marţi% + \or + miercuri% + \or + joi% + \or + vineri% + \or + sâmbătă% + \or + duminică% + \fi +} +\newcommand*{\DTMromanianWeekdayname}[1]{% + \ifcase#1 + Luni% + \or + Marţi% + \or + Miercuri% + \or + Joi% + \or + Vineri% + \or + Sâmbătă% + \or + Duminică% + \fi +} +\endinput +%% +%% End of file `datetime2-romanian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf new file mode 100644 index 00000000000..b3e6fcffdf7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf @@ -0,0 +1,230 @@ +%% +%% This is file `datetime2-romanian.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-romanian.dtx (with options: `datetime2-romanian.ldf,package') +%% +%% datetime2-romanian.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-romanian.dtx and +%% datetime2-romanian.ins and the derived files +%% datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and +%% datetime2-romanian.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{romanian}[2015/03/31 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{romanian-utf8} +\else + \ifluatex + \RequireDateTimeModule{romanian-utf8} + \else + \RequireDateTimeModule{romanian-ascii} + \fi +\fi +\newcommand*{\DTMromaniandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}% +} +\newcommand*{\DTMromanianmonthyearsep}{\space} +\newcommand*{\DTMromaniandatetimesep}{\space} +\newcommand*{\DTMromaniantimezonesep}{\space} +\newcommand*{\DTMromaniandatesep}{.} +\newcommand*{\DTMromaniantimesep}{:} +\DTMdefkey{romanian}{daymonthsep}{\renewcommand*{\DTMromaniandaymonthsep}{#1}} +\DTMdefkey{romanian}{monthyearsep}{\renewcommand*{\DTMromanianmonthyearsep}{#1}} +\DTMdefkey{romanian}{datetimesep}{\renewcommand*{\DTMromaniandatetimesep}{#1}} +\DTMdefkey{romanian}{timezonesep}{\renewcommand*{\DTMromaniantimezonesep}{#1}} +\DTMdefkey{romanian}{datesep}{\renewcommand*{\DTMromaniandatesep}{#1}} +\DTMdefkey{romanian}{timesep}{\renewcommand*{\DTMromaniantimesep}{#1}} +\DTMdefboolkey{romanian}{mapzone}[true]{} +\DTMsetbool{romanian}{mapzone}{true} +\DTMdefboolkey{romanian}{showdayofmonth}[true]{} +\DTMsetbool{romanian}{showdayofmonth}{true} +\DTMdefboolkey{romanian}{showyear}[true]{} +\DTMsetbool{romanian}{showyear}{true} +\DTMnewstyle + {romanian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{romanian}{showdayofmonth} + {\DTMromanianordinal{##3}\DTMromaniandaymonthsep}% + {}% + \DTMromanianmonthname{##2}% + \DTMifbool{romanian}{showyear}% + {% + \DTMromanianmonthyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{romanian}{showdayofmonth} + {% + \DTMromanianordinal{##3}\DTMromaniandaymonthsep + \DTMromanianmonthname{##2}% + }% + {% + \DTMromanianMonthname{##2}% + }% + \DTMifbool{romanian}{showyear}% + {% + \DTMromanianmonthyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMromanianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{romanian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMromaniantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMromaniandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMromaniantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMromaniandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMromaniantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {romanian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{romanian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMromaniandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{romanian}{showyear}% + {% + \DTMromaniandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMromaniantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMromaniantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMromanianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{romanian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMromaniantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMromaniandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMromaniantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMromanianzonemaps}{% + \DTMdefzonemap{02}{00}{EET}% + \DTMdefzonemap{03}{00}{EEST}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{romanian}} +{\DTMsetstyle{romanian-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\dateromanian + {% do nothing + }% + {% + \def\dateromanian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{romanian}}% + {\DTMsetstyle{romanian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{romanian}}% + {\DTMsetstyle{romanian-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-romanian.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian-ascii.ldf new file mode 100644 index 00000000000..6e702846dac --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian-ascii.ldf @@ -0,0 +1,90 @@ +%% +%% This is file `datetime2-russian-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-russian.dtx (with options: `datetime2-russian-ascii.ldf,package') +%% +%% datetime2-russian.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-russian.dtx and +%% datetime2-russian.ins and the derived files +%% datetime2-russian-utf8.ldf, datetime2-russian-ascii.ldf and +%% datetime2-russian.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{russian-ascii}[2015/03/31 v1.0] +\newcommand*{\DTMrussianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMrussianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}\protect\cyrg.% +} +\newcommand*{\DTMrussianmonthname}[1]{% + \ifcase#1 + \or + \protect\cyrya\protect\cyrn\protect\cyrv\protect\cyra\protect\cyrr + \protect\cyrya + \or + \protect\cyrf\protect\cyre\protect\cyrv\protect\cyrr\protect\cyra + \protect\cyrl\protect\cyrya + \or + \protect\cyrm\protect\cyra\protect\cyrr\protect\cyrt\protect\cyra + \or + \protect\cyra\protect\cyrp\protect\cyrr\protect\cyre\protect\cyrl + \protect\cyrya + \or + \protect\cyrm\protect\cyra\protect\cyrya + \or + \protect\cyri\protect\cyryu\protect\cyrn\protect\cyrya + \or + \protect\cyri\protect\cyryu\protect\cyrl\protect\cyrya + \or + \protect\cyra\protect\cyrv\protect\cyrg\protect\cyru\protect\cyrs + \protect\cyrt\protect\cyra + \or + \protect\cyrs\protect\cyre\protect\cyrn\protect\cyrt\protect\cyrya + \protect\cyrb\protect\cyrr\protect\cyrya + \or + \protect\cyro\protect\cyrk\protect\cyrt\protect\cyrya\protect\cyrb + \protect\cyrr\protect\cyrya + \or + \protect\cyrn\protect\cyro\protect\cyrya\protect\cyrb\protect\cyrr + \protect\cyrya + \or + \protect\cyrd\protect\cyre\protect\cyrk\protect\cyra\protect\cyrb + \protect\cyrr\protect\cyrya + \fi +} +\newcommand*{\DTMrussianMonthname}[1]{% +} +\endinput +%% +%% End of file `datetime2-russian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian-utf8.ldf new file mode 100644 index 00000000000..98d06911540 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian-utf8.ldf @@ -0,0 +1,108 @@ +%% +%% This is file `datetime2-russian-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-russian.dtx (with options: `datetime2-russian-utf8.ldf,package') +%% +%% datetime2-russian.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-russian.dtx and +%% datetime2-russian.ins and the derived files +%% datetime2-russian-utf8.ldf, datetime2-russian-ascii.ldf and +%% datetime2-russian.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{russian-utf8}[2015/03/31 v1.0] +\newcommand*{\DTMrussianordinal}[1]{% + \number#1 +} +\newcommand*{\DTMrussianyear}[1]{% + \number#1 + \DTMtexorpdfstring{\protect~}{\space}г.% +} +\newcommand*{\DTMrussianmonthname}[1]{% + \ifcase#1 + \or + января% + \or + февраля% + \or + марта% + \or + апреля% + \or + мая% + \or + июня% + \or + июля% + \or + августа% + \or + сентября% + \or + октября% + \or + ноября% + \or + декабря% + \fi +} +\newcommand*{\DTMrussianMonthname}[1]{% + \ifcase#1 + \or + Января% + \or + Февраля% + \or + Марта% + \or + Апреля% + \or + Мая% + \or + Июня% + \or + Июля% + \or + Августа% + \or + Сентября% + \or + Октября% + \or + Ноября% + \or + Декабря% + \fi +} +\endinput +%% +%% End of file `datetime2-russian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian.ldf b/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian.ldf new file mode 100644 index 00000000000..374e11182f6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-russian/datetime2-russian.ldf @@ -0,0 +1,237 @@ +%% +%% This is file `datetime2-russian.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-russian.dtx (with options: `datetime2-russian.ldf,package') +%% +%% datetime2-russian.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-russian.dtx and +%% datetime2-russian.ins and the derived files +%% datetime2-russian-utf8.ldf, datetime2-russian-ascii.ldf and +%% datetime2-russian.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{russian}[2015/03/31 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{russian-utf8} +\else + \ifluatex + \RequireDateTimeModule{russian-utf8} + \else + \RequireDateTimeModule{russian-ascii} + \fi +\fi +\newcommand*{\DTMrussiandaymonthsep}{% + \DTMtexorpdfstring{\protect~}{\space}} +\newcommand*{\DTMrussianmonthyearsep}{\space} +\newcommand*{\DTMrussiandatetimesep}{\space} +\newcommand*{\DTMrussiantimezonesep}{\space} +\newcommand*{\DTMrussiandatesep}{.} +\newcommand*{\DTMrussiantimesep}{:} +\DTMdefkey{russian}{daymonthsep}{\renewcommand*{\DTMrussiandaymonthsep}{#1}} +\DTMdefkey{russian}{monthyearsep}{\renewcommand*{\DTMrussianmonthyearsep}{#1}} +\DTMdefkey{russian}{datetimesep}{\renewcommand*{\DTMrussiandatetimesep}{#1}} +\DTMdefkey{russian}{timezonesep}{\renewcommand*{\DTMrussiantimezonesep}{#1}} +\DTMdefkey{russian}{datesep}{\renewcommand*{\DTMrussiandatesep}{#1}} +\DTMdefkey{russian}{timesep}{\renewcommand*{\DTMrussiantimesep}{#1}} +\DTMdefboolkey{russian}{mapzone}[true]{} +\DTMsetbool{russian}{mapzone}{true} +\DTMdefboolkey{russian}{showdayofmonth}[true]{} +\DTMsetbool{russian}{showdayofmonth}{true} +\DTMdefboolkey{russian}{showyear}[true]{} +\DTMsetbool{russian}{showyear}{true} +\DTMnewstyle + {russian}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{russian}{showdayofmonth} + {\DTMrussianordinal{##3}\DTMrussiandaymonthsep}% + {}% + \DTMrussianmonthname{##2}% + \DTMifbool{russian}{showyear}% + {% + \DTMrussianmonthyearsep + \DTMrussianyear{##1}% + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMifbool{russian}{showdayofmonth} + {% + \DTMrussianordinal{##3}\DTMrussiandaymonthsep + \DTMrussianmonthname{##2}% + }% + {% + \DTMrussianMonthname{##2}% + }% + \DTMifbool{russian}{showyear}% + {% + \DTMrussianmonthyearsep + \DTMrussianyear{##1}% + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMrussianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{russian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMrussiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMrussiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMrussiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMrussiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMrussiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {russian-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{russian}{showdayofmonth}% + {% + \number##3 % space intended + \DTMrussiandatesep + }% + {}% + \number##2 % space intended + \DTMifbool{russian}{showyear}% + {% + \DTMrussiandatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}[4]{\DTMdisplaydate{##1}{##2}{##3}{##4}}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMrussiantimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMrussiantimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMrussianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{russian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMrussiantimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMrussiandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMrussiantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMrussianzonemaps}{% + \DTMdefzonemap{03}{00}{MKT}% + \DTMdefzonemap{04}{00}{SAMT}% + \DTMdefzonemap{05}{00}{YEKT}% + \DTMdefzonemap{06}{00}{OMST}% + \DTMdefzonemap{07}{00}{KRAT}% + \DTMdefzonemap{08}{00}{IRKST}% + \DTMdefzonemap{09}{00}{YAKST}% + \DTMdefzonemap{10}{00}{VLAT}% + \DTMdefzonemap{11}{00}{SRET}% + \DTMdefzonemap{12}{00}{PETT}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{russian}} +{\DTMsetstyle{russian-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\daterussian + {% do nothing + }% + {% + \def\daterussian{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{russian}}% + {\DTMsetstyle{russian-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{russian}}% + {\DTMsetstyle{russian-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-russian.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin-ascii.ldf new file mode 100644 index 00000000000..431c8556397 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin-ascii.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-samin-ascii.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-samin.dtx (with options: `datetime2-samin-ascii.ldf,package') +%% +%% datetime2-samin.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-samin.dtx and +%% datetime2-samin.ins and the derived files +%% datetime2-samin-utf8.ldf, datetime2-samin-ascii.ldf and +%% datetime2-samin.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{samin-ascii}[2015/03/31 v1.0] +\newcommand*{\DTMsaminordinal}[1]{% + \number#1.\DTMtexorpdfstring{\protect~}{\space}b.% +} +\newcommand*{\DTMsaminmonthname}[1]{% + \ifcase#1 + \or + o\protect\dj\protect\dj ajagem\protect\'anu% + \or + guovvam\protect\'anu% + \or + njuk\protect\v cam\protect\'anu% + \or + cuo\protect\ng om\protect\'anu% + \or + miessem\protect\'anu% + \or + geassem\protect\'anu% + \or + suoidnem\protect\'anu% + \or + borgem\protect\'anu% + \or + \protect\v cak\protect\v cam\protect\'anu% + \or + golggotm\protect\'anu% + \or + sk\protect\'abmam\protect\'anu% + \or + juovlam\protect\'anu% + \fi +} +\newcommand*{\DTMsaminMonthname}[1]{% + \ifcase#1 + \or + O\protect\dj\protect\dj ajagem\protect\'anu% + \or + Guovvam\protect\'anu% + \or + Njuk\protect\v cam\protect\'anu% + \or + Cuo\protect\ng om\protect\'anu% + \or + Miessem\protect\'anu% + \or + Geassem\protect\'anu% + \or + Suoidnem\protect\'anu% + \or + Borgem\protect\'anu% + \or + \protect\v Cak\protect\v cam\protect\'anu% + \or + Golggotm\protect\'anu% + \or + Sk\protect\'abmam\protect\'anu% + \or + Juovlam\protect\'anu% + \fi +} +\endinput +%% +%% End of file `datetime2-samin-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin-utf8.ldf new file mode 100644 index 00000000000..dd109412742 --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin-utf8.ldf @@ -0,0 +1,104 @@ +%% +%% This is file `datetime2-samin-utf8.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-samin.dtx (with options: `datetime2-samin-utf8.ldf,package') +%% +%% datetime2-samin.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-samin.dtx and +%% datetime2-samin.ins and the derived files +%% datetime2-samin-utf8.ldf, datetime2-samin-ascii.ldf and +%% datetime2-samin.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{samin-utf8}[2015/03/31 v1.0] +\newcommand*{\DTMsaminordinal}[1]{% + \number#1.\DTMtexorpdfstring{\protect~}{\space}b.% +} +\newcommand*{\DTMsaminmonthname}[1]{% + \ifcase#1 + \or + ođđajagemánu% + \or + guovvamánu% + \or + njukčamánu% + \or + cuoŋománu% + \or + miessemánu% + \or + geassemánu% + \or + suoidnemánu% + \or + borgemánu% + \or + čakčamánu% + \or + golggotmánu% + \or + skábmamánu% + \or + juovlamánu% + \fi +} +\newcommand*{\DTMsaminMonthname}[1]{% + \ifcase#1 + \or + Ođđajagemánu% + \or + Guovvamánu% + \or + Njukčamánu% + \or + Cuoŋománu% + \or + Miessemánu% + \or + Geassemánu% + \or + Suoidnemánu% + \or + Borgemánu% + \or + Čakčamánu% + \or + Golggotmánu% + \or + Skábmamánu% + \or + Juovlamánu% + \fi +} +\endinput +%% +%% End of file `datetime2-samin-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin.ldf b/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin.ldf new file mode 100644 index 00000000000..d0e7a3880fd --- /dev/null +++ b/Master/texmf-dist/tex/latex/datetime2-samin/datetime2-samin.ldf @@ -0,0 +1,230 @@ +%% +%% This is file `datetime2-samin.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% datetime2-samin.dtx (with options: `datetime2-samin.ldf,package') +%% +%% datetime2-samin.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-samin.dtx and +%% datetime2-samin.ins and the derived files +%% datetime2-samin-utf8.ldf, datetime2-samin-ascii.ldf and +%% datetime2-samin.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{samin}[2015/03/31 v1.0] +\RequirePackage{ifxetex,ifluatex} +\ifxetex + \RequireDateTimeModule{samin-utf8} +\else + \ifluatex + \RequireDateTimeModule{samin-utf8} + \else + \RequireDateTimeModule{samin-ascii} + \fi +\fi +\newcommand*{\DTMsaminmonthdaysep}{\space} +\newcommand*{\DTMsamindayyearsep}{\space} +\newcommand*{\DTMsamindatetimesep}{\space} +\newcommand*{\DTMsamintimezonesep}{\space} +\newcommand*{\DTMsamindatesep}{.} +\newcommand*{\DTMsamintimesep}{:} +\DTMdefkey{samin}{monthdaysep}{\renewcommand*{\DTMsaminmonthdaysep}{#1}} +\DTMdefkey{samin}{dayyearsep}{\renewcommand*{\DTMsamindayyearsep}{#1}} +\DTMdefkey{samin}{datetimesep}{\renewcommand*{\DTMsamindatetimesep}{#1}} +\DTMdefkey{samin}{timezonesep}{\renewcommand*{\DTMsamintimezonesep}{#1}} +\DTMdefkey{samin}{datesep}{\renewcommand*{\DTMsamindatesep}{#1}} +\DTMdefkey{samin}{timesep}{\renewcommand*{\DTMsamintimesep}{#1}} +\DTMdefboolkey{samin}{mapzone}[true]{} +\DTMsetbool{samin}{mapzone}{true} +\DTMdefboolkey{samin}{showdayofmonth}[true]{} +\DTMsetbool{samin}{showdayofmonth}{true} +\DTMdefboolkey{samin}{showyear}[true]{} +\DTMsetbool{samin}{showyear}{true} +\DTMnewstyle + {samin}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMsaminmonthname{##2}% + \DTMifbool{samin}{showdayofmonth} + {% + \DTMsaminmonthdaysep + \DTMsaminordinal{##3}% + }% + {}% + \DTMifbool{samin}{showyear}% + {% + \DTMsamindayyearsep + \number##1 + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \DTMsaminMonthname{##2}% + \DTMifbool{samin}{showdayofmonth} + {% + \DTMsaminmonthdaysep + \DTMsaminordinal{##3}% + }% + {}% + \DTMifbool{samin}{showyear}% + {% + \DTMsamindayyearsep + \number##1 + }% + {}% + }% + }% + {% time style (use default) + \DTMsettimestyle{default}% + }% + {% zone style + \DTMresetzones + \DTMsaminzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{samin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsamintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsamindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMsamintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMsamindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMsamintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + }% +\DTMnewstyle + {samin-numeric}% label + {% date style + \renewcommand*\DTMdisplaydate[4]{% + \DTMifbool{samin}{showdayofmonth}% + {% + \number##3 % space intended + \DTMsamindatesep + }% + {}% + \number##2 % space intended + \DTMifbool{samin}{showyear}% + {% + \DTMsamindatesep + \number##1 % space intended + }% + {}% + }% + \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}% + }% + {% time style + \renewcommand*\DTMdisplaytime[3]{% + \number##1 + \DTMsamintimesep\DTMtwodigits{##2}% + \ifDTMshowseconds\DTMsamintimesep\DTMtwodigits{##3}\fi + }% + }% + {% zone style + \DTMresetzones + \DTMsaminzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{samin}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMsamintimesep\DTMtwodigits{##2}\fi + }% + }% + }% + {% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMsamindatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMsamintimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}{\DTMdisplay}% + } +\newcommand*{\DTMsaminzonemaps}{% + \DTMdefzonemap{01}{00}{CET}% + \DTMdefzonemap{02}{00}{EET}% +} + +\DTMifcaseregional +{}% do nothing +{\DTMsetstyle{samin}} +{\DTMsetstyle{samin-numeric}} +\ifcsundef{date\CurrentTrackedDialect} +{% + \ifundef\datesamin + {% do nothing + }% + {% + \def\datesamin{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{samin}}% + {\DTMsetstyle{samin-numeric}}% + }% + }% +}% +{% + \csdef{date\CurrentTrackedDialect}{% + \DTMifcaseregional + {}% do nothing + {\DTMsetstyle{samin}}% + {\DTMsetstyle{samin-numeric}} + }% +}% +\endinput +%% +%% End of file `datetime2-samin.ldf'. diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index c7a73821714..10b7c836ffe 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -166,9 +166,13 @@ my @TLP_working = qw( datetime2-breton datetime2-bulgarian datetime2-catalan datetime2-croatian datetime2-czech datetime2-danish datetime2-dutch datetime2-english datetime2-esperanto datetime2-estonian - datetime2-finnish datetime2-french datetime2-german datetime2-irish - datetime2-italian datetime2-portuges datetime2-scottish - datetime2-spanish datetime2-welsh + datetime2-finnish datetime2-french datetime2-galician + datetime2-german datetime2-greek datetime2-hebrew + datetime2-icelandic datetime2-irish datetime2-italian + datetime2-latin datetime2-lsorbian datetime2-magyar datetime2-norsk + datetime2-polish datetime2-portuges datetime2-romanian + datetime2-russian datetime2-samin datetime2-scottish + datetime2-serbian datetime2-spanish datetime2-welsh dblfloatfix dccpaper dcpic de-macro decimal decorule dehyph-exptl dejavu delim delimtxt detlev-cm dhua diagbox diagmac2 dialogl diagnose dice dichokey diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 6ac5bae9836..45601a2ced0 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -210,11 +210,24 @@ depend datetime2-esperanto depend datetime2-estonian depend datetime2-finnish depend datetime2-french +depend datetime2-galician depend datetime2-german +depend datetime2-greek +depend datetime2-hebrew +depend datetime2-icelandic depend datetime2-irish depend datetime2-italian +depend datetime2-latin +depend datetime2-lsorbian +depend datetime2-magyar +depend datetime2-norsk +depend datetime2-polish depend datetime2-portuges +depend datetime2-romanian +depend datetime2-russian +depend datetime2-samin depend datetime2-scottish +depend datetime2-serbian depend datetime2-spanish depend datetime2-welsh depend dblfloatfix diff --git a/Master/tlpkg/tlpsrc/datetime2-galician.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-galician.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-galician.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-greek.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-greek.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-greek.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-hebrew.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-hebrew.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-hebrew.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-icelandic.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-icelandic.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-icelandic.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-latin.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-latin.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-latin.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-lsorbian.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-lsorbian.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-lsorbian.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-magyar.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-magyar.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-magyar.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-norsk.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-norsk.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-norsk.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-polish.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-polish.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-polish.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-romanian.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-romanian.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-romanian.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-russian.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-russian.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-russian.tlpsrc diff --git a/Master/tlpkg/tlpsrc/datetime2-samin.tlpsrc b/Master/tlpkg/tlpsrc/datetime2-samin.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/datetime2-samin.tlpsrc |