summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/isodate/danish.idf
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:57:14 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:57:14 +0000
commit89676d2bc257e3b020cb4692ffa5cb092470a1b5 (patch)
tree008e97aad811c7f81018234028961f9370ccbe65 /Master/texmf-dist/tex/latex/isodate/danish.idf
parent76f683b146315bf9236a0f9599561bd6d616555e (diff)
isodate
git-svn-id: svn://tug.org/texlive/trunk@1000 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/isodate/danish.idf')
-rw-r--r--Master/texmf-dist/tex/latex/isodate/danish.idf100
1 files changed, 100 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/isodate/danish.idf b/Master/texmf-dist/tex/latex/isodate/danish.idf
new file mode 100644
index 00000000000..2d2d9949668
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/isodate/danish.idf
@@ -0,0 +1,100 @@
+%%
+%% This is file `danish.idf',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% isodate.dtx (with options: `language,danish')
+%%
+%% isodate package
+%%
+%% Copyright 2000--2005 Harald Harders
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or any later version.
+%%
+%% h.harders@tu-bs.de
+%%
+\ProvidesFile{danish.idf}
+ [2005/03/11 v2.27 Language definitions for isodate package (HH)]
+\let\iso@languageloaded\active
+\typeout{Define commands for Danish date format}
+\def\month@danish{\ifcase\month\or
+ januar\or februar\or marts\or april\or maj\or juni\or
+ juli\or august\or september\or oktober\or november\or december\fi}
+ \def\iso@printmonthday@danish#1#2{%
+ \ifthenelse{\equal{\iso@dateformat}{numeric}\or%
+ \equal{\iso@dateformat}{short}}{%
+ \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{%
+ \ifthenelse{\equal{\iso@dateformat}{iso}}{%
+ \ifiso@printyear\iso@isodash\fi\iso@printmonth{#1}%
+ \iso@isodash\iso@printday{#2}}{%
+ \ifthenelse{\equal{\iso@dateformat}{TeX}}{%
+ \ifiso@printyear/\fi\iso@printmonth{#1}/\iso@printday{#2}}{%
+ \ifthenelse{\equal{\iso@dateformat}{orig}\or
+ \equal{\iso@dateformat}{shortorig}}{%
+ \iso@printday{#2}.~\begingroup
+ \edef\lmonth{#1}\def\month{\lmonth}%
+ \month@danish%
+ \endgroup
+ }{}}}}%
+ }
+ \def\iso@printdate@danish#1#2#3{%
+ \ifthenelse{\equal{\iso@dateformat}{iso}\or%
+ \equal{\iso@dateformat}{TeX}}{%
+ \ifiso@printyear
+ \number#1%
+ \fi}{}%
+ \iso@printmonthday@danish{\number#2}{\number#3}%
+ \ifiso@printyear
+ \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{%
+ \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{%
+ \ifthenelse{\equal{\iso@dateformat}{shortorig}}{%
+ ~\iso@twodigitsign\iso@yeartwo{\number#1}}{%
+ \ifthenelse{\equal{\iso@dateformat}{short}}{%
+ \iso@yeartwo{\number#1}}{%
+ }}}}%
+ \fi
+ }
+ \def\iso@datedanish{%
+ \def\today{\iso@printdate@danish{\year}{\month}{\day}}}%
+ \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{%
+ \iso@daterange@danish}%
+\def\iso@daterange@danish#1#2#3#4#5#6{%
+ \ifthenelse{\equal{\iso@dateformat}{iso}\or%
+ \equal{\iso@dateformat}{TeX}}{%
+ \csname iso@printdate@\iso@languagename\endcsname{%
+ #1}{#2}{#3}\iso@rangesign%
+ \ifthenelse{\equal{\number#1}{\number#4}}{%
+ \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}%
+ }{\iso@printmonthday@danish{#5}{#6}}}{%
+ \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}%
+ }{%
+ \ifthenelse{\equal{\number#1}{\number#4}}{%
+ \ifthenelse{\equal{\number#2}{\number#5}}{%
+ \ifthenelse{\equal{\iso@dateformat}{orig}\or
+ \equal{\iso@dateformat}{shortorig}}{%
+ \iso@printday{#3}.}{\iso@printday{#3}}%
+ }{\iso@printmonthday@danish{#2}{#3}}}{%
+ \begingroup
+ \printyearon
+ \csname iso@printdate@\iso@languagename\endcsname{%
+ #1}{#2}{#3}%
+ \endgroup}%
+ \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{%
+ #4}{#5}{#6}%
+ }{%
+ }%
+}
+\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~til~}
+\def\iso@languagename{danish}%
+\AtBeginDocument{%
+ \ifx\undefined\iso@datedanish\else
+ \def\datedanish{\iso@datedanish}%
+ \fi
+}
+\endinput
+%%
+%% End of file `danish.idf'.