brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
957 stars 101 forks source link

use U+2217 for multiplication asterisk #2319

Closed xworld21 closed 9 months ago

xworld21 commented 9 months ago

Fix #2318 the 'right way' by patching the existing DefMathI call.

dginev commented 9 months ago

I am still wondering how to make the decision which piece of LaTeXML should carry the information, since we have so many possible points of intervention. Just above your change there is a commented out line:

# Redefine, if we want Unicode minus
#DefMathI('-', undef, "\x{2212}", role => 'ADDOP',   meaning  => 'minus');

In that case the Unicode minus is instead "stylized" during the MathML post-processing here.

Were we/Are we trying to keep some of these assumptions out of XMath?

xworld21 commented 9 months ago

Were we/Are we trying to keep some of these assumptions out of XMath?

I was puzzled by that U+2212, now I get it. In that case, it seems more consistent to make the change in MathML.pm, I guess. The PR is trivial in either case.