blob: 16f9108ae0b597ff86a94c94b1603960a4835842 (
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
%%
%% This is file `french.idf',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% isodate.dtx (with options: `language,french')
%%
%% isodate package
%%
%% Copyright 2000--2010 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{french.idf}
[2010/01/03 v2.30 Language definitions for isodate package (HH)]
\let\iso@languageloaded\active
\typeout{Define commands for French date format}
\def\month@french{\ifcase\month\or
janvier\or f\'evrier\or mars\or avril\or mai\or juin\or
juillet\or ao\^ut\or septembre\or octobre\or novembre\or
d\'ecembre\fi}
\def\iso@printmonthday@french#1#2{%
\ifthenelse{\equal{\iso@dateformat}{iso}\OR
\equal{\iso@dateformat}{TeX}}{%
\iso@printmonthday@int{#1}{#2}%
}{%
\ifthenelse{\equal{\iso@dateformat}{numeric}\OR
\equal{\iso@dateformat}{short}}{%
\ifiso@doprintday
\iso@printday{#2}/%
\fi
\iso@printmonth{#1}%
}{%
\ifthenelse{\equal{\iso@dateformat}{orig}\OR
\equal{\iso@dateformat}{shortorig}}{%
\begingroup
\edef\lday{#2}\edef\day{\lday}%
\edef\lmonth{#1}\def\month{\lmonth}%
\ifiso@doprintday
\number\day\ifnum1=\day \noexpand\ier\fi\iso@monthsep
\fi
\month@french
\endgroup
}{}%
}%
}%
}
\def\iso@printdate@french#1#2#3{%
\ifthenelse{\equal{\iso@dateformat}{iso}\OR
\equal{\iso@dateformat}{TeX}}{%
\iso@printdate@int{#1}{#2}{#3}%
}{%
\iso@printmonthday@french{\number#2}{\number#3}%
\ifiso@printyear
\ifthenelse{\equal{\iso@dateformat}{orig}\OR
\equal{\iso@dateformat}{shortorig}}{%
}{%
/%
}%
\ifthenelse{\equal{\iso@dateformat}{numeric}}{%
\iso@yearfour{\number#1}%
}{%
\ifthenelse{\equal{\iso@dateformat}{orig}}{%
\iso@yearsep\iso@yearfour{\number#1}%
}{%
\ifthenelse{\equal{\iso@dateformat}{shortorig}}{%
\iso@yearsep\iso@twodigitsign\iso@yeartwo{\number#1}%
}{%
\ifthenelse{\equal{\iso@dateformat}{short}}{%
\iso@yeartwo{\number#1}%
}{}%
}%
}%
}%
\fi
}%
}
\def\iso@datefrench{%
\def\today{\iso@printdate@french{\year}{\month}{\day}}}%
\expandafter\def\csname iso@daterange@\CurrentOption\endcsname{%
\iso@daterange@french}%
\def\iso@daterange@french#1#2#3#4#5#6{%
\ifthenelse{\equal{\iso@dateformat}{iso}\OR
\equal{\iso@dateformat}{TeX}}{%
\iso@daterange@int{#1}{#2}{#3}{#4}{#5}{#6}%
}{%
\ifthenelse{\equal{\number#1}{\number#4}}{%
\ifthenelse{\equal{\number#2}{\number#5}}{%
\ifiso@doprintday
\ifthenelse{\equal{\iso@dateformat}{orig}}{%
\begingroup
\edef\lday{#3}\edef\day{\lday}%
\number\day\ifnum1=\day \noexpand\ier\fi
\endgroup
}{%
\iso@printday{#3}%
}%
\else
\csname iso@printmonthday@\iso@languagename\endcsname{#2}{#3}%
\fi
}{%
\iso@printmonthday@french{#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{~au~}
\def\iso@languagename{french}%
\AtBeginDocument{%
\ifx\undefined\iso@datefrench\else
\def\datefrench{\iso@datefrench}%
\def\datefrenchb{\iso@datefrench}%
\fi
}
\endinput
%%
%% End of file `french.idf'.
|