[latex3-commits] [git/LaTeX3-latex3-latex2e] softhyphen: Update news, changes, etc. (b6481e65)

Marcel Fabian Krüger tex at 2krueger.de
Fri Apr 24 01:41:24 CEST 2020


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

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

commit b6481e650028176bf3999badd1d42e98940b0826
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Apr 24 01:41:24 2020 +0200

    Update news, changes, etc.


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

b6481e650028176bf3999badd1d42e98940b0826
 base/changes.txt      | 10 ++++++++--
 base/doc/ltnews32.tex | 16 +++++++++-------
 base/inputenc.dtx     | 13 ++++++++++++-
 base/utf8ienc.dtx     |  3 ++-
 4 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 8732e08e..e2a0a8c9 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -1,7 +1,13 @@
-2020-04-15  Marcel Krüger    <Marcel.Krueger at latex-project.org>
+2020-04-24  Marcel Krüger     <Marcel.Krueger at latex-project.org>
 
   * ltspace.dtx:
-  Make Unicode softhyphen U+00AD active and defined as \-.
+  Add \textsofthyphen and make U+00AD active and defined as \- for
+  Unicode engines.
+  * inputenc.dtx:
+  Use \textsofthyphen instead of \- as definition for softhyphen codepoints.
+  * utf8ienc.dtx:
+  Use \textsofthyphen instead of \- as definition for U+00AD.
+
 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 4f777cfb..5e51ab3e 100644
--- a/base/doc/ltnews32.tex
+++ b/base/doc/ltnews32.tex
@@ -414,15 +414,17 @@ processed as part of the formula.
 \githubissue{5}
 
 
+\subsection{Changes to direct input of softhyphens}
 
-\subsection{Add support for Unicode soft hyphens}
+Traditionally, \pkg{inputenc} defined softhyphen input ``characters''
+to correspond to \cs{-} such that these are treated as soft hyphens in
+\LaTeX. Especially for Unicode input, this is not always desirable.
+Therefore a separate command \cs{textsofthyphen} has been introduced to
+allow \LaTeX\ to differentiate between softhyphens inserted through
+softhyphen codepoints and softhyphens requested through \LaTeX's \cs{-}.
 
-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 |\-|.
+Also support for handling Unicode softhyphens has been added for the Unicode
+based engines \XeTeX\ and \LuaTeX.
 
 
 
diff --git a/base/inputenc.dtx b/base/inputenc.dtx
index 53c34fa3..0c9e27d0 100644
--- a/base/inputenc.dtx
+++ b/base/inputenc.dtx
@@ -410,7 +410,7 @@
 %<cp1252&!ansinew>  \ProvidesFile{cp1252.def}
 %<cp1250>  \ProvidesFile{cp1250.def}
 %<cp1257>  \ProvidesFile{cp1257.def}
-   [2020/04/14 v1.3c Input encoding file]
+   [2020/04/24 v1.3d Input encoding file]
 %<cp850>%%
 %<cp850>%% If you need a Euro symbol, try cp858 instead.
 %<cp850>%%
@@ -941,6 +941,7 @@
 % \changes{v0.91}{1997/08/19}{Replaced \cs{dh}/\cs{DH} by
 %    \cs{dj}/\cs{DJ}.}
 % \changes{v0.94}{1997/12/17}{Changed 176 to \cs{textdegree}}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %
 %    \begin{macrocode}
 %<*latin2>
@@ -1061,6 +1062,8 @@
 % Afrikaans, Catalan, English, Esperanto, French, Galician, German,
 % Italian, Maltese, and Turkish.
 %
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
+%
 %    \begin{macrocode}
 %<*latin3>
 \DeclareInputText{160}{\nobreakspace}
@@ -1186,6 +1189,7 @@
 %
 % \changes{v0.999}{2001/06/04}{Added \cs{textkra}, \cs{texttstroke} and
 %                              \cs{textTstroke} (pr/3336)}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %    \begin{macrocode}
 %<*latin4>
 \DeclareInputText{160}{\nobreakspace}
@@ -1301,6 +1305,7 @@
 % It was contributed by H.~Turgut Uyar (\texttt{uyar at cs.itu.edu.tr});
 % it is used for Turkish.
 %
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %    \begin{macrocode}
 %<*latin5>
 \DeclareInputText{160}{\nobreakspace}
@@ -1528,6 +1533,7 @@
 %    Christian Bartels}
 % \changes{v0.9s}{1995/08/31}
 %      {Swapped ordfeminine and masculine. /2203}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %
 %    \begin{macrocode}
 %<*cp850|cp858>
@@ -1663,6 +1669,7 @@
 % \changes{v0.91}{1997/08/19}{Replaced \cs{dh}/\cs{DH} by
 %    \cs{dj}/\cs{DJ}.}
 % \changes{v0.99}{1999/04/14}{Changed 212, see pr/2992}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %
 %    \begin{macrocode}
 %<*cp852>
@@ -2432,6 +2439,7 @@
 % \changes{v0.99a}{2001/07/10}{Added latin9 (from Karsten Tinnefeld)}
 % \changes{v0.99b}{2002/06/16}{Added code points 142,158 for cp1252 (pr/3441)}
 % \changes{v0.99b}{2002/07/08}{Added code 128 (texteuro) for cp1252 (pr/3423)}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %
 %    \begin{macrocode}
 %<*cp1252>
@@ -2643,6 +2651,7 @@
 % \changes{v1.0g}{2004/05/22}{Changed \cs{textpm} to \cs{pm}}
 % \changes{v1.1b}{2006/03/03}{Reverted back to \cs{textpm}
 %    for consistency.}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %    \begin{macrocode}
 \DeclareInputText{160}{\nobreakspace}
 \DeclareInputText{161}{\k A}
@@ -2765,6 +2774,7 @@
 % \changes{v0.94}{1997/12/17}{Changed \cs{textsection} to \cs{S}
 %    for consistency.}
 % \changes{v0.99b}{2002/07/28}{Added code 128 (texteuro) for cp1250}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %    \begin{macrocode}
 %<*cp1250>
 \DeclareInputText{128}{\texteuro}
@@ -2918,6 +2928,7 @@
 %    \texttt{http://www.microsoft.com/globaldev/reference/sbcs/1257.mspx}.
 %
 % \changes{v1.1b}{2006/03/03}{Large number of corrections (pr/3849)}
+% \changes{v1.3d}{2020/04/24}{Replaced \cs{-} by \cs{textsofthyphen}}
 %    \begin{macrocode}
 %<*cp1257>
 \DeclareInputText{128}{\texteuro}
diff --git a/base/utf8ienc.dtx b/base/utf8ienc.dtx
index 20946e7d..70c13fd8 100644
--- a/base/utf8ienc.dtx
+++ b/base/utf8ienc.dtx
@@ -216,7 +216,7 @@
 %<+ts1> \ProvidesFile{ts1enc.dfu}
 %<+x2>  \ProvidesFile{x2enc.dfu}
 %<+all> \ProvidesFile{utf8enc.dfu}
-%<-utf8-2018>   [2019/11/14 v1.2k UTF-8 support for inputenc]
+%<-utf8-2018>   [2020/04/24 v1.2l UTF-8 support for inputenc]
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -1137,6 +1137,7 @@
 % \changes{v1.1r}{2015/12/03}{Add some more ogoneck cases}
 % \changes{v1.1s}{2016/01/11}{Add some more caron and acute}
 % \changes{v1.1t}{2017/01/28}{Add caron cominations for GgYy}
+% \changes{v1.2l}{2020/04/24}{Change U+00AD to use \cs{textsofthyphen} instead of \cs{-} directly}
 %    \begin{macrocode}
 %<all,t1,ot1,ly1>\DeclareUnicodeCharacter{00A0}{\nobreakspace}
 %<all,t1,ot1,ly1>\DeclareUnicodeCharacter{00A1}{\textexclamdown}





More information about the latex3-commits mailing list.