brucemiller / LaTeXML

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

Use em rather than percent for MathML mo minsize, maxsize #2341

Closed brucemiller closed 2 months ago

brucemiller commented 2 months ago

Use em rather than percent for MathML mo minsize, maxsize to avoid interpretation issues.

Also, tweak operator dictionary assumptions about what browsers will assume is stretchy.

brucemiller commented 2 months ago

Actually, I'm not sure if % is theoretically more accurate than em. In practice, em is.

As far as "encounter(ing) more issues"; well, other issues may be more apparent. Currently Safari ignores %, so essentially treats it as stretchy, which comes out looking reasonable even if it wasn't the author's intention. However, with ems, Safari seems to quantize the size in an odd way, so sometimes it doesn't look as intended either. Chrome's % tends to produce extremely large fences; with ems they come out in the correct size, but sometimes that seems to accentuate the symmetric bug. So one could make a strategy based on which bugs they expect to be fixed when?