forked from doersino/UnicodeMathML
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
MurrayIII edited this page Jun 21, 2023
·
1 revision
To agree with the Microsoft implementation, the following changes have been made:
- All ASCII letters and Greek lower-case letters are automatically converted to math italic unless they comprise a mathematical function name, e.g., a trigonometric function, or are quoted.
- The subscript and superscript operators (_ ^) apply to the variable or enclosed expression that immediately precedes them. For example, in “E=mc^2”, the base of the superscript object is “c”, not “mc”.
- The integrand can be attached to the integral via a space instead of the “glue” operator ▒.
- The trigonometric function names are defined by the expression 'a'? ['sin' | 'cos' | 'tan' | 'sec' | 'csc' | 'cot'] 'h'?
- The identity and n×m matrix short cuts are implemented.
- \rect border flags are fixed (needed to be inverted).
- Display mode n-ary operators are changed to instead of , except for integrals.
- Convert math functions with or without the function-apply operator U+2061.
- Only insert a thin space in front of differential d or D if it is preceded by one or more letters in the same run. Ideally the thin space should be added by the display engine along with the choice of math style (math italic, upright, double-struck italic) instead of by the converter. The MathML would then retain the original semantics.
In addition, the following features are implemented:
- \abs is added for unambiguous entry of absolute value and the absolute-value intent attribute is added. \choose is added along with its intent attribute (binomial).
- Add MathML tests to the display of example.html.
To do:
- Partial conversions instead of displaying errors. E.g., “(a^2+” would convert to “(𝑎² +” instead of displaying an error message.
- Implement MathML 4.0 intent attributes (in addition to the \abs and \choose cases already implemented).
- Update the set of LaTeX control words.