[latex3-commits] [git/LaTeX3-latex3-xxetex] main: strcmp from expl3.lua (5e93dcf)

David Carlisle d.p.carlisle at gmail.com
Sat Jan 28 12:32:16 CET 2023


Repository : https://github.com/latex3/xxetex
On branch  : main
Link       : https://github.com/latex3/xxetex/commit/5e93dcf58ba4e9b358a9db8ff71775c731c49dc1

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

commit 5e93dcf58ba4e9b358a9db8ff71775c731c49dc1
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Jan 28 11:32:16 2023 +0000

    strcmp from expl3.lua


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

5e93dcf58ba4e9b358a9db8ff71775c731c49dc1
 examples/{test-pdfxxx.tex => test-strcmp.tex} | 7 ++++---
 xxetex.tex                                    | 9 +++++++++
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/examples/test-pdfxxx.tex b/examples/test-strcmp.tex
similarity index 60%
copy from examples/test-pdfxxx.tex
copy to examples/test-strcmp.tex
index 83833cc..3b574ed 100644
--- a/examples/test-pdfxxx.tex
+++ b/examples/test-strcmp.tex
@@ -5,10 +5,11 @@
 \fi
 
 \documentclass{article}
-\pdfpageheight=3cm
-\pdfpagewidth=5cm
+
 \begin{document}
 
-x\pdfsavepos\write20{(\the\pdflastxpos,\the\pdflastypos)}
+\typeout{1: \strcmp{aaa}{aaa}}
+\typeout{2: \strcmp{aaa}{bbb}}
+\typeout{3: \strcmp{bbb}{aaa}}
 
 \end{document}
diff --git a/xxetex.tex b/xxetex.tex
index d079ade..e4f274f 100644
--- a/xxetex.tex
+++ b/xxetex.tex
@@ -89,6 +89,15 @@ end
 \let\pdflastxpos\lastxpos
 \let\pdflastypos\lastypos
 
+% from expl3.lua
+\ExplSyntaxOn
+\let \strcmp         \tex_strcmp:D
+\let \pdffilesize    \tex_filesize:D
+\let \pdfmdfivesum   \tex_mdfivesum:D
+\let \pdffilemoddate \tex_filemoddate:D
+\let \pdffiledump    \tex_filedump:D
+\ExplSyntaxOff
+
 %\catcode`\{=12
 %\catcode`\{=12
 \catcode`\@=12





More information about the latex3-commits mailing list.