LiveGTech / Formulaic

A customisable formula/expression parsing and evaluation engine.
Other
0 stars 0 forks source link

Implement natural maths output and editing #1

Open James-Livesey opened 1 year ago

James-Livesey commented 1 year ago

We should provide a way to input and output expressions in a natural maths form.

Garamond seems like a good maths font as shown in the Mozilla MathML Test.

James-Livesey commented 1 year ago

For the MathML input, we can find out where to place the caret in the input by getting the selection range on the MathML: https://stackoverflow.com/questions/69751407/detect-which-letter-from-a-word-is-clicked-using-javascript

James-Livesey commented 1 year ago

Gone with using contenteditable to input expressions as it's easier to support partial expressions (rather than converting valid expressions to MathML).