[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: option to activate /Alt with mathml-AF (142c884d)
github at latex-project.org
github at latex-project.org
Thu Jan 25 18:02:41 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : latex-lab/uf-review-05
Link : https://github.com/latex3/latex2e/commit/142c884d0ee7a65ffaf68a44bc9958f6c220a0e9
>---------------------------------------------------------------
commit 142c884d0ee7a65ffaf68a44bc9958f6c220a0e9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Jan 25 18:02:41 2024 +0100
option to activate /Alt with mathml-AF
>---------------------------------------------------------------
142c884d0ee7a65ffaf68a44bc9958f6c220a0e9
required/latex-lab/latex-lab-math.dtx | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index f9a0ea95..802ba543 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -582,7 +582,8 @@
% \l__tag_math_texsource_panel_bool,
% \l__tag_math_mathml_AF_bool,
% \g__tag_math_mathml_AF_bool,
-% \l__tag_math_mathml_panel_bool
+% \l__tag_math_mathml_panel_bool,
+% \l__tag_math_alt_bool
% }
% \begin{macrocode}
\bool_new:N\l__tag_math_texsource_AF_bool
@@ -590,6 +591,7 @@
\bool_new:N\l__tag_math_mathml_AF_bool
\bool_new:N\g__tag_math_mathml_AF_bool
\bool_new:N\l__tag_math_mathml_panel_bool
+\bool_new:N\l__tag_math_alt_bool
% \end{macrocode}
% \end{variable}
%
@@ -833,6 +835,7 @@
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
}
% \end{macrocode}
%
@@ -1099,7 +1102,8 @@
% It is activated if a mathml.xml has been found and loaded.
% Additionally it also sets an attribute
% (this can perhaps be done by default anyway.)
-% As it disturbs the reading of the AF it deactivates the /Alt key.
+% 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}|
% \begin{macrocode}
\cs_generate_variant:Nn \str_mdfive_hash:n {o}
\tl_new:N\l_@@_content_hash_tl
@@ -1125,6 +1129,8 @@
{
\tl_set:Nn\l_@@_attribute_class_tl{display}
}
+ \bool_if:NF\l__tag_math_alt_bool
+ { \tl_set:Nn \l_@@_content_alt_tl{} }
% \end{macrocode}
% debugging option. TODO: hide in debug key.
% \begin{macrocode}
@@ -1145,6 +1151,7 @@
\cs_if_exist_use:c {g__math_mathml_ \l_@@_content_hash_tl _tl},
texsource = \l_@@_content_AF_source_tl, % should be after mathml AF!
title-o = \g_@@_grabbed_env_tl, %
+ alt = \l_@@_content_alt_tl
}
}
% \end{macrocode}
More information about the latex3-commits
mailing list.