[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: add environment to hash (608453a3)
github at latex-project.org
github at latex-project.org
Tue Jan 23 21:13:10 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : latex-lab/uf-review-05
Link : https://github.com/latex3/latex2e/commit/608453a35e4755c0eb352cdac04e4aac8537f192
>---------------------------------------------------------------
commit 608453a35e4755c0eb352cdac04e4aac8537f192
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Jan 23 21:13:10 2024 +0100
add environment to hash
>---------------------------------------------------------------
608453a35e4755c0eb352cdac04e4aac8537f192
required/latex-lab/latex-lab-math.dtx | 4 +--
.../latex-lab/testfiles-math/mathml-AF-ex1.tlg | 8 ++---
.../latex-lab/testfiles-math/mathml-AF-hash.lvt | 24 ++++++++++++++
.../latex-lab/testfiles-math/mathml-AF-hash.tlg | 37 ++++++++++++++++++++++
.../support/mathml-AF-ex1-mathml.html | 8 ++---
5 files changed, 71 insertions(+), 10 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index c2aa236c..c463f824 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -1113,7 +1113,7 @@
{
\int_gincr:N\g_@@_AF_total_int
\tl_set:Ne\l_@@_content_hash_tl
- {\str_mdfive_hash:o { \g_@@_grabbed_math_tl }}
+ {\str_mdfive_hash:o { \l_@@_content_AF_source_tl }}
\tl_set_eq:NN\l_@@_grabbed_math_tl\g_@@_grabbed_math_tl
\tl_if_eq:NnTF\g_@@_grabbed_env_tl {math}
{
@@ -1131,7 +1131,7 @@
\typeout {Inserting~mathml~with~Hash~\l_@@_content_hash_tl}
}
{
- \typeout{WARNING:~mathml~missing~for~hash\l_@@_content_hash_tl}
+ \typeout{WARNING:~mathml~missing~for~hash~\l_@@_content_hash_tl}
}
\socket_use:n {tagsupport/math/mathml/write} % write hash if request
\tag_struct_begin:n
diff --git a/required/latex-lab/testfiles-math/mathml-AF-ex1.tlg b/required/latex-lab/testfiles-math/mathml-AF-ex1.tlg
index a4e0575f..eb2cde45 100644
--- a/required/latex-lab/testfiles-math/mathml-AF-ex1.tlg
+++ b/required/latex-lab/testfiles-math/mathml-AF-ex1.tlg
@@ -1,15 +1,15 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
-Inserting mathml with Hash 9DD4E461268C8034F5C8564E155C67A6
+Inserting mathml with Hash 2E57D15A2BFC6C28A1A717AA4169EDDB
====>subpart splitting deactivated
====>grabbed math=macro:->x
-Inserting mathml with Hash 415290769594460E2E485922904F345D
+Inserting mathml with Hash 4E04B22E96830484488595B74F0E2800
====>subpart splitting deactivated
====>grabbed math=macro:->y
-Inserting mathml with Hash 10342149CD04422C7BE79506CB544AC5
+Inserting mathml with Hash 69913C2E9334C77484512A937DB76D2D
====>subpart splitting deactivated
====>grabbed math=macro:->x>y
-Inserting mathml with Hash D618B2AAA114982934BBC21847962F30
+Inserting mathml with Hash 626AD6FB6CF94CF1BE7FF5A7B8335B53
====>subpart splitting deactivated
====>grabbed math=macro:->\sqrt {x^2}=\lvert x\rvert
[1
diff --git a/required/latex-lab/testfiles-math/mathml-AF-hash.lvt b/required/latex-lab/testfiles-math/mathml-AF-hash.lvt
new file mode 100644
index 00000000..bce6209b
--- /dev/null
+++ b/required/latex-lab/testfiles-math/mathml-AF-hash.lvt
@@ -0,0 +1,24 @@
+\ExplSyntaxOn
+\sys_gset_rand_seed:n{1000}
+\ExplSyntaxOff
+\DocumentMetadata{testphase={phase-III,math,table,title}, pdfversion=2.0,
+ pdfstandard=ua-2,
+}
+\input{regression-test}
+\documentclass{article}
+\START
+\SHOWFILE{mathml-AF-hash-mathml-template.html}
+\OMIT
+\tagpdfsetup{math-tagging={mathml/writehash}}
+\begin{document}
+\TIMO
+
+\begin{equation}
+\sqrt{x^2}=\lvert x\rvert
+\end{equation}
+
+\begin{equation*}
+\sqrt{x^2}=\lvert x\rvert
+\end{equation*}
+
+\end{document}
diff --git a/required/latex-lab/testfiles-math/mathml-AF-hash.tlg b/required/latex-lab/testfiles-math/mathml-AF-hash.tlg
new file mode 100644
index 00000000..951068e6
--- /dev/null
+++ b/required/latex-lab/testfiles-math/mathml-AF-hash.tlg
@@ -0,0 +1,37 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+-------- mathml-AF-hash-mathml-template.html (start) ---------
+(mathml-AF-hash-mathml-template.html) <!DOCTYPE html>^^M
+<html>^^M
+^^M
+<div>^^M
+<h2>\mml 1</h2>^^M
+<p>\begin {equation}\sqrt {x^2}=\lvert x\rvert \end {equation}</p>^^M
+<p>97E0ED65D7DB327BEE6496118E96C5B1</p>^^M
+<math></math>^^M
+</div>^^M
+^^M
+^^M
+<div>^^M
+<h2>\mml 2</h2>^^M
+<p>\begin {equation*}\sqrt {x^2}=\lvert x\rvert \end {equation*}</p>^^M
+<p>626AD6FB6CF94CF1BE7FF5A7B8335B53</p>^^M
+<math></math>^^M
+</div>^^M
+^^M
+</html>^^M
+-------- mathml-AF-hash-mathml-template.html (end) -----------
+WARNING: mathml missing for hash 97E0ED65D7DB327BEE6496118E96C5B1
+====>subpart splitting deactivated
+====>grabbed math=macro:->\sqrt {x^2}=\lvert x\rvert
+WARNING: mathml missing for hash 626AD6FB6CF94CF1BE7FF5A7B8335B53
+====>subpart splitting deactivated
+====>grabbed math=macro:->\sqrt {x^2}=\lvert x\rvert
+[1
+] (mathml-AF-hash.aux)
+MathML statistic
+================
+==> 0 MathML fragments read
+==> 0 different MathML fragments
+==> 2 math fragments found
+==> 0 MathML AF attached
diff --git a/required/latex-lab/testfiles-math/support/mathml-AF-ex1-mathml.html b/required/latex-lab/testfiles-math/support/mathml-AF-ex1-mathml.html
index 304546ca..bd606798 100644
--- a/required/latex-lab/testfiles-math/support/mathml-AF-ex1-mathml.html
+++ b/required/latex-lab/testfiles-math/support/mathml-AF-ex1-mathml.html
@@ -4,7 +4,7 @@
<div>
<h2>\mml 1</h2>
<p>\begin{math}x\end{math}</p>
-<p>9DD4E461268C8034F5C8564E155C67A6</p>
+<p>2E57D15A2BFC6C28A1A717AA4169EDDB</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
<mi>x</mi>
</math>
@@ -13,7 +13,7 @@
<div>
<h2>\mml 2</h2>
<p>\begin{math}y\end{math}</p>
-<p>415290769594460E2E485922904F345D</p>
+<p>4E04B22E96830484488595B74F0E2800</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
<mi>y</mi>
</math>
@@ -22,7 +22,7 @@
<div>
<h2>\mml 3</h2>
<p>\begin{math}x>y\end{math}</p>
-<p>10342149CD04422C7BE79506CB544AC5</p>
+<p>69913C2E9334C77484512A937DB76D2D</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
<mi>x</mi>
<mo>></mo>
@@ -34,7 +34,7 @@
<div>
<h2>\mml 4</h2>
<p>\begin{equation*}\sqrt{x^2}=\lvert x\rvert\end{equation*}</p>
-<p>D618B2AAA114982934BBC21847962F30</p>
+<p>626AD6FB6CF94CF1BE7FF5A7B8335B53</p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msqrt><msup><mi>x</mi><mn>2</mn></msup></msqrt>
<mo>=</mo>
More information about the latex3-commits
mailing list.