texlive[43392] Master/texmf-dist: translations (3mar17)
commits+karl at tug.org
commits+karl at tug.org
Sat Mar 4 00:15:43 CET 2017
Revision: 43392
http://tug.org/svn/texlive?view=revision&revision=43392
Author: karl
Date: 2017-03-04 00:15:43 +0100 (Sat, 04 Mar 2017)
Log Message:
-----------
translations (3mar17)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/translations/README
trunk/Master/texmf-dist/doc/latex/translations/translations_en.pdf
trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex
trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl
trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl
trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl
trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl
trunk/Master/texmf-dist/tex/latex/translations/translations.sty
Added Paths:
-----------
trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl
Modified: trunk/Master/texmf-dist/doc/latex/translations/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/translations/README 2017-03-03 23:15:29 UTC (rev 43391)
+++ trunk/Master/texmf-dist/doc/latex/translations/README 2017-03-03 23:15:43 UTC (rev 43392)
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------
-the TRANSLATIONS package v1.4a - 2016/06/02
+the TRANSLATIONS package v1.5 - 2017/03/03
internationalization of LaTeX2e packages
--------------------------------------------------------------------------
@@ -7,7 +7,7 @@
Web: http://www.mychemistry.eu/forums/forum/translations
E-Mail: contact at mychemistry.eu
--------------------------------------------------------------------------
-Copyright 2012-2016 Clemens Niederberger
+Copyright 2012-2017 Clemens Niederberger
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
@@ -24,6 +24,7 @@
The translations package consists of the files
- translations.sty, translations_en.tex, translations_en.pdf,
translations-basic-dictionary-english.trsl,
+ translations-basic-dictionary-dutch.trsl,
translations-basic-dictionary-french.trsl,
translations-basic-dictionary-german.trsl,
translations-basic-dictionary-spanish.trsl
Modified: trunk/Master/texmf-dist/doc/latex/translations/translations_en.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex 2017-03-03 23:15:29 UTC (rev 43391)
+++ trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex 2017-03-03 23:15:43 UTC (rev 43392)
@@ -1,5 +1,5 @@
-% arara: pdflatex: { shell: on }
-% arara: biber
+% !arara: pdflatex: { shell: on }
+% !arara: biber
% arara: pdflatex
% arara: pdflatex
% --------------------------------------------------------------------------
@@ -12,7 +12,7 @@
% Web: http://www.mychemistry.eu/forums/forum/translations
% E-Mail: contact at mychemistry.eu
% --------------------------------------------------------------------------
-% Copyright 2012-2016 Clemens Niederberger
+% Copyright 2012-2017 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -135,9 +135,8 @@
\section{License and Requirements}\label{sec:license}
\license
-\translations\ requires the packages \pkg{cnltx-base} from the \bnd{cnltx}
-bundle~\cite{bnd:cnltx} and \pkg{scrlfile} (part of the \KOMAScript\
-bundle~\cite{bnd:koma-script}).
+\translations\ requires the packages \pkg{etoolbox}~\cite{pkg:etoolbox} and
+\pkg{scrlfile} (part of the \KOMAScript\ bundle~\cite{bnd:koma-script}).
\section{Usage}
@@ -607,12 +606,12 @@
\subsubsection{\translations' Basic Dictionaries}\label{sec:transl-basic-dict}
\translations\ already provides a basic dictionary for the languages English,
-French, German and Spanish. This dictionary is loaded automatically if the
-document language is one of these four. If you'd like to contribute and add
-the basic dictionary in your language this is more than welcome and highly
+Dutch, French, German and Spanish. This dictionary is loaded automatically if
+the document language is one of these four. If you'd like to contribute and
+add the basic dictionary in your language this is more than welcome and highly
appreciated! The easiest way to do this would be to copy one of the existing
-files \code{translations-basic-dictionary-\meta{lang}.trsl} and modify the file
-accordingly. You can then send me the file via email and I'll add it to
+files \code{translations-basic-dictionary-\meta{lang}.trsl} and modify the
+file accordingly. You can then send me the file via email and I'll add it to
\translations.
\Cref{tab:dict} lists all words provided by the basic dictionary for German.
@@ -761,10 +760,7 @@
case. Should you miss a language please send me an email so I can add it to
\translations.
-\section{Implementation}
-\lstinputlisting[style=cnltx]{translations.sty}
+% \section{Implementation}
+% \lstinputlisting[style=cnltx]{translations.sty}
-
\end{document}
-
-
Added: trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl 2017-03-03 23:15:43 UTC (rev 43392)
@@ -0,0 +1,136 @@
+% --------------------------------------------------------------------------
+% the TRANSLATIONS package
+%
+% internationalization of LaTeX2e packages
+%
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% Web: http://www.mychemistry.eu/forums/forum/translations
+% E-Mail: contact at mychemistry.eu
+% --------------------------------------------------------------------------
+% Copyright 2012-2017 Clemens Niederberger
+%
+% 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 Clemens Niederberger.
+% --------------------------------------------------------------------------
+% If you have any ideas, questions, suggestions or bugs to report, please
+% feel free to contact me.
+% --------------------------------------------------------------------------
+\ProvideDictionaryFor{Dutch}{translations-basic-dictionary}
+
+\ProvideDictTranslation{Abstract}{Samenvatting}
+\ProvideDictTranslation{Addresses}{Adressen}
+\ProvideDictTranslation{addresses}{adressen}
+\ProvideDictTranslation{Address}{Adres}
+\ProvideDictTranslation{address}{adres}
+\ProvideDictTranslation{and}{en}
+\ProvideDictTranslation{Appendix}{Appendix}
+\ProvideDictTranslation{Authors}{Auteurs}
+\ProvideDictTranslation{authors}{auteurs}
+\ProvideDictTranslation{Author}{Auteur}
+\ProvideDictTranslation{author}{auteur}
+\ProvideDictTranslation{Bibliography}{Bibliografie}
+\ProvideDictTranslation{cc}{cc}
+\ProvideDictTranslation{Chapters}{Hoofdstukken}
+\ProvideDictTranslation{chapters}{hoofdstukken}
+\ProvideDictTranslation{Chapter}{Hoofdstuk}
+\ProvideDictTranslation{chapter}{hoofdstuk}
+\ProvideDictTranslation{Conclusion}{Conclusie}
+\ProvideDictTranslation{conclusion}{conclusie}
+\ProvideDictTranslation{Contents}{Inhoud}
+\ProvideDictTranslation{Continuation}{Vervolg}
+\ProvideDictTranslation{continuation}{vervolg}
+\ProvideDictTranslation{cont}{vervolg}
+\ProvideDictTranslation{encl (plural)}{B\ij lagen}
+\ProvideDictTranslation{encl (singular)}{B\ij lage}
+\ProvideDictTranslation{encl}{B\ij lage(n)}
+\ProvideDictTranslation{Figures}{Figuren}
+\ProvideDictTranslation{figures}{figuren}
+\ProvideDictTranslation{Figure}{Figuur}
+\ProvideDictTranslation{figure}{figuur}
+\ProvideDictTranslation{From}{Van}
+\ProvideDictTranslation{from}{van}
+\ProvideDictTranslation{Glossary}{Verklarende Woordenl\ij st}
+\ProvideDictTranslation{Index}{Register}
+\ProvideDictTranslation{Introduction}{Inleiding}
+\ProvideDictTranslation{introduction}{inleiding}
+\ProvideDictTranslation{List of Figures and Tables}{L\ij st van figuren en tabellen}
+\ProvideDictTranslation{List of Figures}{L\ij st van figuren}
+\ProvideDictTranslation{List of Tables}{L\ij st van tabellen}
+\ProvideDictTranslation{or}{of}
+\ProvideDictTranslation{Outline}{Indeling}
+\ProvideDictTranslation{Overview}{Overzicht}
+\ProvideDictTranslation{Pages}{Pagina's}
+\ProvideDictTranslation{pages}{pagina's}
+\ProvideDictTranslation{Page}{Pagina}
+\ProvideDictTranslation{page}{pagina}
+\ProvideDictTranslation{Paragraphs}{Alinea's}
+\ProvideDictTranslation{paragraphs}{alinea's}
+\ProvideDictTranslation{Paragraph}{Alinea}
+\ProvideDictTranslation{paragraph}{alinea}
+\ProvideDictTranslation{Parts}{Delen}
+\ProvideDictTranslation{parts}{delen}
+\ProvideDictTranslation{Part}{Deel}
+\ProvideDictTranslation{part}{deel}
+\ProvideDictTranslation{Preface}{Woord vooraf}
+\ProvideDictTranslation{Proofs}{Bew\ij zen}
+\ProvideDictTranslation{proofs}{Bew\ij zen}
+\ProvideDictTranslation{Proof}{Bew\ij s}
+\ProvideDictTranslation{proof}{bew\ij s}
+\ProvideDictTranslation{References}{Referenties}
+\ProvideDictTranslation{Related work}{Verwant werk}
+\ProvideDictTranslation{Related Work}{Verwant Werk}
+\ProvideDictTranslation{Sections}{Paragrafen}
+\ProvideDictTranslation{sections}{paragrafen}
+\ProvideDictTranslation{Section}{Paragraaf}
+\ProvideDictTranslation{section}{paragraaf}
+\ProvideDictTranslation{See also}{Zie ook}
+\ProvideDictTranslation{see also}{zie ook}
+\ProvideDictTranslation{See}{Zie}
+\ProvideDictTranslation{see}{zie}
+\ProvideDictTranslation{Sketch of Proofs}{Bew\ij schetsen}
+\ProvideDictTranslation{Sketch of proofs}{bew\ij schetsen}
+\ProvideDictTranslation{Sketch of Proof}{Bew\ij schets}
+\ProvideDictTranslation{Sketch of proof}{bew\ij schets}
+\ProvideDictTranslation{Subsections}{Subparagrafen}
+\ProvideDictTranslation{subsections}{subparagrafen}
+\ProvideDictTranslation{Subsection}{Subparagraaf}
+\ProvideDictTranslation{subsection}{subparagraaf}
+\ProvideDictTranslation{Summary}{Samenvatting}
+\ProvideDictTranslation{Tables}{Tabellen}
+\ProvideDictTranslation{tables}{tabellen}
+\ProvideDictTranslation{Table}{Tabel}
+\ProvideDictTranslation{table}{tabel}
+\ProvideDictTranslation{To}{Aan}
+\ProvideDictTranslation{to}{aan}
+
+\ProvideDictTranslation{Monday}{Maandag}
+\ProvideDictTranslation{Tuesday}{Dinsdag}
+\ProvideDictTranslation{Wednesday}{Woensdag}
+\ProvideDictTranslation{Thursday}{Donderdag}
+\ProvideDictTranslation{Friday}{Vr\ij dag}
+\ProvideDictTranslation{Saturday}{Zaterdag}
+\ProvideDictTranslation{Sunday}{Zondag}
+
+\ProvideDictTranslation{January}{Januari}
+\ProvideDictTranslation{February}{Februari}
+\ProvideDictTranslation{March}{Maart}
+\ProvideDictTranslation{April}{April}
+\ProvideDictTranslation{May}{Mei}
+\ProvideDictTranslation{June}{Juni}
+\ProvideDictTranslation{July}{Juli}
+\ProvideDictTranslation{August}{Augustus}
+\ProvideDictTranslation{September}{September}
+\ProvideDictTranslation{October}{Oktober}
+\ProvideDictTranslation{November}{November}
+\ProvideDictTranslation{December}{December}
+
Modified: trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl 2017-03-03 23:15:29 UTC (rev 43391)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl 2017-03-03 23:15:43 UTC (rev 43392)
@@ -1,3 +1,30 @@
+% --------------------------------------------------------------------------
+% the TRANSLATIONS package
+%
+% internationalization of LaTeX2e packages
+%
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% Web: http://www.mychemistry.eu/forums/forum/translations
+% E-Mail: contact at mychemistry.eu
+% --------------------------------------------------------------------------
+% Copyright 2012-2017 Clemens Niederberger
+%
+% 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 Clemens Niederberger.
+% --------------------------------------------------------------------------
+% If you have any ideas, questions, suggestions or bugs to report, please
+% feel free to contact me.
+% --------------------------------------------------------------------------
\ProvideDictionaryFor{English}{translations-basic-dictionary}
\ProvideDictTranslation{Abstract}{Abstract}
Modified: trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl 2017-03-03 23:15:29 UTC (rev 43391)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl 2017-03-03 23:15:43 UTC (rev 43392)
@@ -1,3 +1,30 @@
+% --------------------------------------------------------------------------
+% the TRANSLATIONS package
+%
+% internationalization of LaTeX2e packages
+%
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% Web: http://www.mychemistry.eu/forums/forum/translations
+% E-Mail: contact at mychemistry.eu
+% --------------------------------------------------------------------------
+% Copyright 2012-2017 Clemens Niederberger
+%
+% 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 Clemens Niederberger.
+% --------------------------------------------------------------------------
+% If you have any ideas, questions, suggestions or bugs to report, please
+% feel free to contact me.
+% --------------------------------------------------------------------------
\ProvideDictionaryFor{French}{translations-basic-dictionary}
\ProvideDictTranslation{Abstract}{R\'{e}sum\'{e}}
Modified: trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl 2017-03-03 23:15:29 UTC (rev 43391)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl 2017-03-03 23:15:43 UTC (rev 43392)
@@ -1,3 +1,30 @@
+% --------------------------------------------------------------------------
+% the TRANSLATIONS package
+%
+% internationalization of LaTeX2e packages
+%
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% Web: http://www.mychemistry.eu/forums/forum/translations
+% E-Mail: contact at mychemistry.eu
+% --------------------------------------------------------------------------
+% Copyright 2012-2017 Clemens Niederberger
+%
+% 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 Clemens Niederberger.
+% --------------------------------------------------------------------------
+% If you have any ideas, questions, suggestions or bugs to report, please
+% feel free to contact me.
+% --------------------------------------------------------------------------
\ProvideDictionaryFor{German}{translations-basic-dictionary}
\ProvideDictTranslation{Abstract}{Zusammenfassung}
Modified: trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl 2017-03-03 23:15:29 UTC (rev 43391)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl 2017-03-03 23:15:43 UTC (rev 43392)
@@ -1,3 +1,30 @@
+% --------------------------------------------------------------------------
+% the TRANSLATIONS package
+%
+% internationalization of LaTeX2e packages
+%
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% Web: http://www.mychemistry.eu/forums/forum/translations
+% E-Mail: contact at mychemistry.eu
+% --------------------------------------------------------------------------
+% Copyright 2012-2017 Clemens Niederberger
+%
+% 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 Clemens Niederberger.
+% --------------------------------------------------------------------------
+% If you have any ideas, questions, suggestions or bugs to report, please
+% feel free to contact me.
+% --------------------------------------------------------------------------
\ProvideDictionaryFor{Spanish}{translations-basic-dictionary}
\ProvideDictTranslation{Abstract}{Resumen}
Modified: trunk/Master/texmf-dist/tex/latex/translations/translations.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations.sty 2017-03-03 23:15:29 UTC (rev 43391)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations.sty 2017-03-03 23:15:43 UTC (rev 43392)
@@ -8,7 +8,7 @@
% Web: http://www.mychemistry.eu/forums/forum/translations
% E-Mail: contact at mychemistry.eu
% --------------------------------------------------------------------------
-% Copyright 2012-2016 Clemens Niederberger
+% Copyright 2012-2017 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -25,15 +25,15 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-\newcommand*\@trnslt at date{2016/06/02}
-\newcommand*\@trnslt at version{v1.4a}
-\newcommand*\@trnslt at info{internationalization of LaTeX2e packages}
+\newcommand*\@trnslt at date{2017/03/03}
+\newcommand*\@trnslt at version{v1.5}
+\newcommand*\@trnslt at packageinfo{internationalization of LaTeX2e packages}
\ProvidesPackage{translations}[%
\@trnslt at date\space
\@trnslt at version\space
- \@trnslt at info\space (CN)]
-\RequirePackage{cnltx-base,scrlfile}
+ \@trnslt at packageinfo\space (CN)]
+\RequirePackage{scrlfile,etoolbox}
% --------------------------------------------------------------------------
% message handling
@@ -42,30 +42,30 @@
For details have a look at the `translations' manual.%
}
-% create message macros:
-\cnltx at create@generic at message{@trnslt}{translations}{Error}{\@trnslt at error@message}
-\cnltx at create@generic at message{@trnslt}{translations}{Warning}{}
-\cnltx at create@generic at message{@trnslt}{translations}{WarningNoLine}{}
-\cnltx at create@generic at message{@trnslt}{translations}{Info}{}
+\newrobustcmd*\@trnslt at info[1]{\PackageInfo{translations}{#1}}
+\newrobustcmd*\@trnslt at warning[1]{\PackageWarning{translations}{#1}}
+\newrobustcmd*\@trnslt at error[1]{%
+ \PackageError{translations}{#1}\@trnslt at error@message
+}
% specific errors:
-\newrobustcmd*\@trnslt at err@unknown at lang[1]{\@trnslt at error{Unknown language `#1'}}
-\newrobustcmd*\@trnslt at warn@unknown at lang[1]{\@trnslt at warning{Unknown language `#1'}}
+\newrobustcmd*\@trnslt at err@unknown at lang[1]{%
+ \@trnslt at error{Unknown language `#1'}%
+}
+\newrobustcmd*\@trnslt at warn@unknown at lang[1]{%
+ \PackageWarning{translations}{Unknown language `#1'}%
+}
\newrobustcmd*\@trnslt at err@already at defined[2]{%
\@trnslt at error{The #2 translation for `#1' is already defined.}%
}
\newrobustcmd*\@trnslt at err@not at defined[2]{%
- \@trnslt at error{%
- The \@trnslt at language{#2} translation for `#1' is not defined yet.%
- }%
+ \@trnslt at error{The \@trnslt at language{#2} translation for `#1' is not defined yet.}%
}
\newrobustcmd*\@trnslt at err@dict at already@defined[2]{%
\@trnslt at error{The #2 dictionary entry for `#1' is already defined.}%
}
\newrobustcmd*\@trnslt at err@dict at not@defined[2]{%
- \@trnslt at error{%
- The \@trnslt at language{#2} dictionary entry for `#1' is not defined yet.%
- }%
+ \@trnslt at error{The \@trnslt at language{#2} dictionary entry for `#1' is not defined yet.}%
}
% --------------------------------------------------------------------------
@@ -85,6 +85,40 @@
}
% --------------------------------------------------------------------------
+% test string equality, expandably:
+\newcommand\@trnslt at ifstrequal[2]{%
+ \ifnum\pdf at strcmp{\unexpanded{#1}}{\unexpanded{#2}}=\z@
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
+}
+
+% a check for etoolbox's lists where items may contain braces:
+\newbool{@trnslt at inlist}
+\newrobustcmd\@trnslt at ifinlist@type[5]{%
+ \def\do##1{%
+ \boolfalse{@trnslt at inlist}%
+ \ifstrequal{##1}{#2}
+ {\booltrue{@trnslt at inlist}\listbreak}
+ {}%
+ }%
+ #1{#3}%
+ \ifbool{@trnslt at inlist}
+ {#4}
+ {#5}%
+}
+\newrobustcmd*\@trnslt at ifinlist{\@trnslt at ifinlist@type\dolistloop}
+\newrobustcmd*\@trnslt at ifinlistcs{\@trnslt at ifinlist@type\dolistcsloop}
+
+\long\def\@trnslt at getnext@braced#1#2#3{#2\@trnslt at firstofone{#3{#1}}}
+\long\def\@trnslt at firstofone#1{#1}
+\long\def\@trnslt at braced@expanded at fully#1\@trnslt at firstofone#2#3{%
+ \expandafter\@trnslt at getnext@braced
+ \expandafter{\romannumeral-`0#3}{#1}{#2}%
+}
+
+% --------------------------------------------------------------------------
% book keeping: the following macros will be used as `etoolbox' lists that
% keep record of defined languages, dialects and aliases
\newcommand*\@trnslt at languages{}% all languages
@@ -218,7 +252,7 @@
\@trnslt at if@dialect{#2}
{\csletcs{@trnslt at dialect@#1}{@trnslt at dialect@#2}}
{}%
- \ifinlist{#1}\@trnslt at aliases@single
+ \@trnslt at ifinlist{#1}\@trnslt at aliases@single
{}{%
\csdef{@trnslt at alias@#1}{#2}%
\listeadd\@trnslt at aliases@pair{{#1}{#2}}%
@@ -239,10 +273,10 @@
% #2: true
% #3: false
\newcommand*\@trnslt at iflanguage[1]{%
- \cnltx at braced@expanded at fully
- \cnltx at braced@expanded at fully
- \cnltx at firstofone
- \cnltx at ifstrequal
+ \@trnslt at braced@expanded at fully
+ \@trnslt at braced@expanded at fully
+ \@trnslt at firstofone
+ \@trnslt at ifstrequal
{\@trnslt at language{#1}}
{\@trnslt at language{\languagename}}%
}
@@ -251,10 +285,10 @@
\newcommand*\@trnslt at ifbaselanguage[1]{%
\@trnslt at if@dialect{\languagename}
{%
- \cnltx at braced@expanded at fully
- \cnltx at braced@expanded at fully
- \cnltx at firstofone
- \cnltx at ifstrequal
+ \@trnslt at braced@expanded at fully
+ \@trnslt at braced@expanded at fully
+ \@trnslt at firstofone
+ \@trnslt at ifstrequal
{\@trnslt at language{\@trnslt at dialect@of{\languagename}}}
{\@trnslt at language{#1}}%
}
@@ -597,8 +631,6 @@
}%
}
-% \newcommand*\@trnslt at if@dictionary[2]{\IfFileExists{#1-#2.trsl}}
-
% --------------------------------------------------------------------------
% the contents of a dictionary; let's declare that is one.
% #1: lang
@@ -615,7 +647,7 @@
% this macro can be used to check if we have a dictionary and will also be
% used as a list for the dictionary entries:
\csdef{@trnslt at dictionary@\@trnslt at dictionary@name @\@trnslt at dictionary@lang}{}%
- \@ifnextchar[
+ \@ifnextchar[ % ]
{\@trnslt at provide@dictionary at version}
{
\ProvidesFile
@@ -631,7 +663,7 @@
% change this test (we can't use braces inside the item with \ifinlist):
\newcommand*\@trnslt at check@dictionary at entry[2]{%
- \cnltx at ifinlistcs
+ \@trnslt at ifinlistcs
{{#1}{#2}}
{@trnslt at dictionary@\@trnslt at dictionary@name @\@trnslt at dictionary@lang}%
}
@@ -1031,27 +1063,6 @@
% --------------------------------------------------------------------------
% load basic dictionary if available
\AtBeginDocument{%
- % \@trnslt at if@dialect{\@trnslt at current@language}
- % {%
- % \@trnslt at if@dictionary
- % {translations-basic-dictionary}
- % {\@trnslt at language{\@trnslt at current@language}}%
- % {%
- % \@trnslt at load@dictionary at silent@for
- % {translations-basic-dictionary}
- % {\@trnslt at language{\@trnslt at current@language}}%
- % }%
- % {%
- % \@trnslt at load@dictionary at silent@for
- % {translations-basic-dictionary}
- % {\@trnslt at dialect@of{\@trnslt at current@language}}%
- % }
- % }
- % {%
- % \@trnslt at load@dictionary at silent@for
- % {translations-basic-dictionary}
- % {\@trnslt at language{\@trnslt at current@language}}%
- % }%
\@trnslt at load@dictionary at silent@for
{translations-basic-dictionary}
\@trnslt at current@language
@@ -1137,3 +1148,6 @@
- fallback versions for each definition command
2016/06/02 v1.4a - rename new commands: they conflict with the translator
package!
+2017/03/03 v1.5 - remove dependency on cnltx-base
+ - add Dutch dictionary (thanks to kwikwi)
+
More information about the tex-live-commits
mailing list