LaTeX to MathML: Fix "mathvariant" handling for numbers.
commita0f488e2577a0e68d91ec2636ac03ed0f7310def
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Thu, 1 Feb 2024 13:03:52 +0000 (1 13:03 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Thu, 1 Feb 2024 13:03:52 +0000 (1 13:03 +0000)
tree1da2c9565345255e9c2bf005a8126df81e7d33fc
parent0c40b4ef35dc7462e5b3ac68e3bcdb1db28371bc
LaTeX to MathML: Fix "mathvariant" handling for numbers.

Conversion of \mathtt{0.12} did not use monospaced digits.

Do a per-character lookup/replacement with
"alphanumical mathematical chars" for the "text" of `<mn>`.

While identifiers are usually put in separate `<mi>` elements
and more than one letter in a `<mi>` indicates a function name
that should not change fonts,
numbers in `<mn>` consisting of several digits should be
changed according to the given "mathvariant".

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9534 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/docutils/utils/math/latex2mathml.py
docutils/test/functional/expected/mathematics_mathml.html
docutils/test/test_utils/test_math/test_tex2mathml_extern.py