diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/tracklang')
3 files changed, 23 insertions, 3 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 3d72ffbb8d4..4572e43960a 100644 --- a/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex +++ b/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex @@ -64,7 +64,7 @@ \expandafter\endinput \fi \expandafter\def\csname ver@tracklang-region-codes.tex\endcsname{% - 2019/10/06 v1.3.8 (NLCT) Track Languages Regions}% + 2019/11/11 v1.3.9 (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 9478b9dc8fe..1d6733ac84d 100644 --- a/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex +++ b/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex @@ -64,7 +64,7 @@ \expandafter\endinput \fi \expandafter\def\csname ver@tracklang-scripts.tex\endcsname{% - 2019/10/06 v1.3.8 (NLCT) Track Languages Scripts (Generic)}% + 2019/11/11 v1.3.9 (NLCT) Track Languages Scripts (Generic)}% \def\TrackLangScriptMap#1#2#3#4#5{% \@tracklang@enamedef{TrackLangScript#1}{#1}% \@tracklang@enamedef{@tracklang@script@numtoalpha@#2}{#1}% diff --git a/Master/texmf-dist/tex/generic/tracklang/tracklang.tex b/Master/texmf-dist/tex/generic/tracklang/tracklang.tex index 1b54693dbd2..dbbd25175a0 100644 --- a/Master/texmf-dist/tex/generic/tracklang/tracklang.tex +++ b/Master/texmf-dist/tex/generic/tracklang/tracklang.tex @@ -64,7 +64,7 @@ \expandafter\endinput \fi \expandafter\def\csname ver@tracklang.tex\endcsname{% - 2019/10/06 v1.3.8 (NLCT) Track Languages Generic Code} + 2019/11/11 v1.3.9 (NLCT) Track Languages Generic Code} \long\def\@tracklang@ifundef#1#2#3{% \ifcsname#1\endcsname \expandafter\ifx\csname #1\endcsname\relax @@ -1273,6 +1273,26 @@ \@tracklang@nameuse{@tracklang@add@#1}% }% } +\def\TrackIfKnownLanguage#1#2#3{% + \edef\@tracklang@tag{#1}% + \ifx\@tracklang@tag\empty + #3% + \else + \expandafter\@TrackIfKnownLanguage\expandafter{\@tracklang@tag}{#2}{#3}% + \fi +} +\def\@TrackIfKnownLanguage#1#2#3{% + \@tracklang@ifundef{@tracklang@add@#1}% + {% + \@tracklang@parselangtag{#1}% + \TrackLangIfKnownLangFromIso{\@TrackLangEnvLang}% + {\@tracklang@track@locale#2}{#3}% + }% + {% + \@tracklang@nameuse{@tracklang@add@#1}% + #2% + }% +} \def\@tracklang@parselangtag#1{% \def\@TrackLangEnvLang{}% \def\@TrackLangEnvSubLang{}% |