Pre-process unicode chars in MathJax #7

Open
opened 2017-07-10 22:14:10 +01:00 by SuzanneSoy · 1 comment
SuzanneSoy commented 2017-07-10 22:14:10 +01:00 (Migrated from github.com)

We should replace a palette of known Unicode chars with their LaTeX equivalent where possible.

See https://github.com/mathjax/MathJax/issues/1801, the width of some characters is not correctly computed in the HTML-CSS mode (which we use for now to have as much compatibility as possible), and the does not look like _i anyway (it's a straight i, and does not use the math font).

We should replace a palette of known Unicode chars with their LaTeX equivalent where possible. See https://github.com/mathjax/MathJax/issues/1801, the width of some characters is not correctly computed in the HTML-CSS mode (which we use for now to have as much compatibility as possible), and the `ᵢ` does not look like `_i` anyway (it's a straight `i`, and does not use the math font).
SuzanneSoy commented 2017-07-10 23:56:23 +01:00 (Migrated from github.com)

Partially done with (map katex-convert-unicode (flatten strs)), but this should also handle delayed scribble elements, and support more characters (I need to make my .XCompose database a bit more complete and export the LaTeX translations contained within)

Partially done with `(map katex-convert-unicode (flatten strs))`, but this should also handle delayed scribble elements, and support more characters (I need to make my `.XCompose` database a bit more complete and export the LaTeX translations contained within)
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: suzanne.soy/scribble-math#7
No description provided.