File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,15 @@ bool ValidateGrapheme::ConsumeGraphemeIfValid() {
15
15
char32 ch = codes_[codes_used_].second ;
16
16
const bool is_combiner =
17
17
cc == CharClass::kCombiner || cc == CharClass::kVirama ;
18
- // TODO: Reject easily detected badly formed sequences.
19
- // https://github.com/tesseract-ocr/tesseract/pull/2266#issuecomment-467114751
20
- // if (prev_cc == CharClass::kWhitespace && is_combiner) {
21
- // if (report_errors_) tprintf("Word started with a combiner:0x%x\n", ch);
22
- // return false;
23
- // }
18
+ // TODO: Make this code work well with RTL text.
19
+ // See https://github.com/tesseract-ocr/tesseract/pull/2266#issuecomment-467114751
20
+ #if 0
21
+ // Reject easily detected badly formed sequences.
22
+ if (prev_cc == CharClass::kWhitespace && is_combiner) {
23
+ if (report_errors_) tprintf("Word started with a combiner:0x%x\n", ch);
24
+ return false;
25
+ }
26
+ #endif
24
27
if (prev_cc == CharClass::kVirama && cc == CharClass::kVirama ) {
25
28
if (report_errors_)
26
29
tprintf (" Two grapheme links in a row:0x%x 0x%x\n " , prev_ch, ch);
You can’t perform that action at this time.
0 commit comments