[latex3-commits] [git/LaTeX3-latex3-babel] master: Another mechanism to get rid of hyphens in XeTeX. (dac2ba4)
Javier
email at dante.de
Mon Jun 15 16:22:24 CEST 2020
Repository : https://github.com/latex3/babel
On branch : master
Link : https://github.com/latex3/babel/commit/dac2ba476129b92765c7478a97adc6e513475721
>---------------------------------------------------------------
commit dac2ba476129b92765c7478a97adc6e513475721
Author: Javier <email at localhost>
Date: Mon Jun 15 16:22:24 2020 +0200
Another mechanism to get rid of hyphens in XeTeX.
>---------------------------------------------------------------
dac2ba476129b92765c7478a97adc6e513475721
README.md | 11 ++++++---
babel.dtx | 64 +++++++++++++++++++++++++++++--------------------
babel.ins | 2 +-
babel.pdf | Bin 790671 -> 790907 bytes
bbcompat.dtx | 2 +-
locale/it/babel-it.ini | 2 ++
6 files changed, 50 insertions(+), 31 deletions(-)
diff --git a/README.md b/README.md
index 9d4077c..09c9dd8 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.45
+## Babel 3.45.2039
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -7,9 +7,9 @@ lualatex out of the box. A few even work with plain formats.
The latest stable version is available on <https://ctan.org/pkg/babel>.
-Changes in version 3.45 are described in:
+Changes in version 3.46 are described in:
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.45
+https://github.com/latex3/babel/wiki/What's-new-in-babel-3.46
Included is a set of ini files for about 200 languages.
@@ -44,6 +44,10 @@ respective authors.
### Latest changes
```
+3.46 2020-07-??
+ - Fixes:
+ - Getting rid of the hyphen in XeTeX was not working as
+ expected. A new procedure has been devised.
3.45 2020-06-10
- Minor fixes in Hindi, Ancient Greek, Macedonian.
- Improvements in Kurdish, Marathi.
@@ -58,6 +62,7 @@ respective authors.
\babelprehyphenation (it was ignoring too much).
- An error related to \bbl at foreign@x could be raised in some
rare cases.
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.45
3.44 2020-05-13
- WARNING. If you need the Portuguese style you must update
diff --git a/babel.dtx b/babel.dtx
index 8ffa9a1..909f356 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2020/06/10 v3.45 The Babel package]
+\ProvidesFile{babel.dtx}[2020/06/15 v3.45.2039 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -1312,7 +1312,7 @@ _\babelprovide[import, main]{georgian}_
longer be valid when you read this manual, if the packages involved
han been updated). The Harfbuzz renderer has still some issues, so as
a rule of thumb prefer the default renderer, and resort to Harfbuzz
- only if the former does work for you. Fortunately, fonts can be
+ only if the former does not work for you. Fortunately, fonts can be
loaded twice with different renderers; for example:
\begin{verbatim}
\babelfont[spanish]{rm}{FreeSerif}
@@ -4656,8 +4656,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.45>>
-%<<date=2020/06/10>>
+%<<version=3.45.2039>>
+%<<date=2020/06/15>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -11116,9 +11116,39 @@ help from Bernd Raichle, for which I am grateful.
\bbl at ifunset{bbl at prehc@#1}{}%
{\bbl at exp{\\\bbl at ifblank{\bbl at cs{prehc@#1}}}%
{}%
- {\bbl at csarg\bbl at add@list{lsys@#1}{HyphenChar="200B}}}%
+ {\ifx\bbl at xenohyph\@undefined
+ \let\bbl at xenohyph\bbl at xenohyph@d
+ \ifx\AtBeginDocument\@notprerr
+ \expandafter\@secondoftwo % to execute right now
+ \fi
+ \AtBeginDocument{%
+ \expandafter\bbl at add
+ \csname selectfont \endcsname{\bbl at xenohyph}%
+ \expandafter\bbl at toglobal\csname selectfont \endcsname}%
+ \fi}}%
\fi
\bbl at csarg\bbl at toglobal{lsys@#1}}
+\def\bbl at ifset#1#2#3{% TODO. Move to the correct place.
+ \bbl at ifunset{#1}{#3}{\bbl at exp{\\\bbl at ifblank{#1}}{#3}{#2}}}
+\def\bbl at xenohyph@d{%
+ \bbl at ifset{bbl at prehc@\languagename}%
+ {\ifnum\hyphenchar\font=\defaulthyphenchar
+ \iffontchar\font\bbl at cl{prehc}\relax
+ \hyphenchar\font\bbl at cl{prehc}\relax
+ \else\iffontchar\font"200B
+ \hyphenchar\font"200B
+ \else
+ \bbl at error
+ {Neither 0 nor ZERO WIDTH SPACE are available\\%
+ in the current font, and therefore the hyphen\\%
+ will be printed. Try with 'HyphenChar', but be\\%
+ aware this setting is not safe (see the manual).}%
+ {See the manual.}%
+ \hyphenchar\font\defaulthyphenchar
+ \fi\fi
+ \fi}%
+ {\hyphenchar\font\defaulthyphenchar}}
+ % \fi}
% \end{macrocode}
%
% The following |ini| reader ignores everything but the
@@ -21278,27 +21308,9 @@ Babel.cjk_breaks = {
}%
}
%
-\def\UseTextSymbol#1#2{%
-% \let\@curr at enc\cf at encoding
-% \@use at text@encoding{#1}%
- #2%
-% \@use at text@encoding\@curr at enc
-}
-\def\UseTextAccent#1#2#3{%
-% \let\@curr at enc\cf at encoding
-% \@use at text@encoding{#1}%
-% #2{\@use at text@encoding\@curr at enc\selectfont#3}%
-% \@use at text@encoding\@curr at enc
-}
-\def\@use at text@encoding#1{%
-% \edef\f at encoding{#1}%
-% \xdef\font at name{%
-% \csname\curr at fontshape/\f at size\endcsname
-% }%
-% \pickup at font
-% \font at name
-% \@@enc at update
-}
+\def\UseTextSymbol#1#2{#2}
+\def\UseTextAccent#1#2#3{}
+\def\@use at text@encoding#1{}
\def\DeclareTextSymbolDefault#1#2{%
\DeclareTextCommandDefault#1{\UseTextSymbol{#2}#1}%
}
diff --git a/babel.ins b/babel.ins
index a188dd1..9578add 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/06/10}
+\def\filedate{2020/06/15}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 6f4f2ec..cc5576b 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index dbfa43a..0a60967 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2020/06/10 v3.45]
+\ProvidesFile{bbcompat.dtx}[2020/06/15 v3.45.2039]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/locale/it/babel-it.ini b/locale/it/babel-it.ini
index 72d8c76..813731e 100644
--- a/locale/it/babel-it.ini
+++ b/locale/it/babel-it.ini
@@ -184,3 +184,5 @@ plusSign = +
superscriptingExponent = ×
[counters]
+lower.legal = a b c d e f g h i l m n o p q r s t u v z
+upper.legal = A B C D E F G H I L M N O P Q R S T U V Z
\ No newline at end of file
More information about the latex3-commits
mailing list.