[latex3-commits] [git/LaTeX3-latex3-latex2e] master: use U+ again for large values as discussed in PR #63 (b2ba1ff)

David Carlisle d.p.carlisle at gmail.com
Sun Sep 30 23:31:46 CEST 2018


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

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

commit b2ba1ff8a9bb83ac4397b9c5457c8a2b373234ce
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Sep 30 22:31:46 2018 +0100

    use U+ again for large values as discussed in PR #63


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

b2ba1ff8a9bb83ac4397b9c5457c8a2b373234ce
 base/testfiles/github-0060.tlg      |    2 +-
 base/testfiles/tlb-inputenc-001.tlg |    4 ++--
 base/utf8ienc.dtx                   |   12 ++++--------
 3 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/base/testfiles/github-0060.tlg b/base/testfiles/github-0060.tlg
index ba7569d..981f315 100644
--- a/base/testfiles/github-0060.tlg
+++ b/base/testfiles/github-0060.tlg
@@ -17,7 +17,7 @@ MAX VALUE!!
 ===110FFF
 TOO BIG!!
 ===110FFE
-! Package inputenc Error: Unicode character ^^f4^^90^^bf^^be (U-00110FFE)
+! Package inputenc Error: Unicode character ^^f4^^90^^bf^^be (U+110FFE)
 (inputenc)                not set up for use with LaTeX.
 See the inputenc package documentation for explanation.
 Type  H <return>  for immediate help.
diff --git a/base/testfiles/tlb-inputenc-001.tlg b/base/testfiles/tlb-inputenc-001.tlg
index 938993b..bbacfb8 100644
--- a/base/testfiles/tlb-inputenc-001.tlg
+++ b/base/testfiles/tlb-inputenc-001.tlg
@@ -33,7 +33,7 @@ l. ...comb acute U+0301 [^^cc^^81
                                 ]
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^f0^^9d^^94^^84 (U-0001D504)
+! Package inputenc Error: Unicode character ^^f0^^9d^^94^^84 (U+1D504)
 (inputenc)                not set up for use with LaTeX.
 See the inputenc package documentation for explanation.
 Type  H <return>  for immediate help.
@@ -43,4 +43,4 @@ l. ...fraktur A [^^f0^^9d^^94^^84
 You may provide a definition with
 \DeclareUnicodeCharacter 
 a\IeC {\nobreakspace }nbsp
-Fraktur A [\GenericError {(inputenc)                }{Package inputenc Error: Unicode character ^^f0^^9d^^94^^84 (U-0001D504)\MessageBreak not set up for use with LaTeX}{See the inputenc package documentation for explanation.}{You may provide a definition with\MessageBreak \DeclareUnicodeCharacter }]
+Fraktur A [\GenericError {(inputenc)                }{Package inputenc Error: Unicode character ^^f0^^9d^^94^^84 (U+1D504)\MessageBreak not set up for use with LaTeX}{See the inputenc package documentation for explanation.}{You may provide a definition with\MessageBreak \DeclareUnicodeCharacter }]
diff --git a/base/utf8ienc.dtx b/base/utf8ienc.dtx
index 3279380..5f5f7c9 100644
--- a/base/utf8ienc.dtx
+++ b/base/utf8ienc.dtx
@@ -813,14 +813,10 @@
 %    Split a csname representing a unicode character and return
 %    the character and the unicode number in hex.
 %    \begin{macrocode}
-\gdef\UTFviii at hexcodepoint#1{%
- \ifnum#1<16 U+000%
- \else\ifnum#1<256 U+00%
- \else\ifnum#1<4096 U+0%
- \else\ifnum#1<65536 U+%
- \else\ifnum#1<1048576 U-000%
- \else U-00%
- \fi\fi\fi\fi\fi%
+\gdef\UTFviii at hexcodepoint#1{U+%
+ \ifnum#1<16 0\fi
+ \ifnum#1<256 0\fi
+ \ifnum#1<4096 0\fi
  \UTFviii at hexnumber{#1}%
 }%
 \gdef\UTFviii at splitcsname#1:#2\relax{%





More information about the latex3-commits mailing list