texlive[42435] Master/texmf-dist: tracklang (4nov16)
commits+karl at tug.org
commits+karl at tug.org
Fri Nov 4 22:36:39 CET 2016
Revision: 42435
http://tug.org/svn/texlive?view=revision&revision=42435
Author: karl
Date: 2016-11-04 22:36:39 +0100 (Fri, 04 Nov 2016)
Log Message:
-----------
tracklang (4nov16)
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 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/doc/generic/tracklang/CHANGES 2016-11-04 21:36:39 UTC (rev 42435)
@@ -1,3 +1,12 @@
+v1.3.3 (2016-11-03):
+
+ * Renamed internal \tracklang at dialectmap@to at ...
+ and \tracklang at dialectmap@from at ... to avoid ambiguity.
+
+ * Fixed incorrect mappings in \SetCurrentTrackedDialect
+
+ * New command \IfHookHasMappingFromTrackedDialect
+
v1.3.2 (2016-10-11):
* Added check if \shellescape has been set to \relax
Modified: trunk/Master/texmf-dist/doc/generic/tracklang/README
===================================================================
--- trunk/Master/texmf-dist/doc/generic/tracklang/README 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/doc/generic/tracklang/README 2016-11-04 21:36:39 UTC (rev 42435)
@@ -1,6 +1,6 @@
-Generic TeX Bundle : tracklang v1.3.2
+Generic TeX Bundle : tracklang v1.3.3
-Last Modified : 2016-10-11
+Last Modified : 2016-11-03
Author : Nicola Talbot
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 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/source/latex/tracklang/tracklang.dtx 2016-11-04 21:36:39 UTC (rev 42435)
@@ -2,15 +2,15 @@
% tracklang.dtx generated using makedtx version 1.1 (c) Nicola Talbot
% Command line args:
% -author "Nicola Talbot"
-% -section "chapter"
-% -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"
+% -section "chapter"
+% -doc "tracklang-manual.tex"
% tracklang
-% Created on 2016/10/11 9:50
+% Created on 2016/11/3 19:43
%\fi
%\iffalse
%<*package>
@@ -59,7 +59,7 @@
pdfauthor={Nicola L.C. Talbot},
pdftitle={tracklang: tracking language options}]{hyperref}
-\CheckSum{3870}
+\CheckSum{3892}
\appto\MacroFont{\scriptsize}
\renewcommand*{\usage}[1]{\textit{\hyperpage{#1}}}
@@ -278,11 +278,11 @@
%
%\MakeShortVerb{"}
%
-%\title{tracklang v1.3.2:
+%\title{tracklang v1.3.3:
%tracking language options}
%\author{Nicola L. C. Talbot\\\url{http://www.dickimaw-books.com/}}
%
-%\date{2016-10-11}
+%\date{2016-11-03}
%\maketitle
%
%\begin{abstract}
@@ -2859,9 +2859,7 @@
%by \styfmt{tracklang} (which may not be the same as \meta{dialect}).
%
%\item\ics{CurrentTrackedLanguage}
-%The root language label used
-%by \styfmt{tracklang}. (This should usually be the same as
-%\ics{languagename}.)
+%The root language label used by \styfmt{tracklang}.
%\item\ics{CurrentTrackedDialectModifier} The dialect modifier.
%\item\ics{CurrentTrackedDialectVariant} The dialect variant.
%\item\ics{CurrentTrackedDialectScript} The dialect script.
@@ -3191,7 +3189,7 @@
% packages such as \styfmt{etoolbox}.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang}[2016/10/11 v1.3.2 (NLCT) Track Languages]
+\ProvidesPackage{tracklang}[2016/11/03 v1.3.3 (NLCT) Track Languages]
% \end{macrocode}
%\begin{macro}{\@tracklang at declareoption}
% Set up package options.
@@ -3444,7 +3442,7 @@
% \end{macrocode}
% Version info.
% \begin{macrocode}
-\expandafter\def\csname ver at tracklang.tex\endcsname{2016/10/11 v1.3.2
+\expandafter\def\csname ver at tracklang.tex\endcsname{2016/11/03 v1.3.3
(NLCT) Track Languages Generic Code}
% \end{macrocode}
% Define a long command for determining the existence of a control
@@ -5037,27 +5035,59 @@
%Provided for use by language hooks to establish the current tracked
%dialect. This command doesn't change \cs{languagename} or
%hyphenation patterns etc. It just provides convenient commands that
-%can be accessed.
+%can be accessed. The argument may be a \styfmt{tracklang} dialect
+%label or the language hook label from which a \styfmt{tracklang}
+%dialect label can be obtained or the root language label.
+%\changes{1.3.3}{2016-11-03}{fixed mapping}
% \begin{macrocode}
\def\SetCurrentTrackedDialect#1{%
- \edef\CurrentTrackedDialect{\GetTrackedDialectFromMapping{#1}}%
+ \edef\CurrentTrackedDialect{#1}%
\IfTrackedDialect{\CurrentTrackedDialect}%
{}%
{%
% \end{macrocode}
+% Has a mapping from this dialect to a tracklang dialect been supplied?
+% \begin{macrocode}
+ \IfHookHasMappingFromTrackedDialect{\CurrentTrackedDialect}%
+ {%
+ \IfTrackedDialect{\GetTrackedDialectFromMapping\CurrentTrackedDialect}%
+ {%
+ \edef\CurrentTrackedDialect{\GetTrackedDialectFromMapping
+ {\CurrentTrackedDialect}}%
+ }%
+ {%
+% \end{macrocode}
% Has the root language name been supplied?
% \begin{macrocode}
- \IfTrackedLanguage{#1}%
+ \IfTrackedLanguage{#1}%
+ {%
+% \end{macrocode}
+% Get the last dialect to be tracked with this language.
+% \begin{macrocode}
+ \edef\@tracklang at dialects{\TrackedDialectsFromLanguage{#1}}%
+ \@tracklang at for\@tracklang at dialect:=\@tracklang at dialects\do{%
+ \let\CurrentTrackedDialect\@tracklang at dialect
+ }%
+ }%
+ {}%
+ }%
+ }%
{%
% \end{macrocode}
+% Has the root language name been supplied?
+% \begin{macrocode}
+ \IfTrackedLanguage{#1}%
+ {%
+% \end{macrocode}
% Get the last dialect to be tracked with this language.
-% \begin{macrocode}
- \edef\@tracklang at dialects{\TrackedDialectsFromLanguage{#1}}%
- \@tracklang at for\@tracklang at dialect:=\@tracklang at dialects\do{%
- \let\CurrentTrackedDialect\@tracklang at dialect
+% \begin{macrocode}
+ \edef\@tracklang at dialects{\TrackedDialectsFromLanguage{#1}}%
+ \@tracklang at for\@tracklang at dialect:=\@tracklang at dialects\do{%
+ \let\CurrentTrackedDialect\@tracklang at dialect
+ }%
}%
+ {}%
}%
- {}%
}%
\IfTrackedDialect{\CurrentTrackedDialect}%
{%
@@ -7776,6 +7806,9 @@
\expandafter
\let\expandafter\@tracklang at tmp\csname @tracklang at add@#1\endcsname
\expandafter\def\csname @tracklang at add@#1\expandafter\endcsname
+% \end{macrocode}
+%\changes{1.3.3}{2016-11-03}{fixed mapping order}
+% \begin{macrocode}
\expandafter{\@tracklang at tmp\SetTrackedDialectLabelMap{#1}{#6}}%
\fi
% \end{macrocode}
@@ -9420,7 +9453,7 @@
% Try the mapping label next.
% \begin{macrocode}
\edef\@tracklang at tmp{%
- \csname @tracklang at dialectmap@to@\CurrentTrackedDialect\endcsname}%
+ \csname @tracklang at dialectmap@tohook@\CurrentTrackedDialect\endcsname}%
\@tracklang at ifundef{#2\@tracklang at tmp}%
{%
% \end{macrocode}
@@ -9497,7 +9530,7 @@
%\begin{macro}{\SetTrackedDialectLabelMap}
%\changes{1.3}{2016-10-07}{new}
%\begin{definition}
-%\cs{SetTrackedDialectLabelMap}\marg{from}\marg{to}
+%\cs{SetTrackedDialectLabelMap}\marg{tracklang-label}\marg{hook-label}
%\end{definition}
%Define a mapping between a \styfmt{tracklang} dialect label and the
%corresponding label used by the language hook. For example,
@@ -9504,13 +9537,21 @@
%\texttt{ngermanDE} is a recognised \styfmt{tracklang} dialect
%label, but the closest \sty{babel} equivalent is \texttt{ngerman},
%so \texttt{ngermanDE} would need to be mapped to \texttt{ngerman}
-%for the language hooks. The arguments are \meta{from} (the
-%\styfmt{tracklang} dialect label) and \meta{to} (the \sty{babel},
+%for the language hooks. The arguments are \meta{tracklang-label} (the
+%\styfmt{tracklang} dialect label) and \meta{hook-label} (the \sty{babel},
%\sty{polyglossia} etc label).
% \begin{macrocode}
\def\SetTrackedDialectLabelMap#1#2{%
- \@tracklang at enamedef{@tracklang at dialectmap@to@#1}{#2}%
- \@tracklang at enamedef{@tracklang at dialectmap@from@#2}{#1}%
+% \end{macrocode}
+% Store the mapping that can obtain the hook label from the
+% tracklang label (tracklang to hook).
+% \begin{macrocode}
+ \@tracklang at enamedef{@tracklang at dialectmap@tohook@#1}{#2}%
+% \end{macrocode}
+% Store the mapping that can obtain the tracklang label from the
+% hook label.
+% \begin{macrocode}
+ \@tracklang at enamedef{@tracklang at dialectmap@fromhook@#2}{#1}%
}
% \end{macrocode}
%\end{macro}
@@ -9518,28 +9559,42 @@
%\begin{macro}{\IfTrackedDialectHasMapping}
%\changes{1.3}{2016-10-07}{new}
%\begin{definition}
-%\cs{IfTrackedDialectHasMapping}\marg{label}\marg{true}\marg{false}
+%\cs{IfTrackedDialectHasMapping}\marg{tracklang label}\marg{true}\marg{false}
%\end{definition}
-%Tests if the \sty{tracklang} dialect \meta{label} has been assigned
-%a mapping.
+%Test if the \styfmt{tracklang} dialect label has been assigned a
+%mapping to a language hook.
% \begin{macrocode}
\def\IfTrackedDialectHasMapping#1#2#3{%
- \@tracklang at ifundef{@tracklang at dialectmap@to@#1}{#3}{#2}%
+ \@tracklang at ifundef{@tracklang at dialectmap@tohook@#1}{#3}{#2}%
}
% \end{macrocode}
%\end{macro}
%
+%\begin{macro}{\IfHookHasMappingFromTrackedDialect}
+%\changes{1.3.3}{2016-11-03}{new}
+%\begin{definition}
+%\cs{IfHookHasMappingFromTrackedDialect}\marg{hook label}\marg{true}\marg{false}
+%\end{definition}
+%Tests if the language hook label has been assigned a mapping from a
+%\styfmt{tracklang} dialect label.
+% \begin{macrocode}
+\def\IfHookHasMappingFromTrackedDialect#1#2#3{%
+ \@tracklang at ifundef{@tracklang at dialectmap@fromhook@#1}{#3}{#2}%
+}
+% \end{macrocode}
+%\end{macro}
+%
%\begin{macro}{\GetTrackedDialectToMapping}
%\changes{1.3}{2016-10-07}{new}
%\begin{definition}
-%\cs{GetTrackedDialectToMapping}\marg{label}
+%\cs{GetTrackedDialectToMapping}\marg{tracklang label}
%\end{definition}
-%Gets the mapping for the given \sty{tracklang} dialect label or the
-%\meta{label} itself if no mapping has been defined.
+%Gets the mapping for the given \styfmt{tracklang} dialect label to a
+%language hook label or the \meta{label} itself if no mapping has been defined.
% \begin{macrocode}
\def\GetTrackedDialectToMapping#1{%
- \@tracklang at ifundef{@tracklang at dialectmap@to@#1}{#1}%
- {\csname @tracklang at dialectmap@to@#1\endcsname}%
+ \@tracklang at ifundef{@tracklang at dialectmap@tohook@#1}{#1}%
+ {\csname @tracklang at dialectmap@tohook@#1\endcsname}%
}
% \end{macrocode}
%\end{macro}
@@ -9547,14 +9602,14 @@
%\begin{macro}{\GetTrackedDialectFromMapping}
%\changes{1.3}{2016-10-07}{new}
%\begin{definition}
-%\cs{GetTrackedDialectFromMapping}\marg{map}
+%\cs{GetTrackedDialectFromMapping}\marg{language hook}
%\end{definition}
-%Gets the \sty{tracklang} dialect label from the \meta{map} or the
-%\meta{map} itself if no mapping has been defined.
+%Gets the reverse mapping from the given language hook to the
+%\styfmt{tracklang} label.
% \begin{macrocode}
\def\GetTrackedDialectFromMapping#1{%
- \@tracklang at ifundef{@tracklang at dialectmap@from@#1}{#1}%
- {\csname @tracklang at dialectmap@from@#1\endcsname}%
+ \@tracklang at ifundef{@tracklang at dialectmap@fromhook@#1}{#1}%
+ {\csname @tracklang at dialectmap@fromhook@#1\endcsname}%
}
% \end{macrocode}
%\end{macro}
@@ -9826,7 +9881,7 @@
% \end{macrocode}
% Version info.
% \begin{macrocode}
-\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{2016/10/11 v1.3.2
+\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{2016/11/03 v1.3.3
(NLCT) Track Languages Regions}%
% \end{macrocode}
%
@@ -10216,7 +10271,7 @@
%\changes{1.3}{2016-10-07}{added tracklang-scripts.sty}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang-scripts}[2016/10/11 v1.3.2 (NLCT) Track
+\ProvidesPackage{tracklang-scripts}[2016/11/03 v1.3.3 (NLCT) Track
Language Scripts (LaTeX)]
\RequirePackage{tracklang}
\input{tracklang-scripts}
@@ -10257,7 +10312,7 @@
% \end{macrocode}
% Version info.
% \begin{macrocode}
-\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{2016/10/11 v1.3.2
+\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{2016/11/03 v1.3.3
(NLCT) Track Languages Scripts (Generic)}%
% \end{macrocode}
%
Modified: trunk/Master/texmf-dist/source/latex/tracklang/tracklang.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/tracklang/tracklang.ins 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/source/latex/tracklang/tracklang.ins 2016-11-04 21:36:39 UTC (rev 42435)
@@ -1,4 +1,4 @@
-% tracklang.ins generated using makedtx version 1.1 2016/10/11 9:50
+% tracklang.ins generated using makedtx version 1.1 2016/11/3 19:43
\input docstrip
\preamble
Modified: trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-region-codes.tex 2016-11-04 21:36:39 UTC (rev 42435)
@@ -63,7 +63,7 @@
\@tracklang at regions@restore at at
\expandafter\endinput
\fi
-\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{2016/10/11 v1.3.2
+\expandafter\def\csname ver at tracklang-region-codes.tex\endcsname{2016/11/03 v1.3.3
(NLCT) Track Languages Regions}%
\def\TrackLangRegionMap#1#2#3{%
\@tracklang at enamedef{@tracklang at region@numtoalphaii@#1}{#2}%
Modified: trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/tex/generic/tracklang/tracklang-scripts.tex 2016-11-04 21:36:39 UTC (rev 42435)
@@ -63,7 +63,7 @@
\@tracklang at scripts@restore at at
\expandafter\endinput
\fi
-\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{2016/10/11 v1.3.2
+\expandafter\def\csname ver at tracklang-scripts.tex\endcsname{2016/11/03 v1.3.3
(NLCT) Track Languages Scripts (Generic)}%
\def\TrackLangScriptMap#1#2#3#4#5{%
\@tracklang at enamedef{TrackLangScript#1}{#1}%
Modified: trunk/Master/texmf-dist/tex/generic/tracklang/tracklang.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tracklang/tracklang.tex 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/tex/generic/tracklang/tracklang.tex 2016-11-04 21:36:39 UTC (rev 42435)
@@ -63,7 +63,7 @@
\@tracklang at restore@at
\expandafter\endinput
\fi
-\expandafter\def\csname ver at tracklang.tex\endcsname{2016/10/11 v1.3.2
+\expandafter\def\csname ver at tracklang.tex\endcsname{2016/11/03 v1.3.3
(NLCT) Track Languages Generic Code}
\long\def\@tracklang at ifundef#1#2#3{%
\ifcsname#1\endcsname
@@ -818,18 +818,38 @@
{-\csname @tracklang at extra@#1\endcsname}%
}
\def\SetCurrentTrackedDialect#1{%
- \edef\CurrentTrackedDialect{\GetTrackedDialectFromMapping{#1}}%
+ \edef\CurrentTrackedDialect{#1}%
\IfTrackedDialect{\CurrentTrackedDialect}%
{}%
{%
- \IfTrackedLanguage{#1}%
+ \IfHookHasMappingFromTrackedDialect{\CurrentTrackedDialect}%
{%
- \edef\@tracklang at dialects{\TrackedDialectsFromLanguage{#1}}%
- \@tracklang at for\@tracklang at dialect:=\@tracklang at dialects\do{%
- \let\CurrentTrackedDialect\@tracklang at dialect
+ \IfTrackedDialect{\GetTrackedDialectFromMapping\CurrentTrackedDialect}%
+ {%
+ \edef\CurrentTrackedDialect{\GetTrackedDialectFromMapping
+ {\CurrentTrackedDialect}}%
}%
+ {%
+ \IfTrackedLanguage{#1}%
+ {%
+ \edef\@tracklang at dialects{\TrackedDialectsFromLanguage{#1}}%
+ \@tracklang at for\@tracklang at dialect:=\@tracklang at dialects\do{%
+ \let\CurrentTrackedDialect\@tracklang at dialect
+ }%
+ }%
+ {}%
+ }%
}%
- {}%
+ {%
+ \IfTrackedLanguage{#1}%
+ {%
+ \edef\@tracklang at dialects{\TrackedDialectsFromLanguage{#1}}%
+ \@tracklang at for\@tracklang at dialect:=\@tracklang at dialects\do{%
+ \let\CurrentTrackedDialect\@tracklang at dialect
+ }%
+ }%
+ {}%
+ }%
}%
\IfTrackedDialect{\CurrentTrackedDialect}%
{%
@@ -2229,7 +2249,7 @@
\IfTrackedDialectHasMapping{\CurrentTrackedDialect}%
{%
\edef\@tracklang at tmp{%
- \csname @tracklang at dialectmap@to@\CurrentTrackedDialect\endcsname}%
+ \csname @tracklang at dialectmap@tohook@\CurrentTrackedDialect\endcsname}%
\@tracklang at ifundef{#2\@tracklang at tmp}%
{%
\@tracklang at ifundef{#2\CurrentTrackedLanguage}%
@@ -2265,19 +2285,22 @@
}
\def\TrackLangAddToCaptions#1{\TrackLangAddToHook{#1}{captions}}
\def\SetTrackedDialectLabelMap#1#2{%
- \@tracklang at enamedef{@tracklang at dialectmap@to@#1}{#2}%
- \@tracklang at enamedef{@tracklang at dialectmap@from@#2}{#1}%
+ \@tracklang at enamedef{@tracklang at dialectmap@tohook@#1}{#2}%
+ \@tracklang at enamedef{@tracklang at dialectmap@fromhook@#2}{#1}%
}
\def\IfTrackedDialectHasMapping#1#2#3{%
- \@tracklang at ifundef{@tracklang at dialectmap@to@#1}{#3}{#2}%
+ \@tracklang at ifundef{@tracklang at dialectmap@tohook@#1}{#3}{#2}%
}
+\def\IfHookHasMappingFromTrackedDialect#1#2#3{%
+ \@tracklang at ifundef{@tracklang at dialectmap@fromhook@#1}{#3}{#2}%
+}
\def\GetTrackedDialectToMapping#1{%
- \@tracklang at ifundef{@tracklang at dialectmap@to@#1}{#1}%
- {\csname @tracklang at dialectmap@to@#1\endcsname}%
+ \@tracklang at ifundef{@tracklang at dialectmap@tohook@#1}{#1}%
+ {\csname @tracklang at dialectmap@tohook@#1\endcsname}%
}
\def\GetTrackedDialectFromMapping#1{%
- \@tracklang at ifundef{@tracklang at dialectmap@from@#1}{#1}%
- {\csname @tracklang at dialectmap@from@#1\endcsname}%
+ \@tracklang at ifundef{@tracklang at dialectmap@fromhook@#1}{#1}%
+ {\csname @tracklang at dialectmap@fromhook@#1\endcsname}%
}
\def\TrackLangRequireResource{\noop at TrackLangRequireResource}
\def\noop at TrackLangRequireResource#1{%
Modified: trunk/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/tex/latex/tracklang/tracklang-scripts.sty 2016-11-04 21:36:39 UTC (rev 42435)
@@ -51,7 +51,7 @@
%% do code now to initialise
%% Pass all options to tracklang:
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang-scripts}[2016/10/11 v1.3.2 (NLCT) Track
+\ProvidesPackage{tracklang-scripts}[2016/11/03 v1.3.3 (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 2016-11-04 21:36:24 UTC (rev 42434)
+++ trunk/Master/texmf-dist/tex/latex/tracklang/tracklang.sty 2016-11-04 21:36:39 UTC (rev 42435)
@@ -51,7 +51,7 @@
%% do code now to initialise
%% Pass all options to tracklang:
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang}[2016/10/11 v1.3.2 (NLCT) Track Languages]
+\ProvidesPackage{tracklang}[2016/11/03 v1.3.3 (NLCT) Track Languages]
\providecommand*{\@tracklang at declareoption}[1]{%
\DeclareOption{#1}{\TrackPredefinedDialect{#1}}%
}
More information about the tex-live-commits
mailing list