[latex3-commits] [git/LaTeX3-latex3-babel] master: Testing a way to (re)set values in ini files. (e929ed8)

Javier jbezos at dante.de
Sat Oct 5 08:34:53 CEST 2019


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

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

commit e929ed884d7087b4df0036de156faee1b9903c83
Author: Javier <jbezos at localhost>
Date:   Sat Oct 5 08:34:53 2019 +0200

    Testing a way to (re)set values in ini files.


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

e929ed884d7087b4df0036de156faee1b9903c83
 README.md    |   3 ++-
 babel.dtx    |  28 +++++++++++++++++++---------
 babel.ins    |   2 +-
 babel.pdf    | Bin 701874 -> 701829 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md
index 00caecd..7c516ec 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.34.1782
+## Babel 3.34.1785
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -54,6 +54,7 @@ respective authors.
 3.35   2019-10-??
        - Shorthands work in bibs and refs even with safe=none.
        - Fix - Another issue related to \ensureascii and LGR (#30)
+       - (Testing) a way to re(set) values in ini files.
 
 3.34   2019-09-27
        - Improved compatibility for \babelfont vs \setmainfont.
diff --git a/babel.dtx b/babel.dtx
index b4e5f4c..7be5df6 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2019/10/02 v3.34.1782 The Babel package]
+\ProvidesFile{babel.dtx}[2019/10/05 v3.34.1785 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -4073,8 +4073,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.34.1782>>
-%<<date=2019/10/02>>
+%<<version=3.34.1785>>
+%<<date=2019/10/05>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -8077,7 +8077,13 @@ help from Bernd Raichle, for which I am grateful.
   \let\bbl at KVP@mapdigits\@nil
   \let\bbl at KVP@intraspace\@nil
   \let\bbl at KVP@intrapenalty\@nil
-  \bbl at forkv{#1}{\bbl at csarg\def{KVP@##1}{##2}}%  TODO - error handling
+  \bbl at forkv{#1}{%  TODO - error handling
+    \in@{/}{##1}%
+    \ifin@
+      \bbl at renewinikey##1\@@{##2}%
+    \else
+      \bbl at csarg\def{KVP@##1}{##2}%
+    \fi}%
   \ifx\bbl at KVP@import\@nil\else
     \bbl at exp{\\\bbl at ifblank{\bbl at KVP@import}}%
       {\begingroup
@@ -8449,10 +8455,7 @@ help from Bernd Raichle, for which I am grateful.
       % Move trims here ??
       \bbl at ifunset{bbl at KVP@\bbl at section/\bbl at tempa}%
         {\expandafter\bbl at inireader\bbl at tempa=##2\@@}%
-        {\def\bbl at tempc{\expandafter\bbl at inireader\bbl at tempa=}%
-         \expandafter\expandafter\expandafter
-         \bbl at tempc\csname bbl at KVP@\bbl at section/\bbl at tempa\endcsname\@@}%
-         \global\bbl at csarg\let{KVP@\bbl at section/\bbl at tempa}\relax}%
+        {}}%
     \let\bbl at inireader\bbl at iniskip
     \bbl at info{Importing data from babel-#1.ini for \languagename}%
     \loop
@@ -8477,9 +8480,16 @@ help from Bernd Raichle, for which I am grateful.
 %    \begin{macrocode}
 \def\bbl at iniskip#1\@@{}%      if starts with ;
 \def\bbl at inisec[#1]#2\@@{%    if starts with opening bracket
+  \def\bbl at elt##1##2{\bbl at inireader##1=##2\@@}%
+  \@nameuse{bbl at renew@\bbl at section}%
+  % \bbl at csarg\show{renew@\bbl at section}%
+  \global\bbl at csarg\let{renew@\bbl at section}\relax
   \@nameuse{bbl at secpost@\bbl at section}%  ends previous section
   \def\bbl at section{#1}%
-  \@nameuse{bbl at secpre@\bbl at section}%   starts current section
+  \def\bbl at elt##1##2{%
+    \@namedef{bbl at KVP@#1/##1}{}}%
+  \@nameuse{bbl at renew@#1}%
+  \@nameuse{bbl at secpre@#1}%   starts current section
   \bbl at ifunset{bbl at inikv@#1}%
     {\let\bbl at inireader\bbl at iniskip}%
     {\bbl at exp{\let\\\bbl at inireader\<bbl at inikv@#1>}}}
diff --git a/babel.ins b/babel.ins
index 45f7afa..ecdd6f9 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{2019/10/02}
+\def\filedate{2019/10/05}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index d2e6952..73ac5e7 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 0171ca8..d2c8ac6 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2019/10/02 v3.34.1782]
+\ProvidesFile{bbcompat.dtx}[2019/10/05 v3.34.1785]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list