From 1cd6cc4da42b27a666290ec29e7f9eb68558cfdb Mon Sep 17 00:00:00 2001 From: Ulrike Fischer Date: Mon, 9 Dec 2024 11:57:59 +0100 Subject: [PATCH] add artifact socket --- luamml.dtx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/luamml.dtx b/luamml.dtx index 5134062..9fdea4c 100644 --- a/luamml.dtx +++ b/luamml.dtx @@ -564,6 +564,28 @@ \AssignSocketPlug{tagsupport/math/luamml/hbox}{luamml} % % \end{macrocode} +% +% \subsubsection{Artifact characters} +% Unicode characters like a root sign should be marked as artifacts +% to avoid duplication e.g. in derivation if mathml +% structure elements are used that imply the meaning. +% We test for the socket until the release 2025-06-01. +% \begin{macrocode} +\str_if_exist:cF { l__socket_tagsupport/math/luamml/artifact_plug_str } + { + \NewSocket{tagsupport/math/luamml/artifact}{0} + } +%<*luatex> +\NewSocketPlug{tagsupport/math/luamml/artifact}{default} + { + \int_if_odd:nT { \int_div_truncate:nn { \l__luamml_flag_int } { 8 } } + { + \tag_mc_begin:n{artifact} + } + } +\AssignSocketPlug{tagsupport/math/luamml/hbox}{luamml} +% +% \end{macrocode} % \subsection{Patching} % For some packages, we ship with patches to make them more compatible and to % demonstrate how other code can be patched to work with \texttt{luamml}.