[latex3-commits] [git/LaTeX3-latex3-latex2e] gh568: change \ij to improve hyphenation with OT1 fonts (49074d70)

Frank Mittelbach frank.mittelbach at latex-project.org
Sun Sep 12 19:47:03 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh568
Link       : https://github.com/latex3/latex2e/commit/49074d707e91c86dd803bdcd67c153ff9fb5df77

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

commit 49074d707e91c86dd803bdcd67c153ff9fb5df77
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sun Sep 12 19:47:03 2021 +0200

    change \ij to improve hyphenation with OT1 fonts


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

49074d707e91c86dd803bdcd67c153ff9fb5df77
 base/changes.txt                      |  5 +++++
 base/doc/ltnews34.tex                 |  4 +++-
 base/ltoutenc.dtx                     | 10 +++++----
 base/testfiles-legacy/github-0658.tlg | 39 +++++++++++++++++++----------------
 4 files changed, 35 insertions(+), 23 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 4e98483c..561510d0 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2021-09-12  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltoutenc.dtx (subsection{Definitions for the OT1 encoding}):
+	Move zero skip between i and j for hyphenation (gh/658)
+
 2021-09-06  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltfinal.dtx (subsection{Lccodes and uccodes}):
diff --git a/base/doc/ltnews34.tex b/base/doc/ltnews34.tex
index 7b3d4156..4e4eef46 100644
--- a/base/doc/ltnews34.tex
+++ b/base/doc/ltnews34.tex
@@ -552,7 +552,9 @@ U+0132.
 However, when using \texttt{OT1} or \texttt{T1} encoded fonts in
 \pdfTeX, the upper or lower casing with \cs{MakeUppercase} and
 \cs{MakeLowercase} would always fail regardless of the input method.
-This has now been corrected.
+This has now been corrected. At the same time we improved the
+hyphenation results for words containing this ligature (when
+typesetting is done in \texttt{OT1} encoding).
 %
 \githubissue{658}
 
diff --git a/base/ltoutenc.dtx b/base/ltoutenc.dtx
index eb2ecd1e..14518d2f 100644
--- a/base/ltoutenc.dtx
+++ b/base/ltoutenc.dtx
@@ -44,7 +44,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltoutenc.dtx}
-             [2021/04/29 v2.0v LaTeX Kernel (font encodings)]
+             [2021/09/12 v2.0w LaTeX Kernel (font encodings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltoutenc.dtx}
@@ -1783,12 +1783,14 @@
 %      {Added \cs{ij} and \cs{IJ} from babel. (pr/3771)}
 %    The dutch language uses the letter `ij'. It is available in
 %    \texttt{T1} encoded fonts, but not in the \texttt{OT1} encoded
-%    fonts. Therefor we fake it for the \texttt{OT1} encoding.
+%    fonts. Therefore we fake it for the \texttt{OT1} encoding.
+% \changes{v2.0w}{2021/09/12}{Move zero skip between
+%        i and j for hyphenation (gh/658)}
 %    \begin{macrocode}
 \DeclareTextCommand{\ij}{OT1}{%
-  \nobreak\hskip\z at skip i\kern-0.02em j\nobreak\hskip\z at skip}
+  \nobreak\hskip\z at skip i\kern-0.02em\nobreak\hskip\z at skip j}
 \DeclareTextCommand{\IJ}{OT1}{%
-  \nobreak\hskip\z at skip I\kern-0.02em J\nobreak\hskip\z at skip}
+  \nobreak\hskip\z at skip I\kern-0.02em\nobreak\hskip\z at skip J}
 %    \end{macrocode}
 %    In the OT1 encoding, \pounds~and \$ share a slot.
 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode at bgroup} where applicable
diff --git a/base/testfiles-legacy/github-0658.tlg b/base/testfiles-legacy/github-0658.tlg
index 8ffc42eb..176150ea 100644
--- a/base/testfiles-legacy/github-0658.tlg
+++ b/base/testfiles-legacy/github-0658.tlg
@@ -11,15 +11,18 @@ Underfull \hbox (badness 10000) in paragraph at lines 18--18
 \hbox(6.94444+0.0)x6.0
 .\OT1/cmr/m/n/10 b
 .\glue(\rightskip) 0.0
-Overfull \hbox (6.29997pt too wide) in paragraph at lines 18--18
-\OT1/cmr/m/n/10 ij c
-\hbox(6.67859+1.94444)x6.0, glue set - 1.0
+Underfull \hbox (badness 10000) in paragraph at lines 18--18
+\OT1/cmr/m/n/10 ij
+\hbox(6.67859+1.94444)x6.0
 .\OT1/cmr/m/n/10 i
 .\kern -0.20004
-.\OT1/cmr/m/n/10 j
 .\penalty 10000
 .\glue 0.0
-.\glue 3.33333 plus 1.66666 minus 1.11111
+.\OT1/cmr/m/n/10 j
+.\glue(\rightskip) 0.0
+Underfull \hbox (badness 10000) in paragraph at lines 18--18
+\OT1/cmr/m/n/10 c
+\hbox(4.30554+0.0)x6.0
 .\OT1/cmr/m/n/10 c
 .\glue(\rightskip) 0.0
 LaTeX Font Info:    External font `cmex10' loaded for size
@@ -57,7 +60,7 @@ Completed box being shipped out [1]
 ....\hbox(0.0+0.0)x345.0
 ..\glue 25.0
 ..\glue(\lineskip) 0.0
-..\vbox(550.0+0.0)x345.0, glue set 378.5739fil
+..\vbox(550.0+0.0)x345.0, glue set 366.57518fil
 ...\write-{}
 ...\glue(\topskip) 3.16669
 ...\hbox(6.83331+1.94444)x345.0, glue set 312.48338fil
@@ -65,18 +68,17 @@ Completed box being shipped out [1]
 ....\glue 0.0
 ....\OT1/cmr/m/n/10 I
 ....\kern -0.20004
-....\OT1/cmr/m/n/10 J
 ....\penalty 10000
 ....\glue 0.0
+....\OT1/cmr/m/n/10 J
 ....\glue 3.33333 plus 1.66498 minus 1.11221
 ....\penalty 10000
 ....\glue 0.0
 ....\OT1/cmr/m/n/10 i
 ....\kern -0.20004
-....\OT1/cmr/m/n/10 j
 ....\penalty 10000
 ....\glue 0.0
-....\kern 0.0
+....\OT1/cmr/m/n/10 j
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
@@ -89,18 +91,17 @@ Completed box being shipped out [1]
 ....\glue 0.0
 ....\OT1/cmr/m/n/10 I
 ....\kern -0.20004
-....\OT1/cmr/m/n/10 J
 ....\penalty 10000
 ....\glue 0.0
+....\OT1/cmr/m/n/10 J
 ....\glue 3.33333 plus 1.66498 minus 1.11221
 ....\penalty 10000
 ....\glue 0.0
 ....\OT1/cmr/m/n/10 i
 ....\kern -0.20004
-....\OT1/cmr/m/n/10 j
 ....\penalty 10000
 ....\glue 0.0
-....\kern 0.0
+....\OT1/cmr/m/n/10 j
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
@@ -109,10 +110,10 @@ Completed box being shipped out [1]
 ...\glue(\parskip) 0.0 plus 1.0
 ...\glue(\parskip) 0.0
 ...\glue(\lineskip) 1.0
-...\hbox(22.65277+17.65277)x345.0, glue set 324.0fil
+...\hbox(28.65277+23.65277)x345.0, glue set 324.0fil
 ....\hbox(0.0+0.0)x15.0
 ....\mathon
-....\vbox(22.65277+17.65277)x6.0
+....\vbox(28.65277+23.65277)x6.0
 .....\hbox(4.30554+0.0)x6.0
 ......\hbox(0.0+0.0)x0.0
 ......\OT1/cmr/m/n/10 a
@@ -123,17 +124,19 @@ Completed box being shipped out [1]
 ......\OT1/cmr/m/n/10 b
 ......\glue(\rightskip) 0.0
 .....\glue(\baselineskip) 5.32141
-.....\hbox(6.67859+1.94444)x6.0, glue set - 1.0
+.....\hbox(6.67859+1.94444)x6.0
 ......\OT1/cmr/m/n/10 i
 ......\kern -0.20004
-......\OT1/cmr/m/n/10 j
 ......\penalty 10000
 ......\glue 0.0
-......\glue 3.33333 plus 1.66666 minus 1.11111
+......\OT1/cmr/m/n/10 j
+......\glue(\rightskip) 0.0
+.....\glue(\baselineskip) 5.75002
+.....\hbox(4.30554+0.0)x6.0
 ......\OT1/cmr/m/n/10 c
 ......\glue(\rightskip) 0.0
 .....\penalty 150
-.....\glue(\baselineskip) 3.11111
+.....\glue(\baselineskip) 5.05556
 .....\hbox(6.94444+0.0)x6.0, glue set 0.44443fil
 ......\OT1/cmr/m/n/10 d
 ......\penalty 10000





More information about the latex3-commits mailing list.