437 for (
int i = 0; i < 4; ++i) {
441 BLOB_CHOICE_IT choice_it;
442 choice_it.set_to_list(scores + i);
444 float prev_score = -1;
445 int script_count = 0;
448 int prev_class_id = -1;
449 int prev_fontinfo_id = -1;
450 const char* prev_unichar =
"";
451 const char* unichar =
"";
452 float next_best_score = -1.0;
453 int next_best_script_id = -1;
454 const char* next_best_unichar =
"";
456 for (choice_it.mark_cycle_pt(); !choice_it.cycled_list();
457 choice_it.forward()) {
461 if (done[
id])
continue;
466 if (prev_score < 0) {
471 prev_unichar = unichar;
477 next_best_script_id = choice->
script_id();
481 if (strlen(prev_unichar) == 1)
482 if (unichar[0] >=
'0' && unichar[0] <=
'9')
487 if (script_count >= 2)
491 if (script_count == 1) {
496 if (prev_id == latin_id_) {
497 if (prev_fontinfo_id >= 0) {
512 if (prev_id == katakana_id_)
514 if (prev_id == hiragana_id_)
516 if (prev_id == hangul_id_)
518 if (prev_id == han_id_)
520 if (prev_id == han_id_)
const float kHanRatioInKorean
const char *const id_to_unichar(UNICHAR_ID id) const
inT16 fontinfo_id() const
UNICHAR_ID unichar_id() const
const float kNonAmbiguousMargin
const float kHanRatioInJapanese
float scripts_na[4][kMaxNumberOfScripts]
UnicityTable< FontInfo > & get_fontinfo_table()
const int kMaxNumberOfScripts