"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/training/unicharset/validate_indic.cpp" between
tesseract-5.0.0-rc2.tar.gz and tesseract-5.0.0-rc3.tar.gz

About: Tesseract is an Optical Character Recognition (OCR) engine. Release candidate.

validate_indic.cpp  (tesseract-5.0.0-rc2):validate_indic.cpp  (tesseract-5.0.0-rc3)
skipping to change at line 38 skipping to change at line 38
if (report_errors_) { if (report_errors_) {
tprintf("Dropping isolated joiner: 0x%x\n", codes_[codes_used_].second); tprintf("Dropping isolated joiner: 0x%x\n", codes_[codes_used_].second);
} }
++codes_used_; ++codes_used_;
return true; return true;
case CharClass::kOther: case CharClass::kOther:
UseMultiCode(1); UseMultiCode(1);
return true; return true;
default: default:
if (report_errors_) { if (report_errors_) {
tprintf("Invalid start of grapheme sequence:%c=0x%x\n", codes_[codes_use tprintf("Invalid start of grapheme sequence:%c=0x%x\n",
d_].first, static_cast<int>(codes_[codes_used_].first),
codes_[codes_used_].second); codes_[codes_used_].second);
} }
return false; return false;
} }
} }
Validator::CharClass ValidateIndic::UnicodeToCharClass(char32 ch) const { Validator::CharClass ValidateIndic::UnicodeToCharClass(char32 ch) const {
if (IsVedicAccent(ch)) { if (IsVedicAccent(ch)) {
return CharClass::kVedicMark; return CharClass::kVedicMark;
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)