diff options
Diffstat (limited to 'Master/texmf-dist')
34 files changed, 130 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/generic/tracklang/CHANGES b/Master/texmf-dist/doc/generic/tracklang/CHANGES index 416116d3ee1..90d299adc34 100644 --- a/Master/texmf-dist/doc/generic/tracklang/CHANGES +++ b/Master/texmf-dist/doc/generic/tracklang/CHANGES @@ -1,3 +1,9 @@ +v1.3.9 (2019-11-11): + + * tracklang.tex: + + - added \TrackIfKnownLanguage + v1.3.8 (2019-10-06): * tracklang.tex: diff --git a/Master/texmf-dist/doc/generic/tracklang/README b/Master/texmf-dist/doc/generic/tracklang/README index bdbfd53bed7..6c9b86401c7 100644 --- a/Master/texmf-dist/doc/generic/tracklang/README +++ b/Master/texmf-dist/doc/generic/tracklang/README @@ -1,6 +1,6 @@ -Generic TeX Bundle : tracklang v1.3.8 +Generic TeX Bundle : tracklang v1.3.9 -Last Modified : 2019-10-06 +Last Modified : 2019-11-11 Author : Nicola Talbot diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-babel.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-babel.pdf Binary files differindex 135162fdda5..330ff6a0262 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-babel.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-babel.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de-poly.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de-poly.pdf Binary files differindex b041feba543..509be5eb635 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de-poly.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de-poly.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de.pdf Binary files differindex 0fd701147b6..d1448c319d2 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-poly.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-poly.pdf Binary files differindex 7c14bbe47f6..10751349074 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-poly.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-poly.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals.pdf Binary files differindex f3b1cc7ba83..c799fb8f3a6 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de.pdf Binary files differindex b2d5afa2330..07c8bf0ec69 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de2.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de2.pdf Binary files differindex 40a16a442a4..292dcd486f0 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de2.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de2.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de3.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de3.pdf Binary files differindex c90e064f315..095c57d130c 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de3.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de3.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de4.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de4.pdf Binary files differindex 6ff1942239c..86802c70d37 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de4.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de4.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-poly.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-poly.pdf Binary files differindex 78d5ec39e07..d0faec29a6d 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-poly.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-poly.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2.pdf Binary files differindex f6e3e8525ac..bd3e154a86f 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions.pdf Binary files differindex 2adf3b9d038..693d8b75e9c 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-manx.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-manx.pdf Binary files differindex e3fdc40f470..40eab364f86 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-manx.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-manx.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map.pdf Binary files differindex badfd23383e..033fec24ce8 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map2.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map2.pdf Binary files differindex 6d659b6bc5e..85f8f1f1501 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map2.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map2.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map3.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map3.pdf Binary files differindex 690bbf07ded..bbd85ced7bf 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map3.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map3.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-nomap.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-nomap.pdf Binary files differindex 5d9a7c1c5c9..46f836a3e34 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-nomap.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-nomap.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2.pdf Binary files differindex a2f66edfa48..6c396808851 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang.pdf Binary files differindex 1f5c6ea8c1a..a2c23d601b3 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang2.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang2.pdf Binary files differindex 258262f906d..b8bad2af522 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang2.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang2.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang3.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang3.pdf Binary files differindex 2609984b356..61b4f28c70e 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang3.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang3.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.pdf Binary files differindex 894b62d5077..d42a97d7154 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang5.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang5.pdf Binary files differindex 1253e87c1bc..8c05bc36f14 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang5.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang5.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.pdf b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.pdf Binary files differindex e8462de2487..47c5c053fd9 100644 --- a/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.pdf diff --git a/Master/texmf-dist/doc/generic/tracklang/tracklang.pdf b/Master/texmf-dist/doc/generic/tracklang/tracklang.pdf Binary files differindex c7e9645d51a..5aef4affc33 100644 --- a/Master/texmf-dist/doc/generic/tracklang/tracklang.pdf +++ b/Master/texmf-dist/doc/generic/tracklang/tracklang.pdf diff --git a/Master/texmf-dist/source/latex/tracklang/tracklang.dtx b/Master/texmf-dist/source/latex/tracklang/tracklang.dtx index b3415f2e22d..e7e28decc4b 100644 --- a/Master/texmf-dist/source/latex/tracklang/tracklang.dtx +++ b/Master/texmf-dist/source/latex/tracklang/tracklang.dtx @@ -2,15 +2,15 @@ % tracklang.dtx generated using makedtx version 1.2 (c) Nicola Talbot % Command line args: % -section "chapter" -% -doc "tracklang-manual.tex" % -author "Nicola Talbot" +% -doc "tracklang-manual.tex" % -src "tracklang.sty\Z=>tracklang.sty" % -src "tracklang.tex\Z=>tracklang.tex" % -src "tracklang-region-codes.tex\Z=>tracklang-region-codes.tex" % -src "tracklang-scripts.sty\Z=>tracklang-scripts.sty" % -src "tracklang-scripts.tex\Z=>tracklang-scripts.tex" % tracklang -% Created on 2019/10/6 15:08 +% Created on 2019/11/11 16:00 %\fi %\iffalse %<*package> @@ -59,7 +59,7 @@ pdfauthor={Nicola L.C. Talbot}, pdftitle={tracklang: tracking language options}]{hyperref} -\CheckSum{3965} +\CheckSum{3986} \appto\MacroFont{\scriptsize} \renewcommand*{\usage}[1]{\textit{\hyperpage{#1}}} @@ -278,11 +278,11 @@ and~\ref{tab:nonisoopts}} % %\MakeShortVerb{"} % -%\title{tracklang v1.3.8: +%\title{tracklang v1.3.9: %tracking language options} %\author{Nicola L. C. Talbot\\\url{http://www.dickimaw-books.com/}} % -%\date{2019-10-06} +%\date{2019-11-11} %\maketitle % %\begin{abstract} @@ -936,10 +936,44 @@ and~\ref{tab:nonisoopts}} %label. (Irregular grandfather tags aren't recognised.) %This command will fully expand \meta{tag}. %A warning is issued if the tag is empty. +% +%If you want to first check that \meta{tag} includes a valid language +%code, then you can instead use: +%\begin{definition}[\DescribeMacro\TrackIfKnownLanguage] +%\cs{TrackIfKnownLanguage}\marg{tag}\marg{success code}\marg{fail code} +%\end{definition} +%This will only track \meta{tag} (and then do \meta{success code}) if +%\meta{tag} starts with a valid language code (or is a predefined +%dialect) otherwise it will do \meta{fail code}. Both +%\cs{TrackLanguageTag} and \cs{TrackIfKnownLanguage} will check if +%\meta{tag} is a predefined option. (This saves parsing the tag if +%it's recognised.) +% %For example: %\begin{verbatim} %\TrackLanguageTag{hy-Latn-IT-arevela} +%Latn-ME: \TrackIfKnownLanguage{Latn-ME}{success}{fail}. +%brazilian: \TrackIfKnownLanguage{brazilian}{success}{fail}. +%\end{verbatim} +%This will track hy-Latn-IT-arevela and brazilian (pt-BR) but not +%Latn-ME (because it doesn't contain a valid language code) even +%though it's a valid script and country code. The above is just for +%illustrative purposes. Typically the language tracking isn't +%performed within the document text. +% +%The \sty{datetime2} package assumes that any unknown package option is a +%language identifier. It could simply do: +%\begin{verbatim} +%\TrackLanguageTag{\CurrentOption} +%\end{verbatim} +%but users can make mistakes sometimes and this won't provide any +%helpful information if they, for example, misspelt a package option +%or forgot the ``\meta{key}='' part of a \meta{key}=\meta{value} +%setting. Instead (as from v1.5.5) it does: +%\begin{verbatim} +%\TrackIfKnownLanguage{\CurrentOption}{...}{\PackageError{...}{...}{...}} %\end{verbatim} +%This will now give the user some guidance. % %If \meta{tag} contains a sub-language tag, this will be set %as the 639-3 code for the \emph{dialect} label. Note that this is @@ -957,8 +991,7 @@ and~\ref{tab:nonisoopts}} %ISO 639-3: \TrackedIsoCodeFromLanguage{639-3}{zhcmnHansCN}. %\end{verbatim} % -%Version 1.2 (currently pending) of -%\sty{texosquery} will have a new command \ics{TeXOSQueryLangTag}, +%Version 1.2 of \sty{texosquery} provides the command \ics{TeXOSQueryLangTag}, %which may be used to fetch the operating system's regional %information as a language tag. These commands can be used as %follows: @@ -3264,7 +3297,7 @@ and~\ref{tab:nonisoopts}} % packages such as \styfmt{etoolbox}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tracklang}[2019/10/06 v1.3.8 (NLCT) Track Languages] +\ProvidesPackage{tracklang}[2019/11/11 v1.3.9 (NLCT) Track Languages] % \end{macrocode} %\begin{macro}{\@tracklang@declareoption} % Set up package options. @@ -3560,7 +3593,7 @@ and~\ref{tab:nonisoopts}} % Version info. % \begin{macrocode} \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} % \end{macrocode} % Define a long command for determining the existence of a control % sequence by its name. (\cs{relax} is considered undefined.) @@ -5959,6 +5992,57 @@ and~\ref{tab:nonisoopts}} % \end{macrocode} %\end{macro} % +%\begin{macro}{\TrackIfKnownLanguage} +%\begin{definition} +%\cs{TrackIfKnownLanguage}\marg{tag}\meta{success code}\marg{fail code} +%\end{definition} +%Like \cs{TrackLanguageTag} but does \meta{fail code} if the tag +%doesn't contain a valid language code. If successful, does +%\meta{success code} after tracking the language. +%\changes{1.3.9}{2019-11-11}{new} +% \begin{macrocode} +\def\TrackIfKnownLanguage#1#2#3{% + \edef\@tracklang@tag{#1}% + \ifx\@tracklang@tag\empty + #3% + \else + \expandafter\@TrackIfKnownLanguage\expandafter{\@tracklang@tag}{#2}{#3}% + \fi +} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\@TrackIfKnownLanguage} +%Argument must be expanded. +%\changes{1.3.9}{2019-11-11}{new} +% \begin{macrocode} +\def\@TrackIfKnownLanguage#1#2#3{% +% \end{macrocode} +%First check if it's predefined. +% \begin{macrocode} + \@tracklang@ifundef{@tracklang@add@#1}% + {% +% \end{macrocode} +%Parse language tag. +% \begin{macrocode} + \@tracklang@parselangtag{#1}% +% \end{macrocode} +%Track this information if \cs{@TrackLangEnvLang} is a known ISO +%language code. +% \begin{macrocode} + \TrackLangIfKnownLangFromIso{\@TrackLangEnvLang}% + {\@tracklang@track@locale#2}{#3}% + }% + {% +% \end{macrocode} +%Predefined tag. +% \begin{macrocode} + \@tracklang@nameuse{@tracklang@add@#1}% + #2% + }% +} +% \end{macrocode} +%\end{macro} +% %\begin{macro}{\@tracklang@parse@langtag} %\changes{1.3}{2016-10-07}{new} % \begin{macrocode} @@ -10109,7 +10193,7 @@ and~\ref{tab:nonisoopts}} % Version info. % \begin{macrocode} \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}% % \end{macrocode} % %\begin{macro}{\TrackLangRegionMap} @@ -10498,7 +10582,7 @@ and~\ref{tab:nonisoopts}} %\changes{1.3}{2016-10-07}{added tracklang-scripts.sty} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tracklang-scripts}[2019/10/06 v1.3.8 (NLCT) Track +\ProvidesPackage{tracklang-scripts}[2019/11/11 v1.3.9 (NLCT) Track Language Scripts (LaTeX)] \RequirePackage{tracklang} \input{tracklang-scripts} @@ -10540,7 +10624,7 @@ Language Scripts (LaTeX)] % Version info. % \begin{macrocode} \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)}% % \end{macrocode} % %\begin{macro}{\TrackLangScriptsMap} diff --git a/Master/texmf-dist/source/latex/tracklang/tracklang.ins b/Master/texmf-dist/source/latex/tracklang/tracklang.ins index ae7dc0eb5ae..19adb1e4f4a 100644 --- a/Master/texmf-dist/source/latex/tracklang/tracklang.ins +++ b/Master/texmf-dist/source/latex/tracklang/tracklang.ins @@ -1,4 +1,4 @@ -% tracklang.ins generated using makedtx version 1.2 2019/10/6 15:08 +% tracklang.ins generated using makedtx version 1.2 2019/11/11 16:00 \input docstrip \preamble 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{}% diff --git a/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty b/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty index 34d335d16d3..8b195dbc77d 100644 --- a/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty +++ b/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty @@ -51,7 +51,7 @@ %% do code now to initialise %% Pass all options to tracklang: \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tracklang-scripts}[2019/10/06 v1.3.8 (NLCT) Track +\ProvidesPackage{tracklang-scripts}[2019/11/11 v1.3.9 (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 70d001e92a6..842c179739b 100644 --- a/Master/texmf-dist/tex/latex/tracklang/tracklang.sty +++ b/Master/texmf-dist/tex/latex/tracklang/tracklang.sty @@ -51,7 +51,7 @@ %% do code now to initialise %% Pass all options to tracklang: \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tracklang}[2019/10/06 v1.3.8 (NLCT) Track Languages] +\ProvidesPackage{tracklang}[2019/11/11 v1.3.9 (NLCT) Track Languages] \providecommand*{\@tracklang@declareoption}[1]{% \DeclareOption{#1}{\TrackPredefinedDialect{#1}}% } |