Skip to content

Commit

Permalink
Add additional Unicodes to IsVedicAccent
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreeshrii authored Mar 20, 2018
1 parent 8c25875 commit 198664f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion training/validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ bool Validator::IsVirama(char32 unicode) {
// Returns true if the given UTF-32 unicode is a vedic accent.
/* static */
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.
Expand Down

0 comments on commit 198664f

Please sign in to comment.