Closed
Description
Summary
tex2uni
in _mathtext_data.py
is now an unsorted dict with a mix of hex and decimal entries. This makes it quite hard to get an overview of.
Proposed fix
It would probably make sense to select one of the formats and sort it either on the number or the latex string.
An option would be to use the Unicode name which can be obtained as unicodedata.name(chr(8830))
. In this case, sorting on the LaTeX-string may make the most sense. (One will have to modify the code a bit here as well as an integer is currently assumed.)
(In all circumstances, I'd suggest to write some code to do the conversion, not to do it manually, and also wait until #25933, #26010, and #26024 are merged.)