[latex3-commits] [git/LaTeX3-latex3-babel] master: hyphen.cfg now defines only a few essential commands. (8977a38)

Javier email at dante.de
Tue Apr 7 16:13:58 CEST 2020


Repository : https://github.com/latex3/babel
On branch  : master
Link       : https://github.com/latex3/babel/commit/8977a38cce2e75996547e0cf7600071c10050964

>---------------------------------------------------------------

commit 8977a38cce2e75996547e0cf7600071c10050964
Author: Javier <email at localhost>
Date:   Tue Apr 7 16:13:58 2020 +0200

    hyphen.cfg now defines only a few essential commands.


>---------------------------------------------------------------

8977a38cce2e75996547e0cf7600071c10050964
 README.md    |   5 +++-
 babel.dtx    |  86 +++++++++++++++++++++++++++++++++--------------------------
 babel.ins    |   2 +-
 babel.pdf    | Bin 768198 -> 769441 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 54 insertions(+), 41 deletions(-)

diff --git a/README.md b/README.md
index 1274e40..fdaf65e 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.42
+## Babel 3.42.1970
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -44,6 +44,9 @@ respective authors.
 ### Latest changes
 
 ```
+3.43   2020-04-??
+       - Only a few essential commands are loaded with the format.
+       -
 3.42   2020-03-22
        - \getlocaleproperty, to get the value of a field from the loaded
          ini files.
diff --git a/babel.dtx b/babel.dtx
index 4b7e721..0ed2747 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2020/03/22 v3.42 The Babel package]
+\ProvidesFile{babel.dtx}[2020/04/07 v3.42.1970 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -220,7 +220,6 @@ Localization and internationalization\\[1cm]
 \largetex\\
 pdf\largetex\\
 Lua\largetex\\
-LuaHB\largetex\\
 Xe\largetex
  \vspace{20cm}
 \end{minipage}
@@ -919,7 +918,7 @@ system shorthands. Language-dependent user shorthands (new in
   words are repeated at the beginning of the next line. You could then
   set:
 \begin{verbatim}
-\defineshorthand[*polish,*portugese]{"-}{\babelhyphen{repeat}}
+\defineshorthand[*polish,*portuguese]{"-}{\babelhyphen{repeat}}
 \end{verbatim}
   Here, options with |*| set a language-dependent user shorthand,
   which means the generic one above only applies for the rest of
@@ -1144,7 +1143,7 @@ encodings). Other allowed values are font encoding codes (|T1|, |T2A|,
 and the like (this feature misuses some internal \LaTeX\ tools, so use
 it only as a last resort).
 
-\Describe{hyphenmap=}{\texttt{off} $\string|$ \texttt{main}
+\Describe{hyphenmap=}{\texttt{off} $\string|$ \texttt{first}
 $\string|$ \texttt{select} $\string|$ \texttt{other} $\string|$
 \texttt{other*}}
 
@@ -3301,17 +3300,19 @@ the current options may be different. It does not include |ini| files.
 \item[Greek] greek, polutonikogreek
 \item[Hebrew] hebrew
 \item[Icelandic] icelandic
-\item[Indonesian] bahasa, indonesian, indon, bahasai
+\item[Indonesian] indonesian, bahasa, indon, bahasai
 \item[Interlingua] interlingua
 \item[Irish Gaelic] irish
 \item[Italian] italian
 \item[Latin] latin
 \item[Lower Sorbian] lowersorbian
-\item[Malay] bahasam, malay, melayu
+\item[Malay] malay, melayu, bahasam
 \item[North Sami] samin
 \item[Norwegian] norsk, nynorsk
 \item[Polish] polish
-\item[Portuguese] portuges, portuguese, brazilian, brazil
+\item[Portuguese] portuguese, portuges\footnote{This name comes from
+  the times when they had to be shortened to 8 characters}, brazilian,
+  brazil
 \item[Romanian] romanian
 \item[Russian] russian
 \item[Scottish Gaelic] scottish
@@ -4456,8 +4457,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.42>>
-%<<date=2020/03/22>>
+%<<version=3.42.1970>>
+%<<date=2020/04/07>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -5224,6 +5225,8 @@ help from Bernd Raichle, for which I am grateful.
 %    checks (|\input| works, too, but possible errors are not catched).
 %
 %    \begin{macrocode}
+% \input switch.def
+% \input babel.def
 \bbl at trace{Language options}
 \let\bbl at afterlang\relax
 \let\BabelModifiers\relax
@@ -11220,7 +11223,30 @@ help from Bernd Raichle, for which I am grateful.
 \def\bbl at hook@everylanguage#1{}
 \def\bbl at hook@loadpatterns#1{\input #1\relax}
 \let\bbl at hook@loadexceptions\bbl at hook@loadpatterns
-\let\bbl at hook@loadkernel\bbl at hook@loadpatterns
+\def\bbl at hook@loadkernel#1{%
+  \def\addlanguage{\alloc at 9\language\chardef\@cclvi}%
+  \def\adddialect##1##2{%
+    \global\chardef##1##2\relax
+    \wlog{\string##1 = a dialect from \string\language##2}}%
+  \def\iflanguage##1{%
+    \expandafter\ifx\csname l@##1\endcsname\relax
+      \@nolanerr{##1}%
+    \else
+      \ifnum\csname l@##1\endcsname=\language
+        \expandafter\expandafter\expandafter\@firstoftwo
+      \else
+        \expandafter\expandafter\expandafter\@secondoftwo
+      \fi
+    \fi}%
+  \def\set at hyphenmins##1##2{%
+    \lefthyphenmin##1\relax
+    \righthyphenmin##2\relax}%
+  \def\selectlanguage{%
+    \errhelp{Selecting a language requires a package supporting it}%
+    \errmessage{Not implemented}}%
+  \let\foreignlanguage\selectlanguage
+  \let\otherlanguage\selectlanguage
+  \expandafter\let\csname otherlanguage*\endcsname\selectlanguage}
 \begingroup
   \def\AddBabelHook#1#2{%
     \expandafter\ifx\csname bbl at hook@#2\endcsname\relax
@@ -20306,6 +20332,7 @@ Babel.cjk_breaks = {
 % \section{Support for Plain \TeX\ (\texttt{plain.def})}
 %
 % \subsection{Not renaming \file{hyphen.tex}}
+%
 %    As Don Knuth has declared that the filename \file{hyphen.tex} may
 %    only be used to designate \emph{his} version of the american
 %    English hyphenation patterns, a new solution has to be found in
@@ -20323,7 +20350,7 @@ Babel.cjk_breaks = {
 %
 %    The files \file{bplain.tex} and \file{blplain.tex} can be used as
 %    replacement wrappers around \file{plain.tex} and
-%    \file{lplain.tex} to acheive the desired effect, based on the
+%    \file{lplain.tex} to achieve the desired effect, based on the
 %    \pkg{babel} package. If you load each of them with ini\TeX, you
 %    will get a file called either \file{bplain.fmt} or
 %    \file{blplain.fmt}, which you can use as replacements for
@@ -20340,47 +20367,28 @@ Babel.cjk_breaks = {
 \catcode`\#=6 % hash mark is macro parameter character
 %    \end{macrocode}
 %
-%    Now let's see if a file called \file{hyphen.cfg} can be found
-%    somewhere on \TeX's input path by trying to open it for
-%    reading...
+%    If a file called \file{hyphen.cfg} can be found, we make sure that
+%    \emph{it} will be read instead of the file \file{hyphen.tex}. We
+%    do this by first saving the original meaning of |\input| (and I
+%    use a one letter control sequence for that so as not to waste
+%    multi-letter control sequence on this in the format).
 %
 %    \begin{macrocode}
 \openin 0 hyphen.cfg
-%    \end{macrocode}
-%
-%    If the file wasn't found the following test turns out true.
-%
-%    \begin{macrocode}
 \ifeof0
 \else
-%    \end{macrocode}
-%
-%    When \file{hyphen.cfg} could be opened we make sure that
-%    \emph{it} will be read instead of the file \file{hyphen.tex}
-%    which should (according to Don Knuth's ruling) contain the
-%    american English hyphenation patterns and nothing else.
-%
-%    We do this by first saving the original meaning of |\input| (and
-%    I use a one letter control sequence for that so as not to waste
-%    multi-letter control sequence on this in the format).
-%
-%    \begin{macrocode}
   \let\a\input
 %    \end{macrocode}
 %
 %    Then |\input| is defined to forget about its argument and load
-%    \file{hyphen.cfg} instead.
+%    \file{hyphen.cfg} instead. Once that's done the original meaning
+%    of |\input| can be restored and the definition of |\a| can be
+%    forgotten.
 %
 %    \begin{macrocode}
   \def\input #1 {%
     \let\input\a
     \a hyphen.cfg
-%    \end{macrocode}
-%
-%    Once that's done the original meaning of |\input| can be restored
-%    and the definition of |\a| can be forgotten.
-%
-%    \begin{macrocode}
     \let\a\undefined
   }
 \fi
@@ -20752,6 +20760,8 @@ Babel.cjk_breaks = {
 \def\ProvideTextCommandDefault#1{%
    \ProvideTextCommand#1?%
 }
+% \input switch.def
+% \input babel.def
 \expandafter\let\csname OT1-cmd\endcsname\@current at cmd
 \expandafter\let\csname?-cmd\endcsname\@changed at cmd
 \def\DeclareTextAccent#1#2#3{%
diff --git a/babel.ins b/babel.ins
index 194f706..0a9d77f 100644
--- a/babel.ins
+++ b/babel.ins
@@ -26,7 +26,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 %%
-\def\filedate{2020/03/22}
+\def\filedate{2020/04/07}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 854f18b..3adeecb 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 0e831a5..4e8f60b 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2020/03/22 v3.42]
+\ProvidesFile{bbcompat.dtx}[2020/04/07 v3.42.1970]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.