Support typing Unicode for all symbols #273
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
E.g. you can type/paste "θ" and get "\theta" instead of the raw unicode θ. Inside Desmos, this means you can paste
r=\sin\left(θ\right)
and get a valid equation instead of "Sorry I don't understand the 'θ' symbol."There was already some support for this, e.g.
→
,π
,≤
, but it was missing for all Greek letters and many advanced symbols. My plan was to just do the Greek letters, but I got carried away.For each added unicode support, I verified:
LatexCmds['∇']
only appears once)advancedSymbols
definition overwriting abasicSymbols
definition.Future PR, if we care:
\parallel
,\nparallel
, and\perp
are in both advancedSymbols and basicSymbols\bigtriangledown
but not\triangledown
.