%%
%% This is file `tracklang.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tracklang.dtx  (with options: `tracklang.sty,package')
%% 
%%  tracklang.dtx
%%  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 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
%%  version 2005/12/01 or later.
%% 
%%  This work has the LPPL maintenance status `maintained'.
%% 
%%  The Current Maintainer of this work is Nicola Talbot.
%% 
%%  This work consists of the files tracklang.dtx and tracklang.ins and the derived files tracklang.sty, tracklang.tex, tracklang-region-codes.tex, tracklang-scripts.sty, tracklang-scripts.tex.
%% 
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% load packages that use tracklang for localisation
%% do code now to initialise
%% Pass all options to tracklang:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tracklang}[2018/05/13 v1.3.6 (NLCT) Track Languages]
\providecommand*{\@tracklang@declareoption}[1]{%
  \DeclareOption{#1}{\TrackPredefinedDialect{#1}}%
}
\input{tracklang}
\let\@tracklang@declaredoptions\@declaredoptions
\ProcessOptions
\let\@tracklang@declareoption\@gobble
\ifx\@tracklang@languages\@empty
  \@ifundefined{bbl@loaded}%
  {%
    \@ifundefined{trans@languages}
    {%
       \@ifpackageloaded{ngerman}%
       {%
         \@tracklang@add@ngerman
       }%
       {%
         \@ifpackageloaded{german}%
         {%
           \@tracklang@add@german
         }%
         {%
           \@ifpackageloaded{polyglossia}
           {%
             \@ifundefined{xpg@loaded}%
             {%
               \PackageInfo{tracklang}{polyglossia loaded but
               \string\xpg@loaded\space not defined. Will attempt
               to track known languages.}%
                \@for\this@language:=\@tracklang@declaredoptions\do{%
                  \@ifundefined{\this@language @loaded}%
                  {}%
                  {\@nameuse{@tracklang@add@\this@language}}%
                }%
             }%
             {%
                \@for\this@language:=\xpg@loaded\do{%
                  \@ifundefined{@tracklang@add@\this@language}%
                  {%
                     \PackageWarning{tracklang}%
                       {Adding unknown polyglossia language `\this@language'}%
                     \AddTrackedLangage{\this@language}%
                  }%
                  {\@nameuse{@tracklang@add@\this@language}}%
                }%
             }%
           }%
           {%
             \@ifpackageloaded{babel}
             {%
               \PackageInfo{tracklang}{babel loaded but
               \string\bbl@loaded\space not defined. Will attempt
               to track known languages.}%
               \@for\this@language:=\@tracklang@declaredoptions\do{%
                 \@ifundefined{captions\this@language}%
                 {}%
                 {\@nameuse{@tracklang@add@\this@language}}%
               }%
             }%
             {}%
           }%
         }%
       }%
    }%
    {%
      \let\@tracklang@add@Acadian\@tracklang@add@acadian
      \let\@tracklang@add@French\@tracklang@add@french
      \let\@tracklang@add@Afrikaans\@tracklang@add@afrikaans
      \let\@tracklang@add@Dutch\@tracklang@add@dutch
      \let\@tracklang@add@AmericanEnglish\@tracklang@add@american
      \let\@tracklang@add@Austrian\@tracklang@add@austrian
      \@namedef{@tracklang@add@Austrian1997}{\@tracklang@add@naustrian}
      \let\@tracklang@add@Bahasa\@tracklang@add@bahasa
      \let\@tracklang@add@Basque\@tracklang@add@basque
      \let\@tracklang@add@Brazilian\@tracklang@add@brazil
      \let\@tracklang@add@Portuguese\@tracklang@add@portuguese
      \let\@tracklang@add@Breton\@tracklang@add@breton
      \let\@tracklang@add@BritishEnglish\@tracklang@add@british
      \let\@tracklang@add@Bulgarian\@tracklang@add@bulgarian
      \let\@tracklang@add@Canadian\@tracklang@add@canadian
      \let\@tracklang@add@Canadien\@tracklang@add@canadien
      \let\@tracklang@add@Catalan\@tracklang@add@catalan
      \let\@tracklang@add@Croatian\@tracklang@add@croatian
      \let\@tracklang@add@Czech\@tracklang@add@czech
      \let\@tracklang@add@Danish\@tracklang@add@danish
      \let\@tracklang@add@Dutch\@tracklang@add@dutch
      \let\@tracklang@add@English\@tracklang@add@english
      \let\@tracklang@add@Esperanto\@tracklang@add@esperanto
      \let\@tracklang@add@Estonian\@tracklang@add@estonian
      \let\@tracklang@add@Finnish\@tracklang@add@finnish
      \let\@tracklang@add@French\@tracklang@add@french
      \let\@tracklang@add@Galician\@tracklang@add@galician
      \let\@tracklang@add@German\@tracklang@add@german
      \@namedef{@tracklang@add@German1997}{\@tracklang@add@ngerman}
      \let\@tracklang@add@Greek\@tracklang@add@greek
      \let\@tracklang@add@Polutoniko\@tracklang@add@polutoniko
      \let\@tracklang@add@Hebrew\@tracklang@add@hebrew
      \let\@tracklang@add@Hungarian\@tracklang@add@hungarian
      \let\@tracklang@add@Icelandic\@tracklang@add@icelandic
      \let\@tracklang@add@Irish\@tracklang@add@irish
      \let\@tracklang@add@Italian\@tracklang@add@italian
      \let\@tracklang@add@Latin\@tracklang@add@latin
      \let\@tracklang@add@LowerSorbian\@tracklang@add@lowersorbian
      \let\@tracklang@add@Magyar\@tracklang@add@magyar
      \let\@tracklang@add@Nynorsk\@tracklang@add@nynorsk
      \let\@tracklang@add@Norsk\@tracklang@add@norsk
      \let\@tracklang@add@Polish\@tracklang@add@polish
      \let\@tracklang@add@Portuguese\@tracklang@add@portuguese
      \let\@tracklang@add@Romanian\@tracklang@add@romanian
      \let\@tracklang@add@Russian\@tracklang@add@russian
      \let\@tracklang@add@Scottish\@tracklang@add@scottish
      \let\@tracklang@add@Serbian\@tracklang@add@serbian
      \let\@tracklang@add@Slovak\@tracklang@add@slovak
      \let\@tracklang@add@Slovene\@tracklang@add@slovene
      \let\@tracklang@add@Spanish\@tracklang@add@spanish
      \let\@tracklang@add@Swedish\@tracklang@add@swedish
      \let\@tracklang@add@Turkish\@tracklang@add@turkish
      \let\@tracklang@add@Ukrainian\@tracklang@add@ukrainian
      \let\@tracklang@add@UpperSorbian\@tracklang@add@uppersorbian
      \let\@tracklang@add@Welsh\@tracklang@add@welsh
      \@for\this@language:=\trans@languages\do{%
         \@ifundefined{@tracklang@add@\this@language}{}%
         {\@nameuse{@tracklang@add@\this@language}}%
      }%
    }%
  }%
  {%
    \@for\this@language:=\bbl@loaded\do{%
       \@ifundefined{@tracklang@add@\this@language}%
       {%
         \PackageWarning{tracklang}%
           {Adding unknown babel language `\this@language'}%
         \AddTrackedLangage{\this@language}%
       }%
       {\@nameuse{@tracklang@add@\this@language}}%
     }%
     \ifx\captionsserbian\undefined
     \else
       \SetTrackedDialectScript{serbian}{Latn}%
     \fi
  }
\fi
\endinput
%%
%% End of file `tracklang.sty'.
