mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
More Unicode letters (#1260)
This PR serves as a complement to PR #1232 by supporting some letters that are omitted from the Unicode range 1D400–1D7FF.
This commit is contained in:
@@ -126,6 +126,21 @@ defineMacro("\u211A", "\\mathbb{Q}");
|
||||
defineMacro("\u211D", "\\mathbb{R}");
|
||||
defineMacro("\u2124", "\\mathbb{Z}");
|
||||
|
||||
defineMacro("\u210E", "\\mathit{h}"); // Planck constant
|
||||
|
||||
// Characters omitted from Unicode range 1D400–1D7FF
|
||||
defineMacro("\u212C", "\\mathscr{B}"); // script
|
||||
defineMacro("\u2130", "\\mathscr{E}");
|
||||
defineMacro("\u2131", "\\mathscr{F}");
|
||||
defineMacro("\u210B", "\\mathscr{H}");
|
||||
defineMacro("\u2110", "\\mathscr{I}");
|
||||
defineMacro("\u2112", "\\mathscr{L}");
|
||||
defineMacro("\u2133", "\\mathscr{M}");
|
||||
defineMacro("\u211B", "\\mathscr{R}");
|
||||
defineMacro("\u212D", "\\mathfrak{C}"); // Fraktur
|
||||
defineMacro("\u210C", "\\mathfrak{H}");
|
||||
defineMacro("\u2128", "\\mathfrak{Z}");
|
||||
|
||||
// Unicode middle dot
|
||||
// The KaTeX fonts do not contain U+00B7. Instead, \cdotp displays
|
||||
// the dot at U+22C5 and gives it punct spacing.
|
||||
|
@@ -110,7 +110,7 @@ defineSymbol(math, main, textord, "\u0026", "\\&");
|
||||
defineSymbol(text, main, textord, "\u0026", "\\&");
|
||||
defineSymbol(math, main, textord, "\u2135", "\\aleph", true);
|
||||
defineSymbol(math, main, textord, "\u2200", "\\forall", true);
|
||||
defineSymbol(math, main, textord, "\u210f", "\\hbar");
|
||||
defineSymbol(math, main, textord, "\u210f", "\\hbar", true);
|
||||
defineSymbol(math, main, textord, "\u2203", "\\exists", true);
|
||||
defineSymbol(math, main, textord, "\u2207", "\\nabla", true);
|
||||
defineSymbol(math, main, textord, "\u266d", "\\flat", true);
|
||||
|
Reference in New Issue
Block a user