summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/isodate/italian.idf
blob: b010384eee2ca4cd0857ceb72db34115c8b2193d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%%
%% This is file `italian.idf',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% isodate.dtx  (with options: `language,italian')
%% 
%%   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{italian.idf}
  [2005/04/15  v2.28  Language definitions for isodate package (HH)]
\let\iso@languageloaded\active
\typeout{Define commands for Italian date format}
\def\month@italian{\ifcase\month\or
  gennaio\or febbraio\or marzo\or aprile\or maggio\or giugno\or
  luglio\or agosto\or settembre\or ottobre\or novembre\or
  dicembre\fi}
\def\iso@printmonthday@italian#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}}{%
          \begingroup
          \edef\lday{#2}\edef\day{\lday}%
          \edef\lmonth{#1}\def\month{\lmonth}%
          \number\day\ifnum1=\day \noexpand\textordmasculine\fi~\month@italian%
          \endgroup
          }{}}}}%
  }
\def\iso@printdate@italian#1#2#3{%
  \ifthenelse{\equal{\iso@dateformat}{iso}\or%
    \equal{\iso@dateformat}{TeX}}{%
    \ifiso@printyear\iso@yearfour{\number#1}\fi}{}%
  \iso@printmonthday@italian{\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@dateitalian{%
  \def\today{\iso@printdate@italian{\year}{\month}{\day}}}%
  \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{%
    \iso@daterange@italian}%
\def\iso@daterange@italian#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@italian{#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}}{%
          \begingroup
            \edef\lday{#3}\edef\day{\lday}%
            \number\day\ifnum1=\day \noexpand\textordmasculine\fi
            \endgroup}{\iso@printday{#3}}%
        }{\iso@printmonthday@italian{#2}{#3}}}{%
      \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}%
    \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{%
      #4}{#5}{#6}%
}{%
    }%
}
\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~al~}
\def\iso@languagename{italian}%
\AtBeginDocument{%
  \ifx\undefined\iso@dateitalian\else
    \def\dateitalian{\iso@dateitalian}%
  \fi
}
\endinput
%%
%% End of file `italian.idf'.