Accept all existing Greek letters using unicode characters in math mode (#410)

Test Plan:
- make test
- run screenshot tests on travis-ci
This commit is contained in:
Kevin Barabash
2017-08-14 00:31:43 -04:00
committed by GitHub
parent ef66f30912
commit e00738d16f
5 changed files with 57 additions and 42 deletions

View File

@@ -2332,3 +2332,13 @@ describe("A parser taking String objects", function() {
expect(new String("\\frac 1 2")).toParseLike("\\frac 1 2");
});
});
describe("Unicode", function() {
it("should parse all lower case Greek letters", function() {
expect("αβγδεϵζηθϑικλμνξοπϖρϱςστυφϕχψω").toParse();
});
it("should parse 'ΓΔΘΞΠΣΦΨΩ'", function() {
expect("ΓΔΘΞΠΣΦΨΩ").toParse();
});
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -91,6 +91,7 @@ Gathered: |
y = \sum_{i=1}^n i
\end{array}
GreekLetters: \alpha\beta\gamma\omega
GreekUnicode: \frac{αβγδεϵζηθϑικλμνξοπϖρϱςστυφϕχψω}{ΓΔΘΞΠΣΦΨΩ\mathbf{Ω}\mathbf{\Omega}}
GroupMacros:
macros:
\startExp: e^\bgroup