mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-30 23:49:05 +08:00
Add additional Unicodes to IsVedicAccent
This commit is contained in:
parent
8c258750de
commit
198664fb0b
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user