summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tracklang/tracklang.sty
blob: 1719390e199bdec48bf9ef0fbe9155902a36c3cb (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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
%%
%% 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 2020 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 or (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, tracklang-region-codes.tex, tracklang-scripts.sty, tracklang-scripts.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         \~}
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% do code now to initialise
%% Pass all options to tracklang:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tracklang}[2020/06/30 v1.5 (NLCT) Track Languages]
\providecommand*{\@tracklang@declareoption}[1]{%
  \DeclareOption{#1}{\TrackPredefinedDialect{#1}}%
}
\input{tracklang}
\let\@tracklang@declaredoptions\@declaredoptions
\ProcessOptions
\let\@tracklang@declareoption\@gobble
\csname @tracklang@prelangpkgcheck@hook\endcsname
\ifx\@tracklang@languages\@empty
  \@ifundefined{bbl@loaded}%
  {%
    \@ifundefined{trans@languages}
    {%
       \@ifpackageloaded{ngerman}%
       {%
         \@tracklang@add@ngerman
       }%
       {%
         \@ifpackageloaded{german}%
         {%
           \@tracklang@add@german
         }%
         {%
           \@ifpackageloaded{polyglossia}
           {%
             \@ifundefined{xpg@loaded}%
             {%
               \PackageInfo{tracklang}{polyglossia loaded but
               \string\xpg@loaded\space not defined. Will attempt
               to track known languages.}%
                \@for\this@language:=\@tracklang@declaredoptions\do{%
                  \@ifundefined{\this@language @loaded}%
                  {}%
                  {\@nameuse{@tracklang@add@\this@language}}%
                }%
             }%
             {%
                \@for\this@language:=\xpg@loaded\do{%
                  \@ifundefined{@tracklang@add@\this@language}%
                  {%
                     \PackageWarning{tracklang}%
                       {Adding unknown polyglossia language `\this@language'}%
                     \AddTrackedLanguage{\this@language}%
                  }%
                  {\@nameuse{@tracklang@add@\this@language}}%
                }%
             }%
           }%
           {%
             \@ifpackageloaded{babel}
             {%
               \PackageInfo{tracklang}{babel loaded but
               \string\bbl@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 babel language `\this@language'}%
         \AddTrackedLanguage{\this@language}%
       }%
       {\@nameuse{@tracklang@add@\this@language}}%
     }%
     \ifx\captionsserbian\undefined
     \else
       \SetTrackedDialectScript{serbian}{Latn}%
     \fi
  }
\fi
\endinput
%%
%% End of file `tracklang.sty'.