Add additional Unicodes to IsVedicAccent

This commit is contained in:
Shreeshrii 2018-03-20 20:33:25 +05:30 committed by GitHub
parent 8c258750de
commit 198664fb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,9 @@ bool Validator::IsVirama(char32 unicode) {
// Returns true if the given UTF-32 unicode is a vedic accent. // Returns true if the given UTF-32 unicode is a vedic accent.
/* static */ /* static */
bool Validator::IsVedicAccent(char32 unicode) { bool Validator::IsVedicAccent(char32 unicode) {
return 0x1cd0 <= unicode && unicode < 0x1d00; return 0x1cd0 <= unicode && unicode < 0x1d00 ||
0xa8e0 <= unicode && unicode <= 0xa8f7 ||
0x951 <= unicode && unicode <= 0x954;
} }
// Returns true if the script is one that uses subscripts for conjuncts. // Returns true if the script is one that uses subscripts for conjuncts.