mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
Greek caps (#1283)
* Support Greek capital letters Supports Greek letters ΑΒΕΖΗΙΚΜΝΟΡΤΧ. Resolves issue #1282.
This commit is contained in:
@@ -126,6 +126,21 @@ defineMacro("\u211A", "\\mathbb{Q}");
|
||||
defineMacro("\u211D", "\\mathbb{R}");
|
||||
defineMacro("\u2124", "\\mathbb{Z}");
|
||||
|
||||
// Unicode Greek capital letters
|
||||
defineMacro("\u0391", "A");
|
||||
defineMacro("\u0392", "B");
|
||||
defineMacro("\u0395", "E");
|
||||
defineMacro("\u0396", "Z");
|
||||
defineMacro("\u0397", "H");
|
||||
defineMacro("\u0399", "I");
|
||||
defineMacro("\u039A", "K");
|
||||
defineMacro("\u039C", "M");
|
||||
defineMacro("\u039D", "N");
|
||||
defineMacro("\u039F", "O");
|
||||
defineMacro("\u03A1", "P");
|
||||
defineMacro("\u03A4", "T");
|
||||
defineMacro("\u03A7", "X");
|
||||
|
||||
defineMacro("\u210E", "\\mathit{h}"); // Planck constant
|
||||
|
||||
// Characters omitted from Unicode range 1D400–1D7FF
|
||||
|
@@ -2991,6 +2991,11 @@ describe("Unicode", function() {
|
||||
expect("£¥ðℂℍℑℓℕ℘ℙℚℜℝℤℲℵℶℷℸ⅁∀∁∂∃∇∞∠∡∢♠♡♢♣♭♮♯✓°\u00b7").toParse();
|
||||
});
|
||||
|
||||
it("should build Greek capital letters", function() {
|
||||
expect("\u0391\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u039D" +
|
||||
"\u039F\u03A1\u03A4\u03A7").toBuild();
|
||||
});
|
||||
|
||||
it("should parse arrows", function() {
|
||||
expect("←↑→↓↔↕↖↗↘↙↚↛↞↠↢↣↦↩↪↫↬↭↮↰↱↶↷↼↽↾↾↿⇀⇁⇂⇃⇄⇆⇇⇈⇉").toParse();
|
||||
});
|
||||
|
Reference in New Issue
Block a user