blob: 436ac751366e909316c8211cb7ff81e8d2717069 (
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
|
\ProvidesFile{gloss-serbian.ldf}[polyglossia: module for serbian]
%TODO split into gloss-serbiancyr.ldf and gloss-serbianlat.ldf
%% load these automatically from polyglossia.sty according to the script option ??
%% same thing for all languages that have a "script" key !
%% BETTER APPROACH: see gloss-sanskrit!
\PolyglossiaSetup{serbian}{
langtag=SRB,
hyphennames={serbian},
hyphenmins={2,2},
indentfirst=true,
fontsetup=false
%TODO localalph
}
\newif\if@serbian@cyr
\define@key{serbian}{Script}[Cyrillic]{% TODO FIXDOC: keyname is CHANGED: script -> Script !!!
\ifstrequal{#1}{Cyrillic}%
{\@serbian@cyrtrue
\setkeys[xpg@setup]{serbian}{script=Cyrillic}%
\def\xpg@scripttag@serbian{cyrl}%
\xpg@fontsetup@nonlatin{serbian}%
}%
{\ifstrequal{#1}{Latin}%
{\@serbian@cyrfalse
\xpg@fontsetup@latin{serbian}%
%TODO \def\serbian@language{\language=\l@serbianlat}%
% or should we use Croatian patterns as a fallback for the time being???
}%
{\xpg@error{Unknown script `#1' for Serbian language\MessageBreak
Valid values are "Cyrillic" and "Latin"}}%
}%
}
\define@key{serbian}{script}[Cyrillic]{\setkeys{serbian}{Script=#1}}
\setkeys{serbian}{Script}
\def\captionsserbian{%
\if@serbian@cyr\captionsserbian@cyr\else\captionsserbian@lat\fi
}
\def\dateserbian{%
\if@serbian@cyr\dateserbian@cyr\else\dateserbian@lat\fi
}
\def\captionsserbian@lat{%
\def\refname{Bibliografija}%
\def\abstractname{Sažetak}%
\def\bibname{Literatura}%
\def\prefacename{Predgovor}%
\def\chaptername{Glava}%
\def\appendixname{Dodatak}%
\def\contentsname{Sadržaj}%
\def\listfigurename{Spisak slika}%
\def\listtablename{Spisak tabela}%
\def\indexname{Registar}%
\def\figurename{Slika}%
\def\tablename{Tabela}%
\def\partname{Deo}%
\renewcommand\thepart{\ifcase\value{part}\or Prvi\or Drugi\or
Treći\or Čevrti\or Peti\or Šesti\or Sedmi\or Osmi\or
Deveti\or Deseti\or Jedanaesti\or Dvanaesti\or Trinaesti\or
Četrnaesti\or Petnaesti\or Šesnaesti\or Sedamnaesti\or
Osamnaesti\or Devetnaesti\or Dvadeseti\fi}%
\def\pagename{Strana}%
\def\seename{Vidi}%
\def\alsoname{Vidi takođe}%
\def\enclname{Prilozi}%
\def\ccname{Kopije}%
\def\headtoname{Prima}%
\def\proofname{Dokaz}%
\def\glossaryname{Rečnik nepoznatih reči}%
}
\def\dateserbian@lat{%
\def\today{\number\day .~\ifcase\month\or
januar\or februar\or mart\or april\or maj\or
jun\or jul\or avgust\or septembar\or oktobar\or novembar\or
decembar\fi \space \number\year.}%
}
\def\captionsserbian@cyr{%
\def\refname{Библиографија}%
\def\abstractname{Сажетак}%
\def\bibname{Литература}%
\def\prefacename{Предговор}%
\def\chaptername{Глава}%
\def\appendixname{Додатак}%
\def\contentsname{Садржај}%
\def\listfigurename{Списак слика}%
\def\listtablename{Списак табела}%
\def\indexname{Регистар}%
\def\figurename{Слика}%
\def\tablename{Табела}%
\def\partname{Део}%
\renewcommand\thepart{\ifcase\value{part}\or Први\or Други\or Трећи\or
Четврти\or Пети\or Шести\or Седми\or Осми\or Девети\or Десети\or
Једанаести\or Дванаести\or Тринаести\or Четрнаести\or Петнаести\or
Шеснаести\or Седамнаести\or Осамнаести\or Деветнаести\or Двадесети\fi}%
\def\pagename{Страна}%
\def\seename{Види}%
\def\alsoname{Види такође}%
\def\enclname{Прилози}%
\def\ccname{Копије}%
\def\headtoname{Прима}%
\def\proofname{Доказ}%
\def\glossaryname{Речник непознатих речи}%
}
\def\dateserbian@cyr{%
\def\today{\number\day .~\ifcase\month\or
јануар\or фебруар\or март\or април\or мај\or
јун\or јул\or август\or септембар\or октобар\or новембар\or
децембар\fi \space \number\year.}%
}
\endinput
% TODO ? stuff from babel
\def\sh{\mathop{\operator@font sh}\nolimits} % same as \sinh
\def\ch{\mathop{\operator@font ch}\nolimits} % same as \cosh
\def\th{\mathop{\operator@font th}\nolimits} % same as \tanh
\def\cth{\mathop{\operator@font cth}\nolimits} % same as \coth
\def\arsh{\mathop{\operator@font arsh}\nolimits}
\def\arch{\mathop{\operator@font arch}\nolimits}
\def\arth{\mathop{\operator@font arth}\nolimits}
\def\arcth{\mathop{\operator@font arcth}\nolimits}
\def\tg{\mathop{\operator@font tg}\nolimits} % same as \tan
\def\ctg{\mathop{\operator@font ctg}\nolimits} % same as \cot
\def\arctg{\mathop{\operator@font arctg}\nolimits} % same as \arctan
\def\arcctg{\mathop{\operator@font arcctg}\nolimits}
\def\Prob{\mathop{\mathsf P\hskip0pt}\nolimits}
\def\Expect{\mathop{\mathsf E\hskip0pt}\nolimits}
\def\Variance{\mathop{\mathsf D\hskip0pt}\nolimits}
|