[latex3-commits] [git/LaTeX3-latex3-babel] master: Fix #126. Transforms for Czech, Slovak, Norsk, Polish, etc. (b4b8ffd)
Javier
email at dante.de
Sat Apr 10 16:21:23 CEST 2021
Repository : https://github.com/latex3/babel
On branch : master
Link : https://github.com/latex3/babel/commit/b4b8ffdfc5b59d9872390a8478a6c45ec4854563
>---------------------------------------------------------------
commit b4b8ffdfc5b59d9872390a8478a6c45ec4854563
Author: Javier <email at localhost>
Date: Sat Apr 10 16:21:23 2021 +0200
Fix #126. Transforms for Czech, Slovak, Norsk, Polish, etc.
>---------------------------------------------------------------
b4b8ffdfc5b59d9872390a8478a6c45ec4854563
README.md | 10 +++++++++-
babel.dtx | 40 +++++++++++++++++++++++++++++++---------
babel.ins | 2 +-
babel.pdf | Bin 826256 -> 828589 bytes
bbcompat.dtx | 2 +-
locale/cs/babel-cs.ini | 10 ++++++++++
locale/es/babel-es.ini | 5 +++++
locale/nb/babel-nb.ini | 6 ++++++
locale/pl/babel-pl.ini | 5 +++++
locale/pt/babel-pt-BR.ini | 5 +++++
locale/pt/babel-pt-PT.ini | 5 +++++
locale/pt/babel-pt.ini | 5 +++++
locale/sk/babel-sk.ini | 10 ++++++++++
13 files changed, 93 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index 6d8f47c..28d1723 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.57
+## Babel 3.57.2338
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -46,6 +46,14 @@ respective authors.
### Summary of Latest changes
```
+3.58 2021-04-28??
+ * More predefined transforms (lua):
+ - doubleletter.hyphen: Norsk
+ - oneletter.nobreak: Czech, Slovak
+ - hyphen.repeat: Czech, Polish, Portuguese, Slovak, Spanish
+ * Fixes:
+ - \shorthandoff*{^} was not revertible (#126).
+
3.57 2021-04-07
* Predefined transforms (lua):
- Arabic: transliteration.dad
diff --git a/babel.dtx b/babel.dtx
index b21384f..e2bde39 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2021/04/07 v3.57 The Babel package]
+\ProvidesFile{babel.dtx}[2021/04/10 v3.57.2338 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -3034,11 +3034,13 @@ in future releases.)
\begingroup
\def\trans#1#2#3{%
- \vspace{1mm}%
- \parbox[t]{2.4cm}{\strut#1}%
- \parbox[t]{4.2cm}{\strut\ttfamily#2}%
+ \vspace{1.5mm}%
+ \parbox[t]{2.2cm}{\raggedright\strut#1}%
+ \hspace{2mm}%
+ \parbox[t]{4.0cm}{\strut\ttfamily#2}%
+ \hspace{2mm}%
\parbox[t]{6.6cm}{\strut#3}\par}
-\bigskip\hrule\nobreak\vspace{1mm}
+\bigskip\hrule\nobreak\vspace{.5mm}
% \strut\hfil Transforms
% \medskip\hrule\nobreak
@@ -3052,6 +3054,13 @@ devised by Yannis Haralambous for \textsf{dad} (simple and
recommended way to make these transformations (the best way is with
OTF features), but it can get you out of a hurry.}
+\trans{Czech, Polish, Portuguese, Slovak,
+Spanish}{hyphen.repeat}{Explicit hyphens behave like
+|\string\babelhyphen|\allowbreak|\{repeat\}|.}
+
+\trans{Czech, Slovak}{oneletter.nobreak}{Converts a space after a
+non-syllabic preposition into a non-breaking space.}
+
\trans{Greek}{diaeresis.hyphen}{Removes the diaeresis above iota and
upsilon if hyphenated just before. It works with the
three variants.}
@@ -3064,6 +3073,11 @@ Devanagari.}
\textit{ssz}, \textit{tty} and \textit{zzs} as \textit{cs-cs},
\textit{dz-dz}, etc.}
+\trans{Norsk}{doubleletter.hyphen}{Hyphenates the doble-letter groups
+\textit{bb}, \textit{dd}, \textit{ff}, \textit{gg}, \textit{ll},
+\textit{mm}, \textit{nn}, \textit{pp}, \textit{rr}, \textit{ss},
+\textit{tt} as \textit{bb-b}, \textit{dd-d}, etc.}
+
\vspace{2mm}\hrule\nobreak
\endgroup
@@ -4910,8 +4924,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.57>>
-%<<date=2021/04/07>>
+%<<version=3.57.2338>>
+%<<date=2021/04/10>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -9152,12 +9166,20 @@ help from Bernd Raichle, for which I am grateful.
{\bbl at error
{I cannot switch `\string#2' on or off--not a shorthand}%
{This character is not a shorthand. Maybe you made\\%
- a typing mistake? I will ignore your instruction}}%
- {\ifcase#1%
+ a typing mistake? I will ignore your instruction.}}%
+ {\ifcase#1% off, on, off*
\catcode`#212\relax
\or
\catcode`#2\active
+ \bbl at ifunset{bbl at shdef@\string#2}%
+ {}%
+ {\bbl at withactive{\expandafter\let\expandafter}#2%
+ \csname bbl at shdef@\string#2\endcsname
+ \bbl at csarg\let{shdef@\string#2}\relax}%
\or
+ \bbl at ifunset{bbl at shdef@\string#2}%
+ {\bbl at csarg\let{shdef@\string#2}#2}%
+ {}%
\csname bbl at oricat@\string#2\endcsname
\csname bbl at oridef@\string#2\endcsname
\fi}%
diff --git a/babel.ins b/babel.ins
index ddedf2c..9349f99 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{2021/04/07}
+\def\filedate{2021/04/10}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 540babb..20b74dd 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index ea7e8ec..29df07b 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/04/07 v3.57]
+\ProvidesFile{bbcompat.dtx}[2021/04/10 v3.57.2338]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/locale/cs/babel-cs.ini b/locale/cs/babel-cs.ini
index ea0e88c..33df206 100644
--- a/locale/cs/babel-cs.ini
+++ b/locale/cs/babel-cs.ini
@@ -183,3 +183,13 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.prehyphenation]
+oneletter.nobreak.1.0 = { |[AIiVvOoUuSsZzKk]()|() }
+oneletter.nobreak.1.1 = { insert, penalty=10000 }
+oneletter.nobreak.1.2 = {}
+
+[transforms.posthyphenation]
+hyphen.repeat.1.0 = { (){a}=(){a} }
+hyphen.repeat.1.1 = {}
+hyphen.repeat.1.2 = { no = -, pre = -, post = -, data = 1 }
\ No newline at end of file
diff --git a/locale/es/babel-es.ini b/locale/es/babel-es.ini
index 5ed832d..0f6aab5 100644
--- a/locale/es/babel-es.ini
+++ b/locale/es/babel-es.ini
@@ -183,3 +183,8 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.posthyphenation]
+hyphen.repeat.1.0 = { (){a}=(){a} }
+hyphen.repeat.1.1 = {}
+hyphen.repeat.1.2 = { no = -, pre = -, post = -, data = 1 }
\ No newline at end of file
diff --git a/locale/nb/babel-nb.ini b/locale/nb/babel-nb.ini
index 12930bb..dbd7601 100644
--- a/locale/nb/babel-nb.ini
+++ b/locale/nb/babel-nb.ini
@@ -185,3 +185,9 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.posthyphenation]
+doubleletter.hyphen.1.0 = {()([BDFGLMNPRSTbdfglmnprst])|(){1}}
+doubleletter.hyphen.1.1 = { no = {1}, pre = {1}{1}- }
+doubleletter.hyphen.1.2 = remove
+
diff --git a/locale/pl/babel-pl.ini b/locale/pl/babel-pl.ini
index 2096cc9..f6e122d 100644
--- a/locale/pl/babel-pl.ini
+++ b/locale/pl/babel-pl.ini
@@ -183,3 +183,8 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.posthyphenation]
+hyphen.repeat.1.0 = { (){a}=(){a} }
+hyphen.repeat.1.1 = {}
+hyphen.repeat.1.2 = { no = -, pre = -, post = -, data = 1 }
\ No newline at end of file
diff --git a/locale/pt/babel-pt-BR.ini b/locale/pt/babel-pt-BR.ini
index d0b99df..eaf7e6c 100644
--- a/locale/pt/babel-pt-BR.ini
+++ b/locale/pt/babel-pt-BR.ini
@@ -188,3 +188,8 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.posthyphenation]
+hyphen.repeat.1.0 = { (){a}=(){a} }
+hyphen.repeat.1.1 = {}
+hyphen.repeat.1.2 = { no = -, pre = -, post = -, data = 1 }
\ No newline at end of file
diff --git a/locale/pt/babel-pt-PT.ini b/locale/pt/babel-pt-PT.ini
index 61ce0fb..848d0a4 100644
--- a/locale/pt/babel-pt-PT.ini
+++ b/locale/pt/babel-pt-PT.ini
@@ -188,3 +188,8 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.posthyphenation]
+hyphen.repeat.1.0 = { (){a}=(){a} }
+hyphen.repeat.1.1 = {}
+hyphen.repeat.1.2 = { no = -, pre = -, post = -, data = 1 }
diff --git a/locale/pt/babel-pt.ini b/locale/pt/babel-pt.ini
index 035b7f3..c04cb67 100644
--- a/locale/pt/babel-pt.ini
+++ b/locale/pt/babel-pt.ini
@@ -185,3 +185,8 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.posthyphenation]
+hyphen.repeat.1.0 = { (){a}=(){a} }
+hyphen.repeat.1.1 = {}
+hyphen.repeat.1.2 = { no = -, pre = -, post = -, data = 1 }
diff --git a/locale/sk/babel-sk.ini b/locale/sk/babel-sk.ini
index 39c0532..5353a88 100644
--- a/locale/sk/babel-sk.ini
+++ b/locale/sk/babel-sk.ini
@@ -183,3 +183,13 @@ plusSign = +
superscriptingExponent = ×
[counters]
+
+[transforms.prehyphenation]
+oneletter.nobreak.1.0 = { |[AIiVvOoUuSsZzKk]()|() }
+oneletter.nobreak.1.1 = { insert, penalty=10000 }
+oneletter.nobreak.1.2 = {}
+
+[transforms.posthyphenation]
+hyphen.repeat.1.0 = { (){a}=(){a} }
+hyphen.repeat.1.1 = {}
+hyphen.repeat.1.2 = { no = -, pre = -, post = -, data = 1 }
\ No newline at end of file
More information about the latex3-commits
mailing list.