Title: [MNT]: Unify tex2uni · Issue #26029 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Unify tex2uni · Issue #26029 · matplotlib/matplotlib
X Title: [MNT]: Unify tex2uni · Issue #26029 · matplotlib/matplotlib
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...
Open Graph 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 sele...
X 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 sele...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/26029
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Unify tex2uni","articleBody":"### Summary\n\n`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.\n\n### Proposed fix\n\nIt would probably make sense to select one of the formats and sort it either on the number or the latex string.\r\n\r\nAn 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.)\r\n\r\n(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.)","author":{"url":"https://github.com/oscargus","@type":"Person","name":"oscargus"},"datePublished":"2023-06-01T12:16:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26029/matplotlib/issues/26029"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cd0e7fe6-eb1a-d120-0f13-8ce3e6d33f3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AF0:189C33:18D3909:20538DE:696B2C12 |
| html-safe-nonce | 410107dcecc0d3ebf393962fb7f412b5f65efde6f9731692aaa030aadba60e43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUYwOjE4OUMzMzoxOEQzOTA5OjIwNTM4REU6Njk2QjJDMTIiLCJ2aXNpdG9yX2lkIjoiNjA0OTg5MDgzMTgzNTAxNjIxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53dd5299d9e668990af05ddc87aca5e7e7c6285d8109b38c23b2bdaec243974a |
| hovercard-subject-tag | issue:1736199599 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/26029/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85aa9083313553beebb0c347e9c5972c8fa57bc982e9f08d9fb60bc409739c99/matplotlib/matplotlib/issues/26029 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85aa9083313553beebb0c347e9c5972c8fa57bc982e9f08d9fb60bc409739c99/matplotlib/matplotlib/issues/26029 |
| og:image:alt | 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 sele... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oscargus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width