Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New \codepoint_(str_)generate:n(n) functions
- Loading branch information
1 parent
3da1507
commit d4f3d9b
Showing
7 changed files
with
241 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
This is a generated file for the LaTeX (2e + expl3) validation system. | ||
Don't change this file in any respect. | ||
Author: Joseph Wright | ||
============================================================ | ||
TEST 1: Codepoint to chars | ||
============================================================ | ||
AA | ||
AA | ||
^^ad^^ad | ||
įį | ||
ͰͰ | ||
ԠԠ | ||
પપ | ||
ᄤᄤ | ||
𐀉𐀉 | ||
============================================================ | ||
============================================================ | ||
TEST 2: Spaces | ||
============================================================ | ||
X X | ||
X X | ||
XaX | ||
============================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
% | ||
% Copyright (C) 2022 The LaTeX Project | ||
% | ||
\documentclass{minimal} | ||
\input{regression-test} | ||
\RequirePackage[enable-debug]{expl3} | ||
\ExplSyntaxOn | ||
\debug_on:n { check-declarations , deprecation , log-functions } | ||
\ExplSyntaxOff | ||
|
||
\begin{document} | ||
|
||
\START | ||
\AUTHOR{Joseph Wright} | ||
\ExplSyntaxOn | ||
|
||
\OMIT | ||
\cs_set:Npn \test:nn #1#2 | ||
{ | ||
\codepoint_generate:nn {#1} {#2} | ||
\codepoint_str_generate:n {#1} | ||
} | ||
\TIMO | ||
|
||
\TESTEXP { Codepoint~to~chars } | ||
{ | ||
\test:nn { "0041 } { 11 } \NEWLINE | ||
\test:nn { "0041 } { 12 } \NEWLINE | ||
\test:nn { "00AD } { 12 } \NEWLINE | ||
\test:nn { "012F } { 11 } \NEWLINE | ||
\test:nn { "0370 } { 11 } \NEWLINE | ||
\test:nn { "0520 } { 11 } \NEWLINE | ||
\test:nn { "0AAA } { 11 } \NEWLINE | ||
\test:nn { "1124 } { 11 } \NEWLINE | ||
\test:nn { "10009 } { 11 } \NEWLINE | ||
} | ||
|
||
\TESTEXP { Spaces } | ||
{ | ||
X \codepoint_generate:nn { 32 } { 11 } X \NEWLINE | ||
X \codepoint_generate:nn { 32 } { 12 } X \NEWLINE | ||
X \codepoint_generate:nn { 97 } { 10 } X \NEWLINE | ||
} | ||
|
||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
This is a generated file for the LaTeX (2e + expl3) validation system. | ||
Don't change this file in any respect. | ||
Author: Joseph Wright | ||
============================================================ | ||
TEST 1: Codepoint to chars | ||
============================================================ | ||
AA | ||
AA | ||
^^c2^^ad^^c2^^ad | ||
^^c4^^af^^c4^^af | ||
^^cd^^b0^^cd^^b0 | ||
^^d4^^a0^^d4^^a0 | ||
^^e0^^aa^^aa^^e0^^aa^^aa | ||
^^e1^^84^^a4^^e1^^84^^a4 | ||
^^f0^^90^^80^^89^^f0^^90^^80^^89 | ||
============================================================ | ||
============================================================ | ||
TEST 2: Spaces | ||
============================================================ | ||
X X | ||
X X | ||
XaX | ||
============================================================ |
Oops, something went wrong.