Added most symbols to cmd_symbols for concealment #386
+628
−65
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.
Added most symbols from mathjax's Charactermaps to the concealments.
Some symbols used in the concealments were different then the ones in mathjax.
I think the ones from mathjax are more accurate and should be used, but I can revert if need be.
I sorted it case insensitive to preserve git history somewhat but its still not a full match so the differences between
mathjax and the original are shown below.
the left object is from mathjax and the right from the current map.
edit: not all mappings work like
\Subset
. Not sure whyedit2: almost fixed it. unicode is not fully supported.
for example
becomes
hello worlda
(github markdown doesn't seem to support\def
).where as
\def\aä
does work normally.But to avoid regex taking
\S
over\Subset
for the string\Subset
I added a negative lookahead for any letter (\\pu{L}
)and this doesn't account for when the previous character is a special letter and the next is a normal letter.
But this already so niche that I don't think we're ever gonna encounter that.
edit3: sorted the keys by length instead. Forgot that lookahead is not supported yet on ios.
It should now fully work for every macro.