Page MenuHomePhabricator

Remove namedspaces length values in MathML
Closed, ResolvedPublicBUG REPORT

Description

As reported in https://github.com/w3c/mathml/issues/75#issuecomment-1273061494 we currently generate named MathML with named length attributes

<math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\quad \,\;\!\qquad b}">
<semantics>
  <mrow class="MJX-TeXAtom-ORD">
    <mstyle displaystyle="true" scriptlevel="0">
      <mi>a</mi>
      <mspace width="1em"></mspace>
      <mspace width="thinmathspace"></mspace>
      <mspace width="thickmathspace"></mspace>
      <mspace width="negativethinmathspace"></mspace>
      <mspace width="2em"></mspace>
      <mi>b</mi>
    </mstyle>
  </mrow>
  <annotation encoding="application/x-tex">{\displaystyle a\quad \,\;\!\qquad b}</annotation>
</semantics>
</math

These values should be replaced by em values. See for example https://github.com/brucemiller/LaTeXML/pull/1962/files

According to https://github.com/w3c/mathml/issues/75#issuecomment-523016332

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

To elaborate a bit, this was just an example. More generally, we should use the substitution described here:

https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute/Values#legacy_mathml_lengths

fredw renamed this task from Deprecate/Remove namedspaces length values in MathML to Remove namedspaces length values in MathML.Oct 17 2022, 7:10 AM

@Stegmujo FYI... when you come to spaces, save the effort and don't implement the elements removed from the spec.

Physikerwelt triaged this task as Medium priority.
Physikerwelt updated the task description. (Show Details)

Change 986667 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Remove namedspaces length values in MathML

https://gerrit.wikimedia.org/r/986667

Change 986667 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Remove namedspaces length values in MathML

https://gerrit.wikimedia.org/r/986667

Physikerwelt updated the task description. (Show Details)