diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tracklang/tracklang.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tracklang/tracklang.sty | 75 |
1 files changed, 39 insertions, 36 deletions
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 |