-
Notifications
You must be signed in to change notification settings - Fork 5
/
tracklang.sty
179 lines (179 loc) · 7.62 KB
/
tracklang.sty
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
%%
%% This is file `tracklang.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tracklang.dtx (with options: `tracklang.sty,package')
%%
%% tracklang.dtx
%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license of (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Nicola Talbot.
%%
%% This work consists of the files tracklang.dtx and tracklang.ins and the derived files tracklang.sty, tracklang.tex.
%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tracklang}[2015/03/23 v1.2 (NLCT) Track Languages]
\providecommand*{\@tracklang@declareoption}[1]{%
\DeclareOption{#1}{\TrackPredefinedDialect{#1}}%
}
\input{tracklang}
\let\@tracklang@declaredoptions\@declaredoptions
\ProcessOptions
\let\@tracklang@declareoption\@gobble
\ifx\@tracklang@languages\@empty
\@ifundefined{bbl@loaded}%
{%
\@ifundefined{trans@languages}
{%
\@ifpackageloaded{ngerman}%
{%
\@tracklang@add@ngerman
}%
{%
\@ifpackageloaded{polyglossia}
{%
\@for\this@language:=albanian,amharic,arabic,armenian,asturian,%
bahasai,bahasam,basque,bengali,brazil,breton,bulgarian,%
catalan,coptic,croatian,czech,danish,divehi,dutch,english,%
esperanto,estonian,farsi,finnish,french,friulan,galician,%
german,greek,hebrew,hindi,icelandic,interlingua,irish,%
italian,kannada,lao,latin,latvian,lithuanian,lsorbian,%
magyar,malayalam,marathi,nko,norsk,nynorsk,occitan,%
piedmontese,polish,portuges,romanian,romansh,russian,%
samin,sanskrit,scottish,serbian,slovak,slovenian,spanish,%
swedish,syriac,tamil,telugu,thai,tibetan,turkish,turkmen,%
ukrainian,urdu,usorbian,vietnamese,welsh\do{%
\@ifundefined{\this@language @loaded}%
{}%
{%
\@ifundefined{@tracklang@add@\this@language}%
{%
\PackageWarning{tracklang}%
{Adding unknown language `\this@language'}%
\AddTrackedLanguage\this@language
}%
{%
\@nameuse{@tracklang@add@\this@language}%
}%
}%
}%
}%
{%
\@ifpackageloaded{babel}
{%
\PackageInfo{tracklang}{babel loaded but
\string\bb@loaded\space not defined. Will attempt
to track known languages.}%
\@for\this@language:=\@tracklang@declaredoptions\do{%
\@ifundefined{captions\this@language}%
{}%
{\@nameuse{@tracklang@add@\this@language}}%
}%
}%
{}%
}%
}%
}%
{%
\let\@tracklang@add@Acadian\@tracklang@add@acadian
\let\@tracklang@add@French\@tracklang@add@french
\let\@tracklang@add@Afrikaans\@tracklang@add@afrikaans
\let\@tracklang@add@Dutch\@tracklang@add@dutch
\let\@tracklang@add@AmericanEnglish\@tracklang@add@american
\let\@tracklang@add@Austrian\@tracklang@add@austrian
\@namedef{@tracklang@add@Austrian1997}{\@tracklang@add@naustrian}
\let\@tracklang@add@Bahasa\@tracklang@add@bahasa
\let\@tracklang@add@Basque\@tracklang@add@basque
\let\@tracklang@add@Brazilian\@tracklang@add@brazil
\let\@tracklang@add@Portuguese\@tracklang@add@portuguese
\let\@tracklang@add@Breton\@tracklang@add@breton
\let\@tracklang@add@BritishEnglish\@tracklang@add@british
\let\@tracklang@add@Bulgarian\@tracklang@add@bulgarian
\let\@tracklang@add@Canadian\@tracklang@add@canadian
\let\@tracklang@add@Canadien\@tracklang@add@canadien
\let\@tracklang@add@Catalan\@tracklang@add@catalan
\let\@tracklang@add@Croatian\@tracklang@add@croatian
\let\@tracklang@add@Czech\@tracklang@add@czech
\let\@tracklang@add@Danish\@tracklang@add@danish
\let\@tracklang@add@Dutch\@tracklang@add@dutch
\let\@tracklang@add@English\@tracklang@add@english
\let\@tracklang@add@Esperanto\@tracklang@add@esperanto
\let\@tracklang@add@Estonian\@tracklang@add@estonian
\let\@tracklang@add@Finnish\@tracklang@add@finnish
\let\@tracklang@add@French\@tracklang@add@french
\let\@tracklang@add@Galician\@tracklang@add@galician
\let\@tracklang@add@German\@tracklang@add@german
\@namedef{@tracklang@add@German1997}{\@tracklang@add@ngerman}
\let\@tracklang@add@Greek\@tracklang@add@greek
\let\@tracklang@add@Polutoniko\@tracklang@add@polutoniko
\let\@tracklang@add@Hebrew\@tracklang@add@hebrew
\let\@tracklang@add@Hungarian\@tracklang@add@hungarian
\let\@tracklang@add@Icelandic\@tracklang@add@icelandic
\let\@tracklang@add@Irish\@tracklang@add@irish
\let\@tracklang@add@Italian\@tracklang@add@italian
\let\@tracklang@add@Latin\@tracklang@add@latin
\let\@tracklang@add@LowerSorbian\@tracklang@add@lowersorbian
\let\@tracklang@add@Magyar\@tracklang@add@magyar
\let\@tracklang@add@Nynorsk\@tracklang@add@nynorsk
\let\@tracklang@add@Norsk\@tracklang@add@norsk
\let\@tracklang@add@Polish\@tracklang@add@polish
\let\@tracklang@add@Portuguese\@tracklang@add@portuguese
\let\@tracklang@add@Romanian\@tracklang@add@romanian
\let\@tracklang@add@Russian\@tracklang@add@russian
\let\@tracklang@add@Scottish\@tracklang@add@scottish
\let\@tracklang@add@Serbian\@tracklang@add@serbian
\let\@tracklang@add@Slovak\@tracklang@add@slovak
\let\@tracklang@add@Slovene\@tracklang@add@slovene
\let\@tracklang@add@Spanish\@tracklang@add@spanish
\let\@tracklang@add@Swedish\@tracklang@add@swedish
\let\@tracklang@add@Turkish\@tracklang@add@turkish
\let\@tracklang@add@Ukrainian\@tracklang@add@ukrainian
\let\@tracklang@add@UpperSorbian\@tracklang@add@uppersorbian
\let\@tracklang@add@Welsh\@tracklang@add@welsh
\@for\this@language:=\trans@languages\do{%
\@ifundefined{@tracklang@add@\this@language}{}%
{\@nameuse{@tracklang@add@\this@language}}%
}%
}%
}%
{%
\@for\this@language:=\bbl@loaded\do{%
\@ifundefined{@tracklang@add@\this@language}%
{%
\PackageWarning{tracklang}{Adding unknown language `\this@language'}%
\AddTrackedLangage{\this@language}%
}%
{\@nameuse{@tracklang@add@\this@language}}%
}%
}
\fi
\endinput
%%
%% End of file `tracklang.sty'.