[latex3-commits] [git/LaTeX3-latex3-latex2e] softhyphen: Make ^^ad active in Unicode engines (7480c71d)

Marcel Fabian Krüger tex at 2krueger.de
Wed Apr 15 21:07:08 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : softhyphen
Link       : https://github.com/latex3/latex2e/commit/7480c71d8f6b4962628e2a5aaee31158eb7a8f07

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

commit 7480c71d8f6b4962628e2a5aaee31158eb7a8f07
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Apr 11 21:12:54 2020 +0200

    Make ^^ad active in Unicode engines


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

7480c71d8f6b4962628e2a5aaee31158eb7a8f07
 base/changes.txt      |  4 ++++
 base/doc/ltnews32.tex | 11 +++++++++++
 base/ltspace.dtx      | 14 +++++++++++++-
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/base/changes.txt b/base/changes.txt
index 12d19489..8732e08e 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -1,3 +1,7 @@
+2020-04-15  Marcel Krüger    <Marcel.Krueger at latex-project.org>
+
+  * ltspace.dtx:
+  Make Unicode softhyphen U+00AD active and defined as \-.
 2020-04-13  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltfssini.dtx (subsection{Miscellaneous}):
diff --git a/base/doc/ltnews32.tex b/base/doc/ltnews32.tex
index 86a3d4fd..4f777cfb 100644
--- a/base/doc/ltnews32.tex
+++ b/base/doc/ltnews32.tex
@@ -415,6 +415,17 @@ processed as part of the formula.
 
 
 
+\subsection{Add support for Unicode soft hyphens}
+
+For a long time, the UTF-8 option for \pkg{inputenc} made the Unicode
+soft hyphen character (U+00AD) an alias for the \LaTeX\ soft hyphen
+|\-|. The Unicode engines \XeTeX{} and \LuaTeX{} behaved
+different though: They either ignored U+00AD or interpreted it as an
+unconditional hyphen. This inconsistency is fixed now and \LaTeX{}
+always treats \texttt{U+00AD} as |\-|.
+
+
+
 \begin{thebibliography}{9}
 
 \fontsize{9.3}{11.3}\selectfont
diff --git a/base/ltspace.dtx b/base/ltspace.dtx
index 1460ef5b..93e152a2 100644
--- a/base/ltspace.dtx
+++ b/base/ltspace.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltspace.dtx}
-             [2020/03/07 v1.3l LaTeX Kernel (spacing)]
+             [2020/04/15 v1.3m LaTeX Kernel (spacing)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltspace.dtx}
@@ -1218,6 +1218,18 @@
 % \end{macro}
 % \end{macro}
 %
+% \changes{v1.3m}{2020/04/15}{Made softhyphen active in TU engines}
+%
+%   For Unicode engines, make the Unicode soft hyphen an active
+%   character defined as \cs{-}.
+%
+%    \begin{macrocode}
+\ifx\Umathcode\@undefined\else
+  \catcode "AD=13
+  \def^^ad{\-}
+\fi
+%    \end{macrocode}
+%
 % \begin{macro}{\obeycr}
 % \begin{macro}{\restorecr}
 % The following definitions will probably get deleted or moved to





More information about the latex3-commits mailing list.