[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: extend UTF-8 support for issue #723 (#724) (05d6836e)
GitHub
noreply at github.com
Fri Dec 10 19:01:05 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/05d6836e4324e6bf1e08e9066d13a8bdf484063c
>---------------------------------------------------------------
commit 05d6836e4324e6bf1e08e9066d13a8bdf484063c
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Fri Dec 10 18:01:05 2021 +0000
extend UTF-8 support for issue #723 (#724)
* extend UTF-8 support for issue #723
* rollback tests
>---------------------------------------------------------------
05d6836e4324e6bf1e08e9066d13a8bdf484063c
base/changes.txt | 4 +++
base/doc/ltnews35.tex | 8 +++--
base/testfiles-legacy/github-0723.lvt | 22 ++++++++++++++
base/testfiles-legacy/github-0723.tlg | 34 ++++++++++++++++++++++
base/testfiles/github-0479-often.tlg | 9 ++++++
.../tlb-latexrelease-rollback-003-often.tlg | 9 ++++++
base/testfiles/tlb-rollback-004-often.tlg | 9 ++++++
base/testfiles/tlb-rollback-005.tlg | 9 ++++++
base/utf8ienc.dtx | 14 ++++++++-
9 files changed, 115 insertions(+), 3 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 51e6cea9..78e92345 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2021-12-10 David Carlisle <David.Carlisle at latex-project.org>
+
+ * utf8ienc.dtx: Add inputenc UTF-8 support for for Digraphs U_01C4-U+01CC
+
2021-12-09 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* proc.dtx (subsection{The page style}):
diff --git a/base/doc/ltnews35.tex b/base/doc/ltnews35.tex
index 02736853..faaa69e7 100644
--- a/base/doc/ltnews35.tex
+++ b/base/doc/ltnews35.tex
@@ -254,9 +254,13 @@ displaying different data in the footer line on recto and verso pages.
\githubissue{gh/704}
-\subsection{???}
+\subsection{Croatian character support}
%
-\githubissue{???}
+The default \pkg{inputenc} support has been extended to support the 9 characters
+D\v Z, D\v z, d\v z, LJ, Lj, lj, NJ, Nj, nj, input as single UTF-8 codepoints
+in the range U+01C4 to U+01CC.
+%
+\githubissue{gh/723}
diff --git a/base/testfiles-legacy/github-0723.lvt b/base/testfiles-legacy/github-0723.lvt
new file mode 100644
index 00000000..03bdc3b5
--- /dev/null
+++ b/base/testfiles-legacy/github-0723.lvt
@@ -0,0 +1,22 @@
+\documentclass{article}
+
+% test file for Croatian (and other South Slavic) diagraph characters
+% github #723
+\input{test2e}
+
+\usepackage[T1]{fontenc}
+
+
+
+\begin{document}
+\showoutput
+\START
+
+
+
+\sbox0{[DŽ.Dž.dž.LJ.Lj.lj.NJ.Nj.nj]}
+\showbox0
+
+
+\END
+
diff --git a/base/testfiles-legacy/github-0723.tlg b/base/testfiles-legacy/github-0723.tlg
new file mode 100644
index 00000000..c572cd94
--- /dev/null
+++ b/base/testfiles-legacy/github-0723.tlg
@@ -0,0 +1,34 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+> \box...=
+\hbox(8.91449+2.49939)x121.91467
+.\T1/cmr/m/n/10 [
+.\T1/cmr/m/n/10 D
+.\T1/cmr/m/n/10 ^^9a
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 D
+.\T1/cmr/m/n/10 ^^ba
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 d
+.\T1/cmr/m/n/10 ^^ba
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 L
+.\T1/cmr/m/n/10 J
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 L
+.\T1/cmr/m/n/10 j
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 l
+.\T1/cmr/m/n/10 j
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 N
+.\T1/cmr/m/n/10 J
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 N
+.\T1/cmr/m/n/10 j
+.\T1/cmr/m/n/10 .
+.\T1/cmr/m/n/10 n
+.\T1/cmr/m/n/10 j
+.\T1/cmr/m/n/10 ]
+! OK.
+l. ...\showbox0
diff --git a/base/testfiles/github-0479-often.tlg b/base/testfiles/github-0479-often.tlg
index 68538c56..1069baf3 100644
--- a/base/testfiles/github-0479-often.tlg
+++ b/base/testfiles/github-0479-often.tlg
@@ -938,6 +938,15 @@ File: t1enc.dfu ....-..-.. v... UTF-8 support
defining Unicode char U+017C (decimal 380)
defining Unicode char U+017D (decimal 381)
defining Unicode char U+017E (decimal 382)
+ defining Unicode char U+01C4 (decimal 452)
+ defining Unicode char U+01C5 (decimal 453)
+ defining Unicode char U+01C6 (decimal 454)
+ defining Unicode char U+01C7 (decimal 455)
+ defining Unicode char U+01C8 (decimal 456)
+ defining Unicode char U+01C9 (decimal 457)
+ defining Unicode char U+01CA (decimal 458)
+ defining Unicode char U+01CB (decimal 459)
+ defining Unicode char U+01CC (decimal 460)
defining Unicode char U+01CD (decimal 461)
defining Unicode char U+01CE (decimal 462)
defining Unicode char U+01CF (decimal 463)
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
index 91d0fb82..c306496b 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
@@ -1483,6 +1483,15 @@ File: t1enc.dfu ....-..-.. v... UTF-8 support
defining Unicode char U+017C (decimal 380)
defining Unicode char U+017D (decimal 381)
defining Unicode char U+017E (decimal 382)
+ defining Unicode char U+01C4 (decimal 452)
+ defining Unicode char U+01C5 (decimal 453)
+ defining Unicode char U+01C6 (decimal 454)
+ defining Unicode char U+01C7 (decimal 455)
+ defining Unicode char U+01C8 (decimal 456)
+ defining Unicode char U+01C9 (decimal 457)
+ defining Unicode char U+01CA (decimal 458)
+ defining Unicode char U+01CB (decimal 459)
+ defining Unicode char U+01CC (decimal 460)
defining Unicode char U+01CD (decimal 461)
defining Unicode char U+01CE (decimal 462)
defining Unicode char U+01CF (decimal 463)
diff --git a/base/testfiles/tlb-rollback-004-often.tlg b/base/testfiles/tlb-rollback-004-often.tlg
index 7586b7f8..f23772a7 100644
--- a/base/testfiles/tlb-rollback-004-often.tlg
+++ b/base/testfiles/tlb-rollback-004-often.tlg
@@ -935,6 +935,15 @@ File: t1enc.dfu ....-..-.. v... UTF-8 support
defining Unicode char U+017C (decimal 380)
defining Unicode char U+017D (decimal 381)
defining Unicode char U+017E (decimal 382)
+ defining Unicode char U+01C4 (decimal 452)
+ defining Unicode char U+01C5 (decimal 453)
+ defining Unicode char U+01C6 (decimal 454)
+ defining Unicode char U+01C7 (decimal 455)
+ defining Unicode char U+01C8 (decimal 456)
+ defining Unicode char U+01C9 (decimal 457)
+ defining Unicode char U+01CA (decimal 458)
+ defining Unicode char U+01CB (decimal 459)
+ defining Unicode char U+01CC (decimal 460)
defining Unicode char U+01CD (decimal 461)
defining Unicode char U+01CE (decimal 462)
defining Unicode char U+01CF (decimal 463)
diff --git a/base/testfiles/tlb-rollback-005.tlg b/base/testfiles/tlb-rollback-005.tlg
index 1be72076..b4c3ec60 100644
--- a/base/testfiles/tlb-rollback-005.tlg
+++ b/base/testfiles/tlb-rollback-005.tlg
@@ -942,6 +942,15 @@ File: t1enc.dfu ....-..-.. v... UTF-8 support
defining Unicode char U+017C (decimal 380)
defining Unicode char U+017D (decimal 381)
defining Unicode char U+017E (decimal 382)
+ defining Unicode char U+01C4 (decimal 452)
+ defining Unicode char U+01C5 (decimal 453)
+ defining Unicode char U+01C6 (decimal 454)
+ defining Unicode char U+01C7 (decimal 455)
+ defining Unicode char U+01C8 (decimal 456)
+ defining Unicode char U+01C9 (decimal 457)
+ defining Unicode char U+01CA (decimal 458)
+ defining Unicode char U+01CB (decimal 459)
+ defining Unicode char U+01CC (decimal 460)
defining Unicode char U+01CD (decimal 461)
defining Unicode char U+01CE (decimal 462)
defining Unicode char U+01CF (decimal 463)
diff --git a/base/utf8ienc.dtx b/base/utf8ienc.dtx
index 438edb70..1067a7e6 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> [2021/06/21 v1.2n UTF-8 support]
+%<-utf8-2018> [2021/12/10 v1.2n UTF-8 support]
% \end{macrocode}
%
% \begin{macrocode}
@@ -1368,6 +1368,18 @@
%<all,t1,ly1>\DeclareUnicodeCharacter{017E}{\v z}
%<all,ts1,ly1>\DeclareUnicodeCharacter{0192}{\textflorin}
% \end{macrocode}
+% \changes{v1.2n}{2021/12/10}{add 01C4-01CC}
+% \begin{macrocode}
+%<all,t1>\DeclareUnicodeCharacter{01C4}{D\v Z}
+%<all,t1>\DeclareUnicodeCharacter{01C5}{D\v z}
+%<all,t1>\DeclareUnicodeCharacter{01C6}{d\v z}
+%<all,t1>\DeclareUnicodeCharacter{01C7}{LJ}
+%<all,t1>\DeclareUnicodeCharacter{01C8}{Lj}
+%<all,t1>\DeclareUnicodeCharacter{01C9}{lj}
+%<all,t1>\DeclareUnicodeCharacter{01CA}{NJ}
+%<all,t1>\DeclareUnicodeCharacter{01CB}{Nj}
+%<all,t1>\DeclareUnicodeCharacter{01CC}{nj}
+% \end{macrocode}
% \changes{v1.1s}{2016/01/11}{add 01CD-01F4}
% \begin{macrocode}
%<all,t1>\DeclareUnicodeCharacter{01CD}{\v A}
More information about the latex3-commits
mailing list.