From d79a721c345c9a2ced6c0640e88c10cc3378c1f0 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 1 Jul 2020 03:03:30 +0000
Subject: CTAN sync 202007010303

---
 macros/generic/tracklang/tracklang.dtx | 69 ++++++++++++++++++++++++----------
 1 file changed, 50 insertions(+), 19 deletions(-)

(limited to 'macros/generic/tracklang/tracklang.dtx')

diff --git a/macros/generic/tracklang/tracklang.dtx b/macros/generic/tracklang/tracklang.dtx
index e071563fe3..22dd36860e 100644
--- a/macros/generic/tracklang/tracklang.dtx
+++ b/macros/generic/tracklang/tracklang.dtx
@@ -1,16 +1,16 @@
 %\iffalse
 % tracklang.dtx generated using makedtx version 1.2 (c) Nicola Talbot
 % Command line args:
-%   -doc "tracklang-manual.tex"
-%   -author "Nicola Talbot"
 %   -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"
+%   -author "Nicola Talbot"
+%   -doc "tracklang-manual.tex"
 %   -section "chapter"
 %   tracklang
-% Created on 2019/12/1 17:41
+% Created on 2020/6/30 11:55
 %\fi
 %\iffalse
 %<*package>
@@ -33,7 +33,7 @@
 %\fi
 % \iffalse
 % Doc-Source file to use with LaTeX2e
-% Copyright (C) 2019 Nicola Talbot, all rights reserved.
+% Copyright (C) 2020 Nicola Talbot, all rights reserved.
 % \fi
 % \iffalse
 %<*driver>
@@ -59,7 +59,7 @@
             pdfauthor={Nicola L.C. Talbot},
             pdftitle={tracklang: tracking language options}]{hyperref}
 
-\CheckSum{6156}
+\CheckSum{6210}
 
 \appto\MacroFont{\scriptsize}
 \renewcommand*{\usage}[1]{\textit{\hyperpage{#1}}}
@@ -278,11 +278,11 @@ and~\ref{tab:nonisoopts}}
 %
 %\MakeShortVerb{"}
 %
-%\title{tracklang v1.4:
+%\title{tracklang v1.5:
 %tracking language options}
 %\author{Nicola L. C. Talbot\\\url{http://www.dickimaw-books.com/}}
 %
-%\date{2019-11-30}
+%\date{2020-06-30}
 %\maketitle
 %
 %\begin{abstract}
@@ -3583,7 +3583,7 @@ and~\ref{tab:nonisoopts}}
 % packages such as \styfmt{etoolbox}.
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang}[2019/11/30 v1.4 (NLCT) Track Languages]
+\ProvidesPackage{tracklang}[2020/06/30 v1.5 (NLCT) Track Languages]
 %    \end{macrocode}
 %\begin{macro}{\@tracklang@declareoption}
 % Set up package options.
@@ -3879,7 +3879,7 @@ and~\ref{tab:nonisoopts}}
 % Version info.
 %    \begin{macrocode}
 \expandafter\def\csname ver@tracklang.tex\endcsname{%
- 2019/11/30 v1.4 (NLCT) Track Languages Generic Code}
+ 2020/06/30 v1.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.)
@@ -11374,9 +11374,9 @@ and~\ref{tab:nonisoopts}}
         }%
       \fi
     }%
-    {%
-      \fi
-    }%
+%    \end{macrocode}
+%\changes{1.5}{2020-06-30}{removed spurious code block}
+%    \begin{macrocode}
   }%
   {%
     \let\@tracklang@test@if@file@exists@next\@tracklang@test@if@file@exists@for@langIII
@@ -11597,16 +11597,19 @@ and~\ref{tab:nonisoopts}}
 %
 %\begin{macro}{\IfTrackedLanguageFileExists@orig}
 %\changes{1.4}{2019-11-30}{new}
+%\changes{1.5}{2020-06-30}{added verbose messages}
 %The new definition of \cs{IfTrackedLanguageFileExists} has a
 %different order of priority. If the original behaviour is
 %specifically required, this has the pre version 1.4 definition.
 %    \begin{macrocode}
 \long\def\IfTrackedLanguageFileExists@orig#1#2#3#4#5{%
+   \@tracklang@verbose{Finding file for dialect `#1' (pre-v1.4)}%
    \def\CurrentTrackedTag{}%
    \SetCurrentTrackedDialect{#1}%
    \IfTrackedDialect{#1}%
    {%
      \edef\CurrentTrackedTag{#1}%
+     \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
      \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
      {#4}%
      {%
@@ -11618,6 +11621,7 @@ and~\ref{tab:nonisoopts}}
                {639-1}{\CurrentTrackedLanguage}}%
           \ifx\CurrentTrackedRegion\empty
             \let\CurrentTrackedTag\CurrentTrackedIsoCode
+            \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
             \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
             {#4}
             {%
@@ -11628,21 +11632,25 @@ and~\ref{tab:nonisoopts}}
                     \TrackedIsoCodeFromLanguage
                       {639-2}{\CurrentTrackedLanguage}}%
                  \let\CurrentTrackedTag\CurrentTrackedIsoCode
+                 \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                  \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                  {#4}%
                  {%
                    \let\CurrentTrackedTag\CurrentTrackedLanguage
+                   \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                    \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
                  }%
               }%
               {%
                \let\CurrentTrackedTag\CurrentTrackedLanguage
+               \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
               }%
             }%
           \else
             \edef\CurrentTrackedTag{%
               \CurrentTrackedIsoCode-\CurrentTrackedRegion}%
+            \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
             \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
             {#4}
             {%
@@ -11655,25 +11663,30 @@ and~\ref{tab:nonisoopts}}
                   {639-2}{\CurrentTrackedLanguage}}%
                 \edef\CurrentTrackedTag{%
                   \CurrentTrackedIsoCode-\CurrentTrackedRegion}%
+                \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                 \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                 {#4}%
                 {%
                   \let\CurrentTrackedTag\org@currenttrackedisocode
                   \let\org@currenttrackedisocode\CurrentTrackedIsoCode
                   \let\CurrentTrackedIsoCode\CurrentTrackedTag
+                  \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                   \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                   {#4}
                   {%
                     \let\CurrentTrackedIsoCode\org@currenttrackedisocode
                     \let\CurrentTrackedTag\CurrentTrackedIsoCode
+                    \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                     \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                     {#4}%
                     {%
                       \let\CurrentTrackedTag\CurrentTrackedRegion
+                      \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                       \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                       {#4}%
                       {%
                         \let\CurrentTrackedTag\CurrentTrackedLanguage
+                        \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                         \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
                       }%
                     }%
@@ -11682,14 +11695,17 @@ and~\ref{tab:nonisoopts}}
               }%
               {%
                 \let\CurrentTrackedTag\CurrentTrackedIsoCode
+                \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                 \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                 {#4}%
                 {%
                   \let\CurrentTrackedTag\CurrentTrackedRegion
+                  \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                   \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                   {#4}%
                   {%
                     \let\CurrentTrackedTag\CurrentTrackedLanguage
+                    \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                     \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
                   }%
                 }%
@@ -11720,40 +11736,49 @@ and~\ref{tab:nonisoopts}}
          \ifx\CurrentTrackedIsoCode\empty
            \ifx\CurrentTrackedRegion\empty
              \let\CurrentTrackedTag\CurrentTrackedLanguage
+             \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
              \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
            \else
              \let\CurrentTrackedTag\CurrentTrackedRegion
+             \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
              \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
              {#4}%
              {%
                \let\CurrentTrackedTag\CurrentTrackedLanguage
+               \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
              }%
            \fi
          \else
             \ifx\CurrentTrackedRegion\empty
               \let\CurrentTrackedTag\CurrentTrackedIsoCode
+              \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
               \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
               {#4}%
               {%
                 \let\CurrentTrackedTag\CurrentTrackedLanguage
+                \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                 \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
               }%
             \else
               \edef\CurrentTrackedTag{%
                 \CurrentTrackedIsoCode-\CurrentTrackedRegion}%
+              \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
               \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
               {#4}%
               {%
                 \let\CurrentTrackedTag\CurrentTrackedIsoCode
+                \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                 \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                 {#4}%
                 {%
                   \let\CurrentTrackedTag\CurrentTrackedRegion
+                  \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                   \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}%
                   {#4}%
                   {%
                     \let\CurrentTrackedTag\CurrentTrackedLanguage
+                    \@tracklang@verbose{Testing tag `\CurrentTrackedTag'}%
                     \@tracklang@IfFileExists{#2\CurrentTrackedTag#3}{#4}{#5}%
                   }%
                 }%
@@ -11890,9 +11915,11 @@ and~\ref{tab:nonisoopts}}
         \@tracklang@ifundef{#2\CurrentTrackedLanguage}%
         {%
 %    \end{macrocode}
-% No captions hook. Do the code now.
+% No captions hook. Do nothing (it's possible no language package
+% has been loaded).
+%\changes{1.5}{2020-06-30}{removed redundant code and added verbose message}
 %    \begin{macrocode}
-          #1%
+          \@tracklang@verbose{no hook found for \CurrentTrackedDialect}%
         }%
         {%
           \@tracklang@addtohook{#2}{\CurrentTrackedLanguage}{#1}%
@@ -11911,6 +11938,7 @@ and~\ref{tab:nonisoopts}}
 %    \end{macrocode}
 % No captions hook.
 %    \begin{macrocode}
+        \@tracklang@verbose{no hook found for \CurrentTrackedDialect}%
       }%
       {%
         \@tracklang@addtohook{#2}{\CurrentTrackedLanguage}{#1}%
@@ -12001,9 +12029,11 @@ and~\ref{tab:nonisoopts}}
         \@tracklang@ifundef{#2\CurrentTrackedLanguage}%
         {%
 %    \end{macrocode}
-% No captions hook. Do the code now.
+% No captions hook.  Do nothing (it's possible no language package
+% has been loaded).
+%\changes{1.5}{2020-06-30}{removed redundant code and added verbose message}
 %    \begin{macrocode}
-          #1%
+          \@tracklang@verbose{no hook found for \CurrentTrackedDialect}%
         }%
         {%
           \@tracklang@redefhook{#2}{\CurrentTrackedLanguage}{#1}%
@@ -12022,6 +12052,7 @@ and~\ref{tab:nonisoopts}}
 %    \end{macrocode}
 % No captions hook.
 %    \begin{macrocode}
+        \@tracklang@verbose{no hook found for \CurrentTrackedDialect}%
       }%
       {%
         \@tracklang@redefhook{#2}{\CurrentTrackedLanguage}{#1}%
@@ -12406,7 +12437,7 @@ and~\ref{tab:nonisoopts}}
 % Version info.
 %    \begin{macrocode}
 \expandafter\def\csname ver@tracklang-region-codes.tex\endcsname{%
- 2019/11/30 v1.4 (NLCT) Track Languages Regions}%
+ 2020/06/30 v1.5 (NLCT) Track Languages Regions}%
 %    \end{macrocode}
 %
 %\begin{macro}{\TrackLangRegionMap}
@@ -12799,7 +12830,7 @@ and~\ref{tab:nonisoopts}}
 %\changes{1.3}{2016-10-07}{added tracklang-scripts.sty}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tracklang-scripts}[2019/11/30 v1.4 (NLCT) Track
+\ProvidesPackage{tracklang-scripts}[2020/06/30 v1.5 (NLCT) Track
 Language Scripts (LaTeX)]
 \RequirePackage{tracklang}
 \input{tracklang-scripts}
@@ -12841,7 +12872,7 @@ Language Scripts (LaTeX)]
 % Version info.
 %    \begin{macrocode}
 \expandafter\def\csname ver@tracklang-scripts.tex\endcsname{%
- 2019/11/30 v1.4 (NLCT) Track Languages Scripts (Generic)}%
+ 2020/06/30 v1.5 (NLCT) Track Languages Scripts (Generic)}%
 %    \end{macrocode}
 %
 %\begin{macro}{\TrackLangScriptsMap}
-- 
cgit v1.2.3

