Fixes in `utils.math`.
commit68e02c877b7b02ee838a54e70779cf8242858115
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Sat, 13 Jan 2024 11:10:47 +0000 (13 11:10 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Sat, 13 Jan 2024 11:10:47 +0000 (13 11:10 +0000)
treee6ec0eb37ca10af42deb334575a4fd60f4afed0f
parent65ccf5cebaab769532a5e693e6fd6fb419f828ed
Fixes in `utils.math`.

Avoid side-effect of importing "latex2mathml" on "tex2unichar".
(This led to the merge of `\hslash` and `\hbar` also with
"--math-output=html".)

Use MathML element <mi> (identifier) instead of <mo> (operator)
for "mathord" symbols.

Sort ℏ (`\hslash`) as "mathord", not mathalpha in "tex2unichar".
(Avoids "double italisation" with "math2html".)

Some simplifications in "math2html.py": sort ħ (`\hbar`) as mathalpha
so it gets italicised.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9513 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/HISTORY.txt
docutils/docutils/utils/math/latex2mathml.py
docutils/docutils/utils/math/math2html.py
docutils/docutils/utils/math/tex2unichar.py
docutils/test/functional/expected/math_output_html.html
docutils/test/functional/expected/math_output_mathml.html