Skip to content

Commit

Permalink
Workaround for Javanese Aksara's Taling, do not label it as a combiner
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreeshrii committed Aug 27, 2018
1 parent 5b31213 commit a6c6b34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/training/validate_grapheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Validator::CharClass ValidateGrapheme::UnicodeToCharClass(char32 ch) const {
// always combine with the previous character.
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;
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
4 changes: 1 addition & 3 deletions src/training/validate_javanese.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ bool ValidateJavanese::ConsumeConsonantHeadIfValid() {
}
IndicPair joiner(CharClass::kOther, 0);
if (codes_used_ < num_codes &&
(codes_[codes_used_].second == kZeroWidthJoiner ||
(codes_[codes_used_].second == kZeroWidthNonJoiner &&
script_ == ViramaScript::kMalayalam))) {
(codes_[codes_used_].second == kZeroWidthJoiner )) {
joiner = codes_[codes_used_];
if (++codes_used_ == num_codes) {
if (report_errors_) {
Expand Down

0 comments on commit a6c6b34

Please sign in to comment.