summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex-gost/russian.idf
blob: ec21430643e4cd0660078eb54cdc0c1f76b14206 (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
128
129
130
131
132
133
134
135
136
\ProvidesFile{russian.idf}
  [2010/01/03  v2.30  Language definitions for isodate package (HH)]
\let\iso@languageloaded\active
\def\month@russian{\ifcase\month\or
    \cyrya\cyrn\cyrv\cyra\cyrr\cyrya
    \or \cyrf\cyre\cyrv\cyrr\cyra\cyrl\cyrya
    \or \cyrm\cyra\cyrr\cyrt\cyra
    \or \cyra\cyrp\cyrr\cyre\cyrl\cyrya
    \or \cyrm\cyra\cyrya
    \or \cyri\cyryu\cyrn\cyrya
    \or \cyri\cyryu\cyrl\cyrya
    \or \cyra\cyrv\cyrg\cyru\cyrs\cyrt\cyra
    \or \cyrs\cyre\cyrn\cyrt\cyrya\cyrb\cyrr\cyrya
    \or \cyro\cyrk\cyrt\cyrya\cyrb\cyrr\cyrya
    \or \cyrn\cyro\cyrya\cyrb\cyrr\cyrya
    \or \cyrd\cyre\cyrk\cyra\cyrb\cyrr\cyrya\fi}
\ifthenelse{\equal{\CurrentOption}{russian}}{%
  \typeout{Define commands for Russian date format}
  \def\day@russian{%
    \ifiso@cleanlook
      \day
    \else
      \ifcase\day\or
        1\or 2\or 3\or 4\or 5\or
        6\or 7\or 8\or 9\or 10\or
        11\or 12\or 13\or 14\or 15\or
        16\or 17\or 18\or 19\or 20\or
        21\or 22\or 23\or 24\or 25\or
        26\or 27\or 28\or 29\or 30\or
        31%
      \fi
    \fi
  }
  \def\iso@printmonthday@russian#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}\def\day{\lday}%
          \edef\lmonth{#1}\def\month{\lmonth}%
          \ifiso@doprintday
            \day@russian\iso@monthsep\@empty
          \fi
          \month@russian
          \endgroup
        }{}%
      }%
    }%
  }
  \def\iso@printdate@russian#1#2#3{%
    \ifthenelse{\equal{\iso@dateformat}{iso}\OR
                \equal{\iso@dateformat}{TeX}}{%
      \iso@printdate@int{#1}{#2}{#3}%
    }{%
      \iso@printmonthday@russian{\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@daterussian{%
    \def\today{\iso@printdate@russian{\year}{\month}{\day}}}%
  \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{%
    \iso@daterange@russian}%
  \def\iso@daterange@russian#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}\OR
                        \equal{\iso@dateformat}{shortorig}}{%
              \begingroup
              \edef\lday{#3}\def\day{\lday}%
              \day@russian
              \endgroup
            }{%
              \iso@printday{#3}%
            }%
          \else
            \csname iso@printmonthday@\iso@languagename\endcsname{#2}{#3}%
          \fi
        }{%
          \csname iso@printmonthday@\iso@languagename\endcsname{#2}{#3}%
        }%
      }{%
        \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}%
      }%
      \iso@rangesign
      \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}%
    }%
  }
  \def\iso@languagename{russian}%
}{}
\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~to~}
\AtBeginDocument{%
  \ifx\undefined\iso@daterussian\else
    \def\daterussian{\iso@daterussian}%
    \def\datebritish{\iso@daterussian}%
    \def\dateUKrussian{\iso@daterussian}%
  \fi
}
\endinput
%%
%% End of file `russian.idf'.