Fixed Cyrillic characters.
This commit is contained in:
@@ -526,7 +526,7 @@ public class MTMathAtomFactory {
|
|||||||
public static func atom(forCharacter ch: Character) -> MTMathAtom? {
|
public static func atom(forCharacter ch: Character) -> MTMathAtom? {
|
||||||
let chStr = String(ch)
|
let chStr = String(ch)
|
||||||
switch chStr {
|
switch chStr {
|
||||||
case "\\u{0410}"..."\\u{044F}":
|
case "\u{0410}"..."\u{044F}":
|
||||||
return MTMathAtom(type: .ordinary, value: chStr)
|
return MTMathAtom(type: .ordinary, value: chStr)
|
||||||
case _ where ch.utf32Char < 0x0021 || ch.utf32Char > 0x007E:
|
case _ where ch.utf32Char < 0x0021 || ch.utf32Char > 0x007E:
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user