cortex-js / compute-engine

An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON
https://cortexjs.io
MIT License
375 stars 47 forks source link

Arbitrary unicode characters #16

Closed stefnotch closed 1 year ago

stefnotch commented 3 years ago

I'd love it if the compute-engine could handle arbitrary Unicode characters and parse them as variable names. A silly example would be \begin{equation*} 🍕+3 \end{equation*}

A more reasonable example would be variable names in a different language, I suppose.

arnog commented 1 year ago

The Compute Engine now parses emoji as well as non-Latin characters correctly. Due to the complexities of Unicode, it's not "arbitrary" characters, but a very extended set. See https://cortexjs.io/math-json/#identifiers