Skip to content

Commit a6c6b34

Browse files
committed
Workaround for Javanese Aksara's Taling, do not label it as a combiner
1 parent 5b31213 commit a6c6b34

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/training/validate_grapheme.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Validator::CharClass ValidateGrapheme::UnicodeToCharClass(char32 ch) const {
5151
// always combine with the previous character.
5252
if (u_hasBinaryProperty(ch, UCHAR_GRAPHEME_LINK)) return CharClass::kVirama;
5353
if (u_isUWhiteSpace(ch)) return CharClass::kWhitespace;
54+
// Workaround for Javanese Aksara's Taling, do not label it as a combiner
55+
if (ch == 0xa9ba) return CharClass::kOther;
5456
int char_type = u_charType(ch);
5557
if (char_type == U_NON_SPACING_MARK || char_type == U_ENCLOSING_MARK ||
5658
char_type == U_COMBINING_SPACING_MARK || ch == kZeroWidthNonJoiner ||

src/training/validate_javanese.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ bool ValidateJavanese::ConsumeConsonantHeadIfValid() {
186186
}
187187
IndicPair joiner(CharClass::kOther, 0);
188188
if (codes_used_ < num_codes &&
189-
(codes_[codes_used_].second == kZeroWidthJoiner ||
190-
(codes_[codes_used_].second == kZeroWidthNonJoiner &&
191-
script_ == ViramaScript::kMalayalam))) {
189+
(codes_[codes_used_].second == kZeroWidthJoiner )) {
192190
joiner = codes_[codes_used_];
193191
if (++codes_used_ == num_codes) {
194192
if (report_errors_) {

0 commit comments

Comments
 (0)