Skip to content
Snippets Groups Projects
Verified Commit 5d9df9aa authored by mirabilos's avatar mirabilos Committed by mirabilos
Browse files

fix for six-nybble codepoints

parent a3b6d4e7
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,9 @@ ...@@ -40,7 +40,9 @@
% nicer printing of codepoint hex numbers, not strictly necessary % nicer printing of codepoint hex numbers, not strictly necessary
\def\unicodedomino@codepoint#1{% \def\unicodedomino@codepoint#1{%
\ifnum#1>65535% \ifnum#1>1048575%
U-00%
\else\ifnum#1>65535%
U-000% U-000%
\else\ifnum#1>4095% \else\ifnum#1>4095%
U+% U+%
...@@ -48,7 +50,7 @@ ...@@ -48,7 +50,7 @@
U+0% U+0%
\else% \else%
U+00% U+00%
\fi\fi\fi% \fi\fi\fi\fi%
\expandafter\UTFviii@hexnumber\expandafter{#1}% \expandafter\UTFviii@hexnumber\expandafter{#1}%
}% }%
...@@ -85,17 +87,18 @@ ...@@ -85,17 +87,18 @@
}% }%
% expand all hex nybbles, zero-padded % expand all hex nybbles, zero-padded
\def\unicodedomino@hex@ll#1{% \def\unicodedomino@hex@ll#1{%
\ifnum#1<1048576 0.\fi%
\ifnum#1<65536 0.\fi% \ifnum#1<65536 0.\fi%
\ifnum#1<4096 0.\fi% \ifnum#1<4096 0.\fi%
\ifnum#1<256 0.\fi% \ifnum#1<256 0.\fi%
\expandafter\unicodedomino@hex@ne\expandafter{#1}% \expandafter\unicodedomino@hex@ne\expandafter{#1}%
}% }%
% call the appropriate box function % call the appropriate box function
\def\unicodedomino@hex@do#1.#2.#3.#4.#5.{% \def\unicodedomino@hex@do#1.#2.#3.#4.#5.#6.{%
\ifnum#1>0% \ifnum"#1#2=0%
\unicodedomino@box{0#1#2}{#3#4#5}% \unicodedomino@box{#3#4}{#5#6}%
\else% \else%
\unicodedomino@box{#2#3}{#4#5}% \unicodedomino@box{#1#2#3}{#4#5#6}%
\fi% \fi%
}% }%
% split nybbles and pass on % split nybbles and pass on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment