diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-30 20:38:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-30 20:38:48 +0000 |
commit | 7dcdc3e28edef7d4b4f4b8401a7f51b2f32bf8d5 (patch) | |
tree | 120423846aa5aa14ca1440fd785d929a3a6b3575 /Master/texmf-dist/tex | |
parent | 2e6278aba4986e621d5fc968ea2002f25561eddc (diff) |
tracklang (30oct22)
git-svn-id: svn://tug.org/texlive/trunk@64863 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
5 files changed, 65 insertions, 99 deletions
diff --git a/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex b/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex index 410dc7182ff..1a96056644a 100644 --- a/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex +++ b/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex @@ -7,7 +7,7 @@ %% tracklang.dtx (with options: `tracklang-region-codes.tex,package') %% %% tracklang.dtx -%% Copyright 2020 Nicola Talbot +%% Copyright 2022 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -38,18 +38,6 @@ %% 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: \ifnum\catcode`\@=11\relax \def\@tracklang@regions@restore@at{}% \else @@ -64,7 +52,7 @@ \expandafter\endinput \fi \expandafter\def\csname ver@tracklang-region-codes.tex\endcsname{% - 2020/06/30 v1.5 (NLCT) Track Languages Regions}% + 2022/10/29 v1.6 (NLCT) Track Languages Regions}% \def\TrackLangRegionMap#1#2#3{% \@tracklang@enamedef{@tracklang@region@numtoalphaii@#1}{#2}% \@tracklang@enamedef{@tracklang@region@numtoalphaiii@#1}{#3}% diff --git a/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex b/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex index 4b672af05d5..be6514ccdb3 100644 --- a/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex +++ b/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex @@ -7,7 +7,7 @@ %% tracklang.dtx (with options: `tracklang-scripts.tex,package') %% %% tracklang.dtx -%% Copyright 2020 Nicola Talbot +%% Copyright 2022 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -38,18 +38,6 @@ %% 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: \ifnum\catcode`\@=11\relax \def\@tracklang@scripts@restore@at{}% \else @@ -64,7 +52,7 @@ \expandafter\endinput \fi \expandafter\def\csname ver@tracklang-scripts.tex\endcsname{% - 2020/06/30 v1.5 (NLCT) Track Languages Scripts (Generic)}% + 2022/10/29 v1.6 (NLCT) Track Languages Scripts (Generic)}% \def\TrackLangScriptMap#1#2#3#4#5{% \@tracklang@enamedef{TrackLangScript#1}{#1}% \@tracklang@enamedef{@tracklang@script@numtoalpha@#2}{#1}% @@ -266,7 +254,6 @@ \TrackLangScriptMap{Tale}{353}{Tai Le}{LR}{}% \TrackLangScriptMap{Talu}{354}{New Tai Lue}{LR}{}% \TrackLangScriptMap{Taml}{346}{Tamil}{LR}{}% -\TrackLangScriptMap{Taml}{346}{Tamil}{LR}{}% \TrackLangScriptMap{Tang}{520}{Tangut}{LR}{}% \TrackLangScriptMap{Tavt}{359}{Tai Viet}{LR}{}% \TrackLangScriptMap{Telu}{340}{Telugu}{LR}{}% diff --git a/Master/texmf-dist/tex/generic/tracklang/tracklang.tex b/Master/texmf-dist/tex/generic/tracklang/tracklang.tex index 5198d0b8e6b..ee26ed9a2df 100644 --- a/Master/texmf-dist/tex/generic/tracklang/tracklang.tex +++ b/Master/texmf-dist/tex/generic/tracklang/tracklang.tex @@ -7,7 +7,7 @@ %% tracklang.dtx (with options: `tracklang.tex,package') %% %% tracklang.dtx -%% Copyright 2020 Nicola Talbot +%% Copyright 2022 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -38,18 +38,6 @@ %% 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: \ifnum\catcode`\@=11\relax \def\@tracklang@restore@at{}% \else @@ -64,7 +52,7 @@ \expandafter\endinput \fi \expandafter\def\csname ver@tracklang.tex\endcsname{% - 2020/06/30 v1.5 (NLCT) Track Languages Generic Code} + 2022/10/29 v1.6 (NLCT) Track Languages Generic Code} \long\def\@tracklang@ifundef#1#2#3{% \ifcsname#1\endcsname \expandafter\ifx\csname #1\endcsname\relax @@ -320,14 +308,14 @@ \def\TrackLangQueryEnv{% \begingroup\endlinechar=-1\relax \everyeof{\noexpand}% - \edef\x{\endgroup\def\noexpand\TrackLangEnv{% - \@tracklang@input|"kpsewhich --var-value LC_ALL" }}\x + \edef\@tracklang@x{\endgroup\def\noexpand\TrackLangEnv{% + \@tracklang@input|"kpsewhich --var-value LC_ALL" }}\@tracklang@x \@tracklang@checklocale \ifx\TrackLangEnv\empty \begingroup\endlinechar=-1\relax \everyeof{\noexpand}% - \edef\x{\endgroup\def\noexpand\TrackLangEnv{% - \@tracklang@input|"kpsewhich --var-value LANG" }}\x + \edef\@tracklang@x{\endgroup\def\noexpand\TrackLangEnv{% + \@tracklang@input|"kpsewhich --var-value LANG" }}\@tracklang@x \@tracklang@checklocale \ifx\TrackLangEnv\empty \ifx\TeXOSQueryLocale\undefined @@ -348,20 +336,20 @@ \def\TrackLangQueryOtherEnv#1{% \begingroup\endlinechar=-1\relax \everyeof{\noexpand}% - \edef\x{\endgroup\def\noexpand\TrackLangEnv{% - \@tracklang@input|"kpsewhich --var-value LC_ALL" }}\x + \edef\@tracklang@x{\endgroup\def\noexpand\TrackLangEnv{% + \@tracklang@input|"kpsewhich --var-value LC_ALL" }}\@tracklang@x \@tracklang@checklocale \ifx\TrackLangEnv\empty \begingroup\endlinechar=-1\relax \everyeof{\noexpand}% - \edef\x{\endgroup\def\noexpand\TrackLangEnv{% - \@tracklang@input|"kpsewhich --var-value #1" }}\x + \edef\@tracklang@x{\endgroup\def\noexpand\TrackLangEnv{% + \@tracklang@input|"kpsewhich --var-value #1" }}\@tracklang@x \@tracklang@checklocale \ifx\TrackLangEnv\empty \begingroup\endlinechar=-1\relax \everyeof{\noexpand}% - \edef\x{\endgroup\def\noexpand\TrackLangEnv{% - \@tracklang@input|"kpsewhich --var-value LANG"}}\x + \edef\@tracklang@x{\endgroup\def\noexpand\TrackLangEnv{% + \@tracklang@input|"kpsewhich --var-value LANG"}}\@tracklang@x \@tracklang@checklocale \ifx\TrackLangEnv\empty \ifx\TeXOSQueryLocale\undefined diff --git a/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty b/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty index ca265e138c8..ae6b5e8a13e 100644 --- a/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty +++ b/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty @@ -7,7 +7,7 @@ %% tracklang.dtx (with options: `tracklang-scripts.sty,package') %% %% tracklang.dtx -%% Copyright 2020 Nicola Talbot +%% Copyright 2022 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -38,20 +38,8 @@ %% 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}[2020/06/30 v1.5 (NLCT) Track +\ProvidesPackage{tracklang-scripts}[2022/10/29 v1.6 (NLCT) Track Language Scripts (LaTeX)] \RequirePackage{tracklang} \input{tracklang-scripts} diff --git a/Master/texmf-dist/tex/latex/tracklang/tracklang.sty b/Master/texmf-dist/tex/latex/tracklang/tracklang.sty index 1719390e199..68b244f246b 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 2020 Nicola Talbot +%% Copyright 2022 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -38,20 +38,8 @@ %% 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] +\ProvidesPackage{tracklang}[2022/10/29 v1.6 (NLCT) Track Languages] \providecommand*{\@tracklang@declareoption}[1]{% \DeclareOption{#1}{\TrackPredefinedDialect{#1}}% } @@ -77,27 +65,54 @@ {% \@ifpackageloaded{polyglossia} {% - \@ifundefined{xpg@loaded}% + \@ifundefined{xpg@bcp@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}}% - }% + \@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}}% + }% + }% }% {% - \@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}}% - }% + \@for\this@language:=\xpg@bcp@loaded\do{% + \expandafter\TrackLanguageTag{\this@language}% + }% + }% + \@ifundefined{mainbabelname}{}% + {% + \let\@org@tracklang@add@latex\@tracklang@add@latex + \def\@tracklang@add@latex{% + \PackageWarning{tracklang}% + {Can't detect polyglossia main language. It may + not have been set yet}% + }% + \@ifundefined{@tracklang@add@\mainbabelname}% + {% + \PackageWarning{tracklang}% + {Adding unknown polyglossia main babel name `\mainbabelname'}% + \expandafter\AddTrackedLanguage{\mainbabelname}% + }% + {% + \@nameuse{@tracklang@add@\mainbabelname}% + }% + \let\@tracklang@add@latex\@org@tracklang@add@latex }% }% {% |