[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: rename tagpdfsetup keys (f1fec192)
github at latex-project.org
github at latex-project.org
Wed Feb 7 18:39:38 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : latex-lab/uf-review-05
Link : https://github.com/latex3/latex2e/commit/f1fec192ce516dbe38b6996e4cbb39cf7edce4f6
>---------------------------------------------------------------
commit f1fec192ce516dbe38b6996e4cbb39cf7edce4f6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Feb 7 18:39:38 2024 +0100
rename tagpdfsetup keys
>---------------------------------------------------------------
f1fec192ce516dbe38b6996e4cbb39cf7edce4f6
required/latex-lab/latex-lab-math.dtx | 73 ++++++++++++----------
.../latex-lab/testfiles-math/mathml-AF-hash.lvt | 2 +-
required/latex-lab/testfiles-math/mathml-write.lvt | 4 +-
required/latex-lab/testfiles-math/mathml-write.tlg | 6 +-
4 files changed, 47 insertions(+), 38 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 5fd0dec0..7ae547af 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -19,8 +19,8 @@
% for those people who are interested or want to report an issue.
%
%
-\def\ltlabmathdate{2024-01-18}
-\def\ltlabmathversion{0.5g}
+\def\ltlabmathdate{2024-02-07}
+\def\ltlabmathversion{0.5h}
%
%<*driver>
\documentclass{l3doc}
@@ -668,7 +668,7 @@
%
% \begin{socketdecl}{tagsupport/math/mathml/write}
-% This writes a html-template with the hash and the math content.
+% This writes a html-dummy with the hash and the math content.
% This should be optional, so it uses a socket that can be disabled
%
% \begin{macrocode}
@@ -683,7 +683,7 @@
\str_set:NV\l_@@_tmpa_str\l_@@_content_AF_source_tl
\str_replace_all:Nnn\l_@@_tmpa_str{&}{&}
\str_replace_all:Nnn\l_@@_tmpa_str{<}{<}
- \iow_now:Ne \g_@@_writehash_iow
+ \iow_now:Ne \g_@@_writedummy_iow
{
\iow_newline:
<div>
@@ -703,35 +703,36 @@
% \end{macrocode}
% \end{plugdecl}
% And now a key to activate the socket.
-% TODO: There should be a test if the stream is already open.
% \begin{macrocode}
-\keys_define:nn { math / tagging }
+\keys_define:nn { __tag / setup }
{
- mathml/writehash .code:n =
+ math/mathml/write-dummy .code:n =
{
\bool_gset_true:N \g__tag_math_mathml_AF_bool
- \iow_new:N \g_@@_writehash_iow
- \iow_open:Nn \g_@@_writehash_iow
- {
- \c_sys_jobname_str-mathml-template.html
- }
- \iow_now:Ne \g_@@_writehash_iow
+ \tl_if_exist:NF\g_@@_writedummy_iow
{
- <!DOCTYPE~html>
- \iow_newline:
- <html>
- }
- \AssignSocketPlug {tagsupport/math/mathml/write}{On}
- \AddToHook{enddocument/afterlastpage}
- {
- \iow_now:Nn \g_@@_writehash_iow {</html>}
- \iow_close:N \g_@@_writehash_iow
+ \iow_new:N \g_@@_writedummy_iow
+ \iow_open:Nn \g_@@_writedummy_iow
+ {
+ \c_sys_jobname_str-mathml-dummy.html
+ }
+ \iow_now:Ne \g_@@_writedummy_iow
+ {
+ <!DOCTYPE~html>
+ \iow_newline:
+ <html>
+ }
+ \AssignSocketPlug {tagsupport/math/mathml/write}{On}
+ \AddToHook{enddocument/afterlastpage}
+ {
+ \iow_now:Nn \g_@@_writedummy_iow {</html>}
+ \iow_close:N \g_@@_writedummy_iow
+ }
}
},
- mathml/writehash .usage:n=preamble
+ math/mathml/write-dummy .usage:n=preamble
}
-
% \end{macrocode}
%
% \begin{macro}{\@@_AF_process_mathml_files:}
@@ -827,15 +828,23 @@
% \begin{macrocode}
\keys_define:nn { __tag / setup }
{
- math-tagging .code:n = { \keys_set:nn { math / tagging } { #1 } }
+ math/mathml/sources .clist_set:N = \l__tag_math_mathml_files_clist,
+ math/alt/use .bool_set:N = \l__tag_math_alt_bool,
+ viewer/pane/mathml .bool_set:N = \l__tag_math_mathml_panel_bool,
+ viewer/pane/mathml .initial:n = true,
+ viewer/pane/mathsource .bool_set:N = \l__tag_math_texsource_panel_bool,
+ % math/mathml/AF % for lokal (!) deactivation
+ % math/tex/AF % for lokal (!) deactivation
}
-\keys_define:nn { math / tagging }
+% \end{macrocode}
+% deprecated key names:
+% \begin{macrocode}
+\keys_define:nn { __tag / setup }
{
- mathml/setfiles .clist_set:N = \l__tag_math_mathml_files_clist,
- mathml/panel .bool_set:N = \l__tag_math_mathml_panel_bool,
- mathml/panel .initial:n = true,
- texsource/panel .bool_set:N = \l__tag_math_texsource_panel_bool,
- mathml/alt .bool_set:N = \l__tag_math_alt_bool
+ math/mathml/setfiles .meta:n= {math/mathml/sources={#1}},
+ math/mathml/panel .meta:n= {viewer/pane/mathml={#1}},
+ math/texsource/panel .meta:n= {viewer/pane/mathsource={#1}},
+ math/mathml/alt .meta:n= {math/alt/use={#1}},
}
% \end{macrocode}
%
@@ -1103,7 +1112,7 @@
% Additionally it also sets an attribute
% (this can perhaps be done by default anyway.)
% As it disturbs the reading of the AF it currently deactivates the /Alt key,
-% unless it has been reenabled with |math-tagging={mathml/alt=true}|
+% unless it has been reenabled with |math/alt/use=true|
% \begin{macrocode}
\cs_generate_variant:Nn \str_mdfive_hash:n {o}
\tl_new:N\l_@@_content_hash_tl
diff --git a/required/latex-lab/testfiles-math/mathml-AF-hash.lvt b/required/latex-lab/testfiles-math/mathml-AF-hash.lvt
index bce6209b..580e407e 100644
--- a/required/latex-lab/testfiles-math/mathml-AF-hash.lvt
+++ b/required/latex-lab/testfiles-math/mathml-AF-hash.lvt
@@ -9,7 +9,7 @@
\START
\SHOWFILE{mathml-AF-hash-mathml-template.html}
\OMIT
-\tagpdfsetup{math-tagging={mathml/writehash}}
+\tagpdfsetup{math/mathml/write-dummy}
\begin{document}
\TIMO
diff --git a/required/latex-lab/testfiles-math/mathml-write.lvt b/required/latex-lab/testfiles-math/mathml-write.lvt
index 36830695..f93fb04e 100644
--- a/required/latex-lab/testfiles-math/mathml-write.lvt
+++ b/required/latex-lab/testfiles-math/mathml-write.lvt
@@ -8,9 +8,9 @@
\documentclass{article}
\START
-\SHOWFILE{mathml-write-mathml-template.html}
+\SHOWFILE{mathml-write-mathml-dummy.html}
\OMIT
-\tagpdfsetup{math-tagging={mathml/writehash}}
+\tagpdfsetup{math/mathml/write-dummy}
\begin{document}
\TIMO
diff --git a/required/latex-lab/testfiles-math/mathml-write.tlg b/required/latex-lab/testfiles-math/mathml-write.tlg
index 381a6274..7f398f99 100644
--- a/required/latex-lab/testfiles-math/mathml-write.tlg
+++ b/required/latex-lab/testfiles-math/mathml-write.tlg
@@ -1,7 +1,7 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
--------- mathml-write-mathml-template.html (start) ---------
-(mathml-write-mathml-template.html) <!DOCTYPE html>^^M
+-------- mathml-write-mathml-dummy.html (start) ---------
+(mathml-write-mathml-dummy.html) <!DOCTYPE html>^^M
<html>^^M
^^M
<div>^^M
@@ -36,7 +36,7 @@ Don't change this file in any respect.
</div>^^M
^^M
</html>^^M
--------- mathml-write-mathml-template.html (end) -----------
+-------- mathml-write-mathml-dummy.html (end) -----------
WARNING: mathml missing for hash 2E57D15A2BFC6C28A1A717AA4169EDDB
====>subpart splitting deactivated
====>grabbed math=macro:->x
More information about the latex3-commits
mailing list.