diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/tracklang/tracklang.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/tracklang/tracklang.tex | 22 |
1 files changed, 21 insertions, 1 deletions
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{}% |