-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MathJax does not support Unicode 14 mathematical script variants #3045
Comments
Ah, now that makes a lot of sense! Thanks a ton @pkra. I think with that in mind I will close this issue. From w3c/mathml#61 and https://w3c.github.io/xml-entities/script.html it appears that the Unicode variant has been added as part of Unicode 14! |
It appears that the Unicode variant selectors are not supported by MathJax just yet :( Here is a demo that can be used on https://www.mathjax.org/#demo: Calligraphic Variants: 𝒪︀ (text), $𝒪︀$ (MathJax, Unicode), $\mathcal{O}$ (MathJax, LaTeX)
<br>
Script Variants: 𝒪︁ (text), $𝒪︁$ (MathJax, Unicode), $\mathscr{O}$ (MathJax, LaTeX)
<br>
No Variant Selected: 𝒪 (text), $𝒪$ (MathJax, Unicode) Which renders as: The variants are not rendered correctly when given as Unicode. Note that the browser also does not correctly render the variants, presumably because of a lack of font support. Since MathJax has access to glyphs for both variants, it should be able to render the variants correctly. Expected:
|
I'd like to add that other symbols have variation sequences. The one I noticed is the symbol for the empty set U+2205, which the Unicode spec renders like |
I have jerry-rigged partial support for some variation sequences by adding some filters after initialisation but before typesetting: The full list of standardized variation sequences is at https://www.unicode.org/Public/15.1.0/ucd/StandardizedVariants.txt If I understand correctly, variation sequences should really be implemented in the fonts and enabled via |
I repackaged my code: https://codepen.io/xworld21/pen/oNmbeVR contains a MathJax 3 config that recognises the variation sequences in MathML input (not in TeX input I am afraid). |
I much prefer writing the majority of my source math using Unicode, which generally works really well with MathJax.
I have noticed, however, when I want to display calligraphic math, I find that they render using an unexpected font in MathJax.
My suggestion is thus that the Unicode range starting at
1D49C
render similar to\mathcal{…}
As an example, the insert the following on https://www.mathjax.org/#demo:
Which renders as
I would expect them to have the same rendering
The text was updated successfully, but these errors were encountered: