[latex3-commits] [git/LaTeX3-latex3-latex2e] master: fix for issue #122 (cd09823)

Frank Mittelbach frank.mittelbach at latex-project.org
Wed Feb 6 16:37:31 CET 2019


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/cd0982388ab17df6e66b7d72ff4d4b13bb6d128a

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

commit cd0982388ab17df6e66b7d72ff4d4b13bb6d128a
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Feb 6 16:37:31 2019 +0100

    fix for issue #122


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

cd0982388ab17df6e66b7d72ff4d4b13bb6d128a
 base/changes.txt                      |    5 ++
 base/testfiles/github-0122.luatex.tlg |   59 ++++++++++++++++++++++
 base/testfiles/github-0122.lvt        |   25 ++++++++++
 base/testfiles/github-0122.tlg        |   88 +++++++++++++++++++++++++++++++++
 base/testfiles/github-0122.xetex.tlg  |   59 ++++++++++++++++++++++
 base/utf8ienc.dtx                     |    9 ++--
 6 files changed, 242 insertions(+), 3 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 182772e..e77592e 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 =======================================================================
 
+2019-02-06  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* utf8ienc.dtx (subsection{The mapping table}):
+	Fixed  U+012F which should have an i not a dottless i (github/122)
+
 2018-12-30  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* lttab.dtx (subsection{array and tabular environments}):
diff --git a/base/testfiles/github-0122.luatex.tlg b/base/testfiles/github-0122.luatex.tlg
new file mode 100644
index 0000000..94d0d55
--- /dev/null
+++ b/base/testfiles/github-0122.luatex.tlg
@@ -0,0 +1,59 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...i with ogonek as utf8 char U+012F (should be \k
+                                                   i): į (not in OT1)
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\setbox0\hbox{\k
+                    i =  į}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+> \box...=
+\hbox(6.67859+0.0)x17.22224, direction TLT
+.\OT1/cmr/m/n/10 i
+.\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111
+.\OT1/cmr/m/n/10 =
+.\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111
+.\OT1/cmr/m/n/10 į
+! OK.
+<to be read again> 
+}
+l. ...{\showoutput\showbox0}
+> \box...=
+\hbox(6.63332+1.94397)x17.21802, direction TLT
+.\vbox(6.63332+1.94397)x2.7771, direction TLT
+..\hbox(6.63332+0.0)x2.7771, direction TLT
+...\glue(\tabskip) 0.0
+...\hbox(6.63332+0.0)x2.7771, direction TLT
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\T1/cmr/m/n/10 i
+...\glue(\tabskip) 0.0
+..\glue(\baselineskip) 0.0
+..\hbox(0.0+1.94397)x2.7771, direction TLT
+...\glue(\tabskip) 0.0
+...\hbox(0.0+1.94397)x2.7771, glue set 1000.0fill, direction TLT
+....\glue -1000.0 plus 1.0fill
+....\T1/cmr/m/n/10 ^^L
+...\glue(\tabskip) 0.0
+.\glue(\spaceskip) 3.33252 plus 1.66626 minus 1.11084
+.\T1/cmr/m/n/10 =
+.\glue(\spaceskip) 3.33252 plus 1.66626 minus 1.11084
+.\T1/cmr/m/n/10 į
+! OK.
+<to be read again> 
+}
+l. ...{\showoutput\showbox0}
+[1
+Missing character: There is no į (U+012F) in font cmr10!
+Missing character: There is no į (U+012F) in font ecrm1000!
+] (github-0122.aux)
diff --git a/base/testfiles/github-0122.lvt b/base/testfiles/github-0122.lvt
new file mode 100644
index 0000000..49b7665
--- /dev/null
+++ b/base/testfiles/github-0122.lvt
@@ -0,0 +1,25 @@
+% this test file is pointless for unicode engines! as the unciode char doesn't fit into the encoding
+
+\documentclass{article}
+
+\input{test2e}
+
+\begin{document}
+
+\START
+
+
+i with ogonek as utf8 char U+012F (should be \k i): į (not in OT1)
+
+\setbox0\hbox{\k i =  į}
+{\showoutput\showbox0}
+
+\fontencoding{T1}\selectfont
+
+i with ogonek as utf8 char U+012F (should be \k i): į
+
+\setbox0\hbox{\k i =  į}
+{\showoutput\showbox0}
+  
+\end{document}
+ 
diff --git a/base/testfiles/github-0122.tlg b/base/testfiles/github-0122.tlg
new file mode 100644
index 0000000..ce7fb39
--- /dev/null
+++ b/base/testfiles/github-0122.tlg
@@ -0,0 +1,88 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ......h ogonek as utf8 char U+012F (should be \k
+                                                   i): ^^c4^^af (not in OT1)
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ......tf8 char U+012F (should be \k i): ^^c4^^af
+(not in OT1)
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\setbox0\hbox{\k
+                      i =  ^^c4^^af}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\setbox0\hbox{\k i =  ^^c4^^af
+                                   }
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+> \box...=
+\hbox(6.67859+0.0)x20.00003
+.\OT1/cmr/m/n/10 i
+.\glue 3.33333 plus 1.66666 minus 1.11111
+.\OT1/cmr/m/n/10 =
+.\glue 3.33333 plus 1.66666 minus 1.11111
+.\OT1/cmr/m/n/10 i
+! OK.
+<to be read again> 
+                   }
+l. ...{\showoutput\showbox0}
+> \box...=
+\hbox(6.63332+1.94397)x19.99512
+.\vbox(6.63332+1.94397)x2.7771
+..\hbox(6.63332+0.0)x2.7771
+...\glue(\tabskip) 0.0
+...\hbox(6.63332+0.0)x2.7771
+....\hbox(0.0+0.0)x0.0
+....\T1/cmr/m/n/10 i
+...\glue(\tabskip) 0.0
+..\glue(\baselineskip) 0.0
+..\hbox(0.0+1.94397)x2.7771
+...\glue(\tabskip) 0.0
+...\hbox(0.0+1.94397)x2.7771, glue set 1000.0fill
+....\glue -1000.0 plus 1.0fill
+....\T1/cmr/m/n/10 ^^L
+...\glue(\tabskip) 0.0
+.\glue 3.33252 plus 1.66626 minus 1.11084
+.\T1/cmr/m/n/10 =
+.\glue 3.33252 plus 1.66626 minus 1.11084
+.\vbox(6.63332+1.94397)x2.7771
+..\hbox(6.63332+0.0)x2.7771
+...\glue(\tabskip) 0.0
+...\hbox(6.63332+0.0)x2.7771
+....\hbox(0.0+0.0)x0.0
+....\T1/cmr/m/n/10 i
+...\glue(\tabskip) 0.0
+..\glue(\baselineskip) 0.0
+..\hbox(0.0+1.94397)x2.7771
+...\glue(\tabskip) 0.0
+...\hbox(0.0+1.94397)x2.7771, glue set 1000.0fill
+....\glue -1000.0 plus 1.0fill
+....\T1/cmr/m/n/10 ^^L
+...\glue(\tabskip) 0.0
+! OK.
+<to be read again> 
+                   }
+l. ...{\showoutput\showbox0}
+[1
+] (github-0122.aux)
diff --git a/base/testfiles/github-0122.xetex.tlg b/base/testfiles/github-0122.xetex.tlg
new file mode 100644
index 0000000..3a15de4
--- /dev/null
+++ b/base/testfiles/github-0122.xetex.tlg
@@ -0,0 +1,59 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ......h ogonek as utf8 char U+012F (should be \k
+                                                   i): į (not in OT1)
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+Missing character: There is no į in font cmr10!
+! LaTeX Error: Command \k unavailable in encoding OT1.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\setbox0\hbox{\k
+                      i =  į}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+Missing character: There is no į in font cmr10!
+> \box...=
+\hbox(6.67859+0.0)x17.22224
+.\OT1/cmr/m/n/10 i
+.\glue 3.33333 plus 1.66666 minus 1.11111
+.\OT1/cmr/m/n/10 =
+.\glue 3.33333 plus 1.66666 minus 1.11111
+! OK.
+<to be read again> 
+                   }
+l. ...{\showoutput\showbox0}
+Missing character: There is no į in font ecrm1000!
+Missing character: There is no į in font ecrm1000!
+> \box...=
+\hbox(6.63332+1.94397)x17.21802
+.\vbox(6.63332+1.94397)x2.7771
+..\hbox(6.63332+0.0)x2.7771
+...\glue(\tabskip) 0.0
+...\hbox(6.63332+0.0)x2.7771
+....\hbox(0.0+0.0)x0.0
+....\T1/cmr/m/n/10 i
+...\glue(\tabskip) 0.0
+..\glue(\baselineskip) 0.0
+..\hbox(0.0+1.94397)x2.7771
+...\glue(\tabskip) 0.0
+...\hbox(0.0+1.94397)x2.7771, glue set 1000.0fill
+....\glue -1000.0 plus 1.0fill
+....\T1/cmr/m/n/10 ^^L
+...\glue(\tabskip) 0.0
+.\glue 3.33252 plus 1.66626 minus 1.11084
+.\T1/cmr/m/n/10 =
+.\glue 3.33252 plus 1.66626 minus 1.11084
+! OK.
+<to be read again> 
+                   }
+l. ...{\showoutput\showbox0}
+[1
+] (github-0122.aux)
diff --git a/base/utf8ienc.dtx b/base/utf8ienc.dtx
index 993f59c..eb6b6ce 100644
--- a/base/utf8ienc.dtx
+++ b/base/utf8ienc.dtx
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright 1993-2018
+% Copyright 1993-2019
 % The LaTeX3 Project and any individual authors listed elsewhere
 % in this file.
 %
@@ -217,7 +217,7 @@
 %<+ts1> \ProvidesFile{ts1enc.dfu}
 %<+x2>  \ProvidesFile{x2enc.dfu}
 %<+all> \ProvidesFile{utf8enc.dfu}
-   [2018/10/05 v1.2f UTF-8 support for inputenc]
+   [2019/02/06 v1.2g UTF-8 support for inputenc]
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -1140,7 +1140,10 @@
 %<all,t1>\DeclareUnicodeCharacter{012C}{\u I}
 %<all,t1>\DeclareUnicodeCharacter{012D}{\u\i}
 %<all,t1>\DeclareUnicodeCharacter{012E}{\k I}
-%<all,t1>\DeclareUnicodeCharacter{012F}{\k\i}
+%    \end{macrocode}
+% \changes{v1.2g}{2019/02/06}{Corrected 012F (github/122)}
+%    \begin{macrocode}
+%<all,t1>\DeclareUnicodeCharacter{012F}{\k i}
 %<all,t1>\DeclareUnicodeCharacter{0130}{\.I}
 %<all,t2c,t2b,t2a,t1,ot2,ot1,ly1,lcy>\DeclareUnicodeCharacter{0131}{\i}
 %<all,t1>\DeclareUnicodeCharacter{0132}{\IJ}





More information about the latex3-commits mailing list