summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-08 23:34:41 +0000
committerKarl Berry <karl@freefriends.org>2016-10-08 23:34:41 +0000
commit0e25a365d04f0f281f06e0b65397b61142501b12 (patch)
treefb35ddaf228cb6449f36fd8f07c2beb5f3362e64 /Master/texmf-dist/tex/latex
parentafce9e93f3a413b814c2b7f5a79dec2290624335 (diff)
tracklang (8oct16)
git-svn-id: svn://tug.org/texlive/trunk@42235 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty60
-rw-r--r--Master/texmf-dist/tex/latex/tracklang/tracklang.sty75
2 files changed, 99 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty b/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty
new file mode 100644
index 00000000000..4146f4d7f9e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty
@@ -0,0 +1,60 @@
+%%
+%% This is file `tracklang-scripts.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% tracklang.dtx (with options: `tracklang-scripts.sty,package')
+%%
+%% tracklang.dtx
+%% Copyright 2016 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, 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-scripts}[2016/10/08 v1.3.1 (NLCT) Track
+Language Scripts (LaTeX)]
+\RequirePackage{tracklang}
+\input{tracklang-scripts}
+\endinput
+%%
+%% End of file `tracklang-scripts.sty'.
diff --git a/Master/texmf-dist/tex/latex/tracklang/tracklang.sty b/Master/texmf-dist/tex/latex/tracklang/tracklang.sty
index a8e92e4e9ff..67a4a9d264c 100644
--- a/Master/texmf-dist/tex/latex/tracklang/tracklang.sty
+++ b/Master/texmf-dist/tex/latex/tracklang/tracklang.sty
@@ -7,7 +7,7 @@
%% tracklang.dtx (with options: `tracklang.sty,package')
%%
%% tracklang.dtx
-%% Copyright 2015 Nicola Talbot
+%% Copyright 2016 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -21,7 +21,7 @@
%%
%% 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.
+%% 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
@@ -38,8 +38,20 @@
%% 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}[2015/03/23 v1.2 (NLCT) Track Languages]
+\ProvidesPackage{tracklang}[2016/10/08 v1.3.1 (NLCT) Track Languages]
\providecommand*{\@tracklang@declareoption}[1]{%
\DeclareOption{#1}{\TrackPredefinedDialect{#1}}%
}
@@ -57,47 +69,33 @@
\@tracklang@add@ngerman
}%
{%
- \@ifpackageloaded{polyglossia}
+ \@ifpackageloaded{german}%
{%
- \@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}%
- }%
- }%
- }%
+ \@tracklang@add@german
}%
{%
- \@ifpackageloaded{babel}
+ \@ifpackageloaded{polyglossia}
{%
- \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}%
+ \@ifundefined{\this@language @loaded}%
{}%
{\@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}}%
+ }%
+ }%
+ {}%
+ }%
}%
}%
}%
@@ -167,11 +165,16 @@
\@for\this@language:=\bbl@loaded\do{%
\@ifundefined{@tracklang@add@\this@language}%
{%
- \PackageWarning{tracklang}{Adding unknown language `\this@language'}%
+ \PackageWarning{tracklang}%
+ {Adding unknown babel language `\this@language'}%
\AddTrackedLangage{\this@language}%
}%
{\@nameuse{@tracklang@add@\this@language}}%
}%
+ \ifx\captionsserbian\undefined
+ \else
+ \SetTrackedDialectScript{serbian}{Latn}%
+ \fi
}
\fi
\endinput