texlive[46703] Master/texmf-dist: tracklang (21feb18)

commits+karl at tug.org commits+karl at tug.org
Thu Feb 22 00:32:28 CET 2018


Revision: 46703
          http://tug.org/svn/texlive?view=revision&revision=46703
Author:   karl
Date:     2018-02-22 00:32:28 +0100 (Thu, 22 Feb 2018)
Log Message:
-----------
tracklang (21feb18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/tracklang/CHANGES
    trunk/Master/texmf-dist/doc/generic/tracklang/README
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-babel.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de-poly.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-poly.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de2.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de3.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de4.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-poly.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-manx.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map2.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map3.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-nomap.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang2.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang3.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang5.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.pdf
    trunk/Master/texmf-dist/doc/generic/tracklang/tracklang.pdf
    trunk/Master/texmf-dist/source/latex/tracklang/tracklang.dtx
    trunk/Master/texmf-dist/source/latex/tracklang/tracklang.ins
    trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex
    trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex
    trunk/Master/texmf-dist/tex/generic/tracklang/tracklang.tex
    trunk/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty
    trunk/Master/texmf-dist/tex/latex/tracklang/tracklang.sty

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/CHANGES
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tracklang/CHANGES	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/doc/generic/tracklang/CHANGES	2018-02-21 23:32:28 UTC (rev 46703)
@@ -1,3 +1,7 @@
+v1.3.5 (2018-02-21):
+
+  * Added check for polyglossia's \xpg at loaded
+
 v1.3.4 (2017-03-25):
 
   * Fixed typo in \errhelp command name

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/README
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tracklang/README	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/doc/generic/tracklang/README	2018-02-21 23:32:28 UTC (rev 46703)
@@ -1,6 +1,6 @@
-Generic TeX Bundle : tracklang v1.3.4 
+Generic TeX Bundle : tracklang v1.3.5 
 
-Last Modified      : 2017-03-25
+Last Modified      : 2018-02-21
 
 Author             : Nicola Talbot
 
@@ -8,8 +8,7 @@
 
 TeX usage: \input tracklang
 
-LaTeX code is in tracklang.sty. Generic TeX code is in
-tracklang.tex (category code of @ must be 11 on input).
+LaTeX code is in tracklang.sty. Generic TeX code is in tracklang.tex.
 
 The tracklang package is provided for package developers who want a
 simple interface to find out which languages the user has requested
@@ -17,6 +16,10 @@
 doesn't provide any translations.*  Its purpose is simply to track
 which languages have been requested by the user.
 
+Related article: "Localisation of TeX documents: tracklang."
+TUGBoat, Volume 37 (2016), No. 3.
+http://www.tug.org/TUGboat/tb37-3/tb117talbot.pdf
+
 This material is subject to the LaTeX Project Public License. 
 See http://www.ctan.org/license/lppl1.3 for the details of that license.
 

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-babel.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de-poly.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-de.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals-poly.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de3.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-de4.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2-poly.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/animals/sample-animals2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-manx.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-map3.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2-nomap.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/regions/sample-regions2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang3.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang4.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang5.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/tracklang/tracklang.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/tracklang/tracklang.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tracklang/tracklang.dtx	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/source/latex/tracklang/tracklang.dtx	2018-02-21 23:32:28 UTC (rev 46703)
@@ -1,5 +1,5 @@
 %\iffalse
-% tracklang.dtx generated using makedtx version 1.1 (c) Nicola Talbot
+% tracklang.dtx generated using makedtx version 1.2 (c) Nicola Talbot
 % Command line args:
 %   -section "chapter"
 %   -doc "tracklang-manual.tex"
@@ -10,7 +10,7 @@
 %   -src "tracklang-scripts.sty\Z=>tracklang-scripts.sty"
 %   -src "tracklang-scripts.tex\Z=>tracklang-scripts.tex"
 %   tracklang
-% Created on 2017/3/25 20:20
+% Created on 2018/2/21 13:08
 %\fi
 %\iffalse
 %<*package>
@@ -33,7 +33,7 @@
 %\fi
 % \iffalse
 % Doc-Source file to use with LaTeX2e
-% Copyright (C) 2017 Nicola Talbot, all rights reserved.
+% Copyright (C) 2018 Nicola Talbot, all rights reserved.
 % \fi
 % \iffalse
 %<*driver>
@@ -59,7 +59,7 @@
             pdfauthor={Nicola L.C. Talbot},
             pdftitle={tracklang: tracking language options}]{hyperref}
 
-\CheckSum{3897}
+\CheckSum{3914}
 
 \appto\MacroFont{\scriptsize}
 \renewcommand*{\usage}[1]{\textit{\hyperpage{#1}}}
@@ -278,11 +278,11 @@
 %
 %\MakeShortVerb{"}
 %
-%\title{tracklang v1.3.4:
+%\title{tracklang v1.3.5:
 %tracking language options}
 %\author{Nicola L. C. Talbot\\\url{http://www.dickimaw-books.com/}}
 %
-%\date{2017-03-25}
+%\date{2018-02-21}
 %\maketitle
 %
 %\begin{abstract}
@@ -300,7 +300,11 @@
 %or \envvar{LANG} environment variable (see
 %\sectionref{sec:langsty}). Windows users, who don't have the locale
 %stored in environment variables, can use \app{texosquery}
-%in combination with \styfmt{tracklang}.
+%in combination with \styfmt{tracklang}. (Similarly if \envvar{LC\_ALL}
+%or \envvar{LANG} don't contain sufficient information.) In order to
+%use \app{texosquery} through the restricted shell escape, you must
+%have at least Java~8 and set up \texttt{texosquery.cfg}
+%appropriately. (See the \app{texosquery} manual for further details.)
 %\end{abstract}
 %
 %The fundamental aim of this generic package is to be able to
@@ -307,8 +311,8 @@
 %effectively say:
 %\begin{quote}
 %The user (that is, the \emph{document} author) wants to use
-%dialects \texttt{xx-XX}, \texttt{yy-YY-Scrp}, etc in this
-%document. Any packages used by this document that provide 
+%dialects \texttt{xx-XX}, \texttt{yy-YY-Scrp}, etc in their
+%document. Any packages used by their document that provide 
 %multilingual or region-dependent support should do whatever is
 %required to activate the settings for those languages and regions
 %(or warn the user that there's no support).
@@ -319,6 +323,10 @@
 %for packages to detect the required language and region. The aim of
 %\styfmt{tracklang} is to provide that method.
 %
+%Related article: \qt{Localisation of \TeX\ documents: 
+%\styfmt{tracklang}.} TUGBoat, Volume~37 (2016), No.~3
+%(\url{http://www.tug.org/TUGboat/tb37-3/tb117talbot.pdf}).
+%
 %\clearpage
 %\tableofcontents
 %\clearpage\phantomsection
@@ -366,9 +374,13 @@
 %\qt{british}, which can result in some redundancy.
 %
 %Unfortunately I can't work out how to pick up the language variant
-%or script
-%from \sty{polyglossia}, so only the root languages are detected,
+%or script from \sty{polyglossia}, so only the root languages are detected,
 %which is suboptimal but at least provides some information.
+%(\sty{polyglossia} now provides \cs{xpg at loaded}, which
+%\sty{tracklang} uses to track the root languages, but the language variant
+%command \cs{xpg at vloaded} only seems to be set when the language
+%changes, which doesn't occur until the start of the \env{document}
+%environment.)
 %
 %If the \sty{ngerman} package has been loaded, \styfmt{tracklang}
 %effectively does
@@ -1373,16 +1385,29 @@
 %\begin{definition}[\DescribeMacro\ForEachTrackedDialect]
 %\cs{ForEachTrackedDialect}\marg{cs}\marg{code}
 %\end{definition}
-%At the start of each iteration, this sets \meta{cs} to the 
-%tracked dialect and does \meta{code}.
+%At the start of each iteration, this sets the control sequence 
+%\meta{cs} to the tracked dialect and does \meta{code}.
 %
 %You can iterate through each tracked language using:
 %\begin{definition}[\DescribeMacro\ForEachTrackedLanguage]
 %\cs{ForEachTrackedLanguage}\marg{cs}\marg{code}
 %\end{definition}
-%At the start of each iteration, this sets \meta{cs} to the 
+%At the start of each iteration, this sets the control sequence \meta{cs} to the 
 %tracked language and does \meta{code}.
 %
+%The above for-loops use the same internal mechanism as \LaTeX's
+%\cs{@for} loop. The provided control sequence \meta{cs} is updated at the
+%start of each iteration to the current element. The loop is
+%terminated when this control sequence is set to \cs{@nil}. This
+%special control sequence should never been used as it's just a
+%marker and isn't actually defined. If you get an error message
+%stating that \cs{@nil} is undefined, then it's most likely due to a
+%loop control sequence being used outside the loop. This can occur if
+%the loop contains code that isn't expanded until later. For example,
+%if the loop code includes \cs{AtBeginDocument}, you need to ensure
+%that the loop control sequence is expanded before being added to the
+%hook.
+%
 %You can test if a root language has been detected using:
 %\begin{definition}[\DescribeMacro\IfTrackedLanguage]
 %\cs{IfTrackedLanguage}\marg{label}\marg{true part}\marg{false part}
@@ -3189,7 +3214,7 @@
 % packages such as \styfmt{etoolbox}.
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang}[2017/03/25 v1.3.4 (NLCT) Track Languages]
+\ProvidesPackage{tracklang}[2018/02/21 v1.3.5 (NLCT) Track Languages]
 %    \end{macrocode}
 %\begin{macro}{\@tracklang at declareoption}
 % Set up package options.
@@ -3276,13 +3301,37 @@
 % \styfmt{tracklang}.) Script names seem to be stored in 
 % \cs{xpg:scripttag@\meta{language}} but again this doesn't seem to be set
 % for the main language until the start of the document.
+% New versions of \sty{polyglossia} store the list of loaded
+% languages in \cs{xpg at loaded}, so check if this is defined.
 %\changes{1.3}{2016-10-07}{removed hard-coded polyglossia language list}
+%\changes{1.3.5}{2018-02-21}{check for \cs{xpg at loaded}}
 %    \begin{macrocode}
-             \@for\this at language:=\@tracklang at declaredoptions\do{%
-               \@ifundefined{\this at language @loaded}%
-               {}%
-               {\@nameuse{@tracklang at add@\this at language}}%
+             \@ifundefined{xpg at loaded}%
+             {%
+%    \end{macrocode}
+%\cs{xpg at loaded} isn't defined, so iterate over known options and
+%check if the language has been loaded.
+%    \begin{macrocode}
+               \PackageInfo{tracklang}{polyglossia loaded but
+               \string\xpg at loaded\space not defined. Will attempt
+               to track known languages.}%
+                \@for\this at language:=\@tracklang at declaredoptions\do{%
+                  \@ifundefined{\this at language @loaded}%
+                  {}%
+                  {\@nameuse{@tracklang at add@\this at language}}%
+                }%
              }%
+             {%
+                \@for\this at language:=\xpg at loaded\do{%
+                  \@ifundefined{@tracklang at add@\this at language}%
+                  {%
+                     \PackageWarning{tracklang}%
+                       {Adding unknown polyglossia language `\this at language'}%
+                     \AddTrackedLangage{\this at language}%
+                  }%
+                  {\@nameuse{@tracklang at add@\this at language}}%
+                }%
+             }%
            }%
            {%
 %    \end{macrocode}
@@ -3442,8 +3491,8 @@
 %    \end{macrocode}
 % Version info.
 %    \begin{macrocode}
-\expandafter\def\csname ver at tracklang.tex\endcsname{2017/03/25 v1.3.4
-(NLCT) Track Languages Generic Code}
+\expandafter\def\csname ver at tracklang.tex\endcsname{%
+ 2018/02/21 v1.3.5 (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.)
@@ -9906,8 +9955,8 @@
 %    \end{macrocode}
 % Version info.
 %    \begin{macrocode}
-\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{2016/11/03 v1.3.3
-(NLCT) Track Languages Regions}%
+\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{%
+ 2018/02/21 v1.3.5 (NLCT) Track Languages Regions}%
 %    \end{macrocode}
 %
 %\begin{macro}{\TrackLangRegionMap}
@@ -10296,7 +10345,7 @@
 %\changes{1.3}{2016-10-07}{added tracklang-scripts.sty}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang-scripts}[2016/11/03 v1.3.3 (NLCT) Track
+\ProvidesPackage{tracklang-scripts}[2018/02/21 v1.3.5 (NLCT) Track
 Language Scripts (LaTeX)]
 \RequirePackage{tracklang}
 \input{tracklang-scripts}
@@ -10337,8 +10386,8 @@
 %    \end{macrocode}
 % Version info.
 %    \begin{macrocode}
-\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{2016/11/03 v1.3.3
-(NLCT) Track Languages Scripts (Generic)}%
+\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{%
+ 2018/02/21 v1.3.5 (NLCT) Track Languages Scripts (Generic)}%
 %    \end{macrocode}
 %
 %\begin{macro}{\TrackLangScriptsMap}

Modified: trunk/Master/texmf-dist/source/latex/tracklang/tracklang.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/tracklang/tracklang.ins	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/source/latex/tracklang/tracklang.ins	2018-02-21 23:32:28 UTC (rev 46703)
@@ -1,14 +1,14 @@
-% tracklang.ins generated using makedtx version 1.1 2017/3/25 20:20
+% tracklang.ins generated using makedtx version 1.2 2018/2/21 13:08
 \input docstrip
 
 \preamble
 
  tracklang.dtx
- Copyright 2017 Nicola Talbot
+ Copyright 2018 Nicola Talbot
 
  This work may be distributed and/or modified under the
  conditions of the LaTeX Project Public License, either version 1.3
- of this license of (at your option) any later version.
+ of this license or (at your option) any later version.
  The latest version of this license is in
    http://www.latex-project.org/lppl.txt
  and version 1.3 or later is part of all distributions of LaTeX

Modified: trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex	2018-02-21 23:32:28 UTC (rev 46703)
@@ -7,11 +7,11 @@
 %% tracklang.dtx  (with options: `tracklang-region-codes.tex,package')
 %% 
 %%  tracklang.dtx
-%%  Copyright 2017 Nicola Talbot
+%%  Copyright 2018 Nicola Talbot
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  and version 1.3 or later is part of all distributions of LaTeX
@@ -63,8 +63,8 @@
   \@tracklang at regions@restore at at
   \expandafter\endinput
 \fi
-\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{2016/11/03 v1.3.3
-(NLCT) Track Languages Regions}%
+\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{%
+ 2018/02/21 v1.3.5 (NLCT) Track Languages Regions}%
 \def\TrackLangRegionMap#1#2#3{%
   \@tracklang at enamedef{@tracklang at region@numtoalphaii@#1}{#2}%
   \@tracklang at enamedef{@tracklang at region@numtoalphaiii@#1}{#3}%

Modified: trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex	2018-02-21 23:32:28 UTC (rev 46703)
@@ -7,11 +7,11 @@
 %% tracklang.dtx  (with options: `tracklang-scripts.tex,package')
 %% 
 %%  tracklang.dtx
-%%  Copyright 2017 Nicola Talbot
+%%  Copyright 2018 Nicola Talbot
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  and version 1.3 or later is part of all distributions of LaTeX
@@ -63,8 +63,8 @@
   \@tracklang at scripts@restore at at
   \expandafter\endinput
 \fi
-\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{2016/11/03 v1.3.3
-(NLCT) Track Languages Scripts (Generic)}%
+\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{%
+ 2018/02/21 v1.3.5 (NLCT) Track Languages Scripts (Generic)}%
 \def\TrackLangScriptMap#1#2#3#4#5{%
   \@tracklang at enamedef{TrackLangScript#1}{#1}%
   \@tracklang at enamedef{@tracklang at script@numtoalpha@#2}{#1}%

Modified: trunk/Master/texmf-dist/tex/generic/tracklang/tracklang.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tracklang/tracklang.tex	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/tex/generic/tracklang/tracklang.tex	2018-02-21 23:32:28 UTC (rev 46703)
@@ -7,11 +7,11 @@
 %% tracklang.dtx  (with options: `tracklang.tex,package')
 %% 
 %%  tracklang.dtx
-%%  Copyright 2017 Nicola Talbot
+%%  Copyright 2018 Nicola Talbot
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  and version 1.3 or later is part of all distributions of LaTeX
@@ -63,8 +63,8 @@
   \@tracklang at restore@at
   \expandafter\endinput
 \fi
-\expandafter\def\csname ver at tracklang.tex\endcsname{2017/03/25 v1.3.4
-(NLCT) Track Languages Generic Code}
+\expandafter\def\csname ver at tracklang.tex\endcsname{%
+ 2018/02/21 v1.3.5 (NLCT) Track Languages Generic Code}
 \long\def\@tracklang at ifundef#1#2#3{%
   \ifcsname#1\endcsname
     \expandafter\ifx\csname #1\endcsname\relax

Modified: trunk/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty	2018-02-21 23:32:28 UTC (rev 46703)
@@ -7,11 +7,11 @@
 %% tracklang.dtx  (with options: `tracklang-scripts.sty,package')
 %% 
 %%  tracklang.dtx
-%%  Copyright 2017 Nicola Talbot
+%%  Copyright 2018 Nicola Talbot
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  and version 1.3 or later is part of all distributions of LaTeX
@@ -51,7 +51,7 @@
 %% do code now to initialise
 %% Pass all options to tracklang:
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang-scripts}[2016/11/03 v1.3.3 (NLCT) Track
+\ProvidesPackage{tracklang-scripts}[2018/02/21 v1.3.5 (NLCT) Track
 Language Scripts (LaTeX)]
 \RequirePackage{tracklang}
 \input{tracklang-scripts}

Modified: trunk/Master/texmf-dist/tex/latex/tracklang/tracklang.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tracklang/tracklang.sty	2018-02-21 23:30:25 UTC (rev 46702)
+++ trunk/Master/texmf-dist/tex/latex/tracklang/tracklang.sty	2018-02-21 23:32:28 UTC (rev 46703)
@@ -7,11 +7,11 @@
 %% tracklang.dtx  (with options: `tracklang.sty,package')
 %% 
 %%  tracklang.dtx
-%%  Copyright 2017 Nicola Talbot
+%%  Copyright 2018 Nicola Talbot
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  and version 1.3 or later is part of all distributions of LaTeX
@@ -51,7 +51,7 @@
 %% do code now to initialise
 %% Pass all options to tracklang:
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang}[2017/03/25 v1.3.4 (NLCT) Track Languages]
+\ProvidesPackage{tracklang}[2018/02/21 v1.3.5 (NLCT) Track Languages]
 \providecommand*{\@tracklang at declareoption}[1]{%
   \DeclareOption{#1}{\TrackPredefinedDialect{#1}}%
 }
@@ -76,11 +76,28 @@
          {%
            \@ifpackageloaded{polyglossia}
            {%
-             \@for\this at language:=\@tracklang at declaredoptions\do{%
-               \@ifundefined{\this at language @loaded}%
-               {}%
-               {\@nameuse{@tracklang at add@\this at language}}%
+             \@ifundefined{xpg at loaded}%
+             {%
+               \PackageInfo{tracklang}{polyglossia loaded but
+               \string\xpg at loaded\space not defined. Will attempt
+               to track known languages.}%
+                \@for\this at language:=\@tracklang at declaredoptions\do{%
+                  \@ifundefined{\this at language @loaded}%
+                  {}%
+                  {\@nameuse{@tracklang at add@\this at language}}%
+                }%
              }%
+             {%
+                \@for\this at language:=\xpg at loaded\do{%
+                  \@ifundefined{@tracklang at add@\this at language}%
+                  {%
+                     \PackageWarning{tracklang}%
+                       {Adding unknown polyglossia language `\this at language'}%
+                     \AddTrackedLangage{\this at language}%
+                  }%
+                  {\@nameuse{@tracklang at add@\this at language}}%
+                }%
+             }%
            }%
            {%
              \@ifpackageloaded{babel}



More information about the tex-live-commits mailing list