From 198664fb0b78f03d9741657d77b1fe9a519684ed Mon Sep 17 00:00:00 2001 From: Shreeshrii Date: Tue, 20 Mar 2018 20:33:25 +0530 Subject: [PATCH] Add additional Unicodes to IsVedicAccent --- training/validator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/training/validator.cpp b/training/validator.cpp index 034d611b..40a158b3 100644 --- a/training/validator.cpp +++ b/training/validator.cpp @@ -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.