texlive[54899] Master/texmf-dist: translations (26apr20)
commits+karl at tug.org
commits+karl at tug.org
Sun Apr 26 23:44:05 CEST 2020
Revision: 54899
http://tug.org/svn/texlive?view=revision&revision=54899
Author: karl
Date: 2020-04-26 23:44:05 +0200 (Sun, 26 Apr 2020)
Log Message:
-----------
translations (26apr20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/translations/README
trunk/Master/texmf-dist/doc/latex/translations/translations_en.pdf
trunk/Master/texmf-dist/tex/latex/translations/translations.sty
Modified: trunk/Master/texmf-dist/doc/latex/translations/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/translations/README 2020-04-26 21:43:53 UTC (rev 54898)
+++ trunk/Master/texmf-dist/doc/latex/translations/README 2020-04-26 21:44:05 UTC (rev 54899)
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------
-the TRANSLATIONS package v1.8 - 2020/02/28
+the TRANSLATIONS package v1.8a - 2020/04/26
internationalization of LaTeX2e packages
--------------------------------------------------------------------------
Modified: trunk/Master/texmf-dist/doc/latex/translations/translations_en.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/translations/translations.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations.sty 2020-04-26 21:43:53 UTC (rev 54898)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations.sty 2020-04-26 21:44:05 UTC (rev 54899)
@@ -25,8 +25,8 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-\newcommand*\@trnslt at date{2018/02/28}
-\newcommand*\@trnslt at version{v1.8}
+\newcommand*\@trnslt at date{2020/04/26}
+\newcommand*\@trnslt at version{v1.8a}
\newcommand*\@trnslt at packageinfo{internationalization of LaTeX2e packages}
\ProvidesPackage{translations}[%
@@ -557,56 +557,42 @@
\@trnslt at load@dictionary at for@dialect{#2}{#1}}
\@onlypreamble\LoadDictionaryFor
+\newcommand*\@trnslt at dictionaries{}
+
+\edef\@trnslt at catcodes{%
+ \catcode\number`\<=\the\catcode`\<\relax
+ \catcode\number`\>=\the\catcode`\>\relax
+ \catcode\number`\|=\the\catcode`\|\relax
+}
+
+\catcode`\<=3
+\catcode`\>=3
+\catcode`\|=7
+
% #1: name
% #2: lang
% #3: false
-\newrobustcmd*\@trnslt at input@if at dictionary@exists[3]{%
- \AtBeginDocument{%
- \InputIfFileExists{#1-\@trnslt at language{#2}.trsl}
- {\@trnslt at check@dictionary{#1}{#2}}
- {#3}%
- }%
+\newrobustcmd*\@trnslt at input@if at dictionary[2]{%
+ \expanded{\ifinlist{<#1|\@trnslt at language{#2}>}}{\@trnslt at dictionaries}
+ {}
+ {\listxadd\@trnslt at dictionaries{<#1|\@trnslt at language{#2}>}}%
}
% #1: name
% #2: lang
% #3: false
-\newrobustcmd*\@trnslt at load@dictionary at for@F[3]{%
- \@trnslt at input@if at dictionary@exists{#1}{#2}{#3}%
+\newrobustcmd*\@trnslt at load@dictionary at for[2]{%
+ \@trnslt at input@if at dictionary{#1}{#2}%
}
% #1: name
% #2: lang
\newrobustcmd*\@trnslt at load@dictionary at for@dialect[2]{%
- \@trnslt at load@dictionary at for@F{#1}{#2}
- {%
- \@trnslt at warning{dictionary file `#1-\@trnslt at language{#2}.trsl' not
- found.}%
- }%
+ \@trnslt at load@dictionary at for{#1}{#2}
}
% #1: name
% #2: lang
-\newrobustcmd*\@trnslt at load@dictionary at for[2]{%
- \@trnslt at load@dictionary at for@F{#1}{#2}
- {%
- \@trnslt at load@dictionary at for@F{#1}{\baselanguage{#2}}
- {%
- \@trnslt at warning{neither dictionary file
- `#1-\@trnslt at language{#2}.trsl' nor `#1-\baselanguage{#2}.trsl'
- found.}%
- }%
- }%
-}
-
-\newrobustcmd*\@trnslt at load@dictionary at silent@for[2]{%
- \@trnslt at load@dictionary at for@F{#1}{#2}{%
- \@trnslt at load@dictionary at for@F{#1}{\baselanguage{#2}}{}%
- }%
-}
-
-% #1: name
-% #2: lang
\newrobustcmd*\@trnslt at check@dictionary[2]{%
\AfterFile{#1-\@trnslt at language{#2}.trsl}
{%
@@ -620,6 +606,22 @@
}%
}
+\protected\def\@trnslt at input@dictionary<#1|#2>\q at stop{%
+ \InputIfFileExists{#1-#2.trsl}
+ {\@trnslt at check@dictionary{#1}{#2}}
+ {%
+ \@trnslt at if@dialect{#2}
+ {%
+ \InputIfFileExists{#1-\baselanguage{#2}.trsl}
+ {\@trnslt at check@dictionary{#1}{#2}}
+ {\@trnslt at info{no dictionary file `#1-\baselanguage{#2}.trsl' found.}}
+ }%
+ {\@trnslt at info{no dictionary file `#1-#2.trsl' found.}}
+ }%
+}
+
+\@trnslt at catcodes
+
% --------------------------------------------------------------------------
% the contents of a dictionary; let's declare that is one.
% #1: lang
@@ -662,7 +664,7 @@
@trnslt at dictionary@\@trnslt at dictionary@name
@\@trnslt at dictionary@lang @{#1}{\detokenize{#2}}%
}{{#1}{#2}}%
- \listcsadd
+ \listcsgadd
{@trnslt at dictionary@\@trnslt at dictionary@name @\@trnslt at dictionary@lang}
{{#1}{#2}}%
}
@@ -1076,9 +1078,12 @@
\fi
\expanded{%
\noexpand\forcsvlist
- {\noexpand\@trnslt at load@dictionary at silent@for{translations-basic-dictionary}}
+ {\noexpand\@trnslt at load@dictionary at for{translations-basic-dictionary}}
{\expandonce\@trnslt at loaded@languages}%
}%
+ \def\do#1{\@trnslt at input@dictionary#1\q at stop}
+ \dolistloop\@trnslt at dictionaries
+ \let\do\@gobble
}
\endinput
@@ -1174,3 +1179,5 @@
2017/08/31 v1.7a - add missing dependency on pdftexcmds
2020/02/28 v1.8 - load basic dictionary for each loaded language (if
available)
+2020/04/26 v1.8a - fix problem with loading of dictionaries in some
+ circumstances
More information about the tex-live-commits
mailing list.