Skip to content

Commit 198664f

Browse files
authored
Add additional Unicodes to IsVedicAccent
1 parent 8c25875 commit 198664f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

training/validator.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ bool Validator::IsVirama(char32 unicode) {
177177
// Returns true if the given UTF-32 unicode is a vedic accent.
178178
/* static */
179179
bool Validator::IsVedicAccent(char32 unicode) {
180-
return 0x1cd0 <= unicode && unicode < 0x1d00;
180+
return 0x1cd0 <= unicode && unicode < 0x1d00 ||
181+
0xa8e0 <= unicode && unicode <= 0xa8f7 ||
182+
0x951 <= unicode && unicode <= 0x954;
181183
}
182184

183185
// Returns true if the script is one that uses subscripts for conjuncts.

0 commit comments

Comments
 (0)