Skip to content

Commit

Permalink
taking as kCOnsonant in validate_grapheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreeshrii committed Aug 27, 2018
1 parent a6c6b34 commit 3e8e338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/training/validate_grapheme.cpp
Expand Up @@ -52,7 +52,7 @@ Validator::CharClass ValidateGrapheme::UnicodeToCharClass(char32 ch) const {
if (u_hasBinaryProperty(ch, UCHAR_GRAPHEME_LINK)) return CharClass::kVirama;
if (u_isUWhiteSpace(ch)) return CharClass::kWhitespace;
// Workaround for Javanese Aksara's Taling, do not label it as a combiner
if (ch == 0xa9ba) return CharClass::kOther;
if (ch == 0xa9ba) return CharClass::kConsonant;
int char_type = u_charType(ch);
if (char_type == U_NON_SPACING_MARK || char_type == U_ENCLOSING_MARK ||
char_type == U_COMBINING_SPACING_MARK || ch == kZeroWidthNonJoiner ||
Expand Down
2 changes: 1 addition & 1 deletion src/training/validate_javanese.cpp
Expand Up @@ -75,7 +75,7 @@ Validator::CharClass ValidateJavanese::UnicodeToCharClass(char32 ch) const {
if (off == 0x33) return CharClass::kNukta; // A9B3 CECAK TELU
if (off == 0x34) return CharClass::kMatraPiece; // A9B4 TARUNG two part vowels
if (off <= 0x39) return CharClass::kMatra;
if (off <= 0x3a) return CharClass::kMatraPiece; // A9BA TALING
if (off <= 0x3a) return CharClass::kConsonant; // A9BA TALING - pre base vowel
if (off <= 0x3d) return CharClass::kMatra;
if (off <= 0x3f) return CharClass::kNukta; // A9BE-A9BF PENGKAL-CAKRA medial consonants
if (off == 0x40) return CharClass::kVirama; // A9C0 PANGKON
Expand Down

0 comments on commit 3e8e338

Please sign in to comment.