From 4a12026e3d8354f2a5355c504a1e56506b1ac463 Mon Sep 17 00:00:00 2001 From: mirabilos <m@mirbsd.org> Date: Thu, 4 Oct 2018 17:18:00 +0200 Subject: [PATCH] force proper \UTFviii@hexcodepoint definition to be used --- unicodedomino_kernel_cosmetics.def | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/unicodedomino_kernel_cosmetics.def b/unicodedomino_kernel_cosmetics.def index 3a7de6b..3e14c83 100644 --- a/unicodedomino_kernel_cosmetics.def +++ b/unicodedomino_kernel_cosmetics.def @@ -22,19 +22,6 @@ %: merged \ifx\UTFviii@hexcodepoint\@undefined% - %: reverted partially, need to override - % format a number as Unicode codepoint hex - \gdef\UTFviii@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% - \UTFviii@hexnumber{#1}% - }% - % override message to format the codepoint correctly \gdef\UTFviii@splitcsname#1:#2\relax{% #2 (\expandafter\UTFviii@hexcodepoint\expandafter{% @@ -42,6 +29,19 @@ }% \fi% +%: reverted partially, override bogus definition +% format a number as Unicode codepoint hex +\gdef\UTFviii@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% + \UTFviii@hexnumber{#1}% +}% + %: https://github.com/latex3/latex2e/pull/62 % split an invalid byte sequence for output \ifx\UTFviii@splitseq\@undefined% -- GitLab