[latex3-commits] [git/LaTeX3-latex3-latex2e] gh404: changes based on feedback (4711e737)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Feb 19 22:28:55 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh404
Link       : https://github.com/latex3/latex2e/commit/4711e737c8cd48899bb365d382ad8fbda79eb29a

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

commit 4711e737c8cd48899bb365d382ad8fbda79eb29a
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Feb 19 22:28:55 2021 +0100

    changes based on feedback


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

4711e737c8cd48899bb365d382ad8fbda79eb29a
 base/ltoutenc.dtx | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/base/ltoutenc.dtx b/base/ltoutenc.dtx
index 08b0fb62..bd8ace65 100644
--- a/base/ltoutenc.dtx
+++ b/base/ltoutenc.dtx
@@ -1723,7 +1723,7 @@
 %    \begin{macrocode}
 \DeclareTextCommand{\textnonbreakinghyphen}{OT1}{\mbox{-}\hskip\z@}
 \DeclareTextCommand{\textfiguredash}       {OT1}{\textendash}
-\DeclareTextCommand{\texthorizontalbar}    {OT1}{\textemdash\textemdash}
+\DeclareTextCommand{\texthorizontalbar}    {OT1}{\textemdash}
 %    \end{macrocode}
 %
 %    Using the ligatures helps with OT1 fonts that have
@@ -2061,7 +2061,7 @@
 %    \begin{macrocode}
 \DeclareTextCommand{\textnonbreakinghyphen}{T1}{\mbox{-}\hskip\z@}
 \DeclareTextCommand{\textfiguredash}       {T1}{\textendash}
-\DeclareTextCommand{\texthorizontalbar}    {T1}{\textemdash\textemdash}
+\DeclareTextCommand{\texthorizontalbar}    {T1}{\textemdash}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -3154,21 +3154,23 @@
 % \changes{v2.0u}{2021/02/19}{Add \cs{textnonbreakinghyphen}, \cs{textfiguredash}
 %      and \cs{texthorizontalbar} (gh/404)}
 %    \begin{macrocode}
-\DeclareTextSymbol{\textnonbreakinghyphen} \UnicodeEncodingName{"2011}
-%\DeclareTextSymbol{\textfiguredash}      \UnicodeEncodingName{"2012}
+%\DeclareTextSymbol{\textnonbreakinghyphen} \UnicodeEncodingName{"2011}
+%\DeclareTextSymbol{\textfiguredash}        \UnicodeEncodingName{"2012}
 \DeclareTextSymbol{\textendash}          \UnicodeEncodingName{"2013}
 \DeclareTextSymbol{\textemdash}          \UnicodeEncodingName{"2014}
 %\DeclareTextSymbol{\texthorizontalbar}   \UnicodeEncodingName{"2015}
 %    \end{macrocode}
-%    Unfortunately many fonts do not implement \texttt{"2012} and/or
+%    Unfortunately some fonts do not implement \texttt{"2011}, \texttt{"2012} and/or
 %    \texttt{"2015} (including the \LaTeX{} default fonts for Unicode
 %    engines) so we provide some approximations if the glyph is
 %    missing, like we do for \texttt{OT1} and \texttt{T1}.
 %    \begin{macrocode}
+\DeclareTextCommand{\textnonbreakinghyphen} \UnicodeEncodingName
+     {\iffontchar\font "2011 \char "2011 \else \mbox{-}\hskip\z@ \fi}
 \DeclareTextCommand{\textfiguredash}     \UnicodeEncodingName
      {\iffontchar\font "2012 \char "2012 \else \char "2013 \fi}
 \DeclareTextCommand{\texthorizontalbar}     \UnicodeEncodingName
-     {\iffontchar\font "2015 \char "2015 \else \char "2014 \char "2014 \fi}
+     {\iffontchar\font "2015 \char "2015 \else \char "2014 \fi}
 %    \end{macrocode}
 %    
 %    \begin{macrocode}





More information about the latex3-commits mailing list.