{
void Tesseract::set_done(
if (tessedit_ok_mode == 0) {
}
else if (tessedit_ok_mode == 1) {
if (word->
done && (pass == 1) && one_ell_conflict (word,
FALSE))
}
else if (tessedit_ok_mode == 2) {
if (word->
done && (pass == 1) && one_ell_conflict (word,
FALSE))
(pass == 1) &&
#ifndef SECURE_NAMES
if (tessedit_rejection_debug)
tprintf (
"\nVETO Tess accepting poor word \"%s\"\n",
#endif
}
}
else if (tessedit_ok_mode == 3) {
if (word->
done && (pass == 1) && one_ell_conflict (word,
FALSE))
#ifndef SECURE_NAMES
if (tessedit_rejection_debug)
tprintf (
"\nVETO Tess accepting poor word \"%s\"\n",
#endif
}
}
else if (tessedit_ok_mode == 4) {
if (word->
done && (pass == 1) && one_ell_conflict (word,
FALSE))
(pass == 1) &&
(test_ambig_word (word)))) {
#ifndef SECURE_NAMES
if (tessedit_rejection_debug)
tprintf (
"\nVETO Tess accepting poor word \"%s\"\n",
#endif
}
}
else if (tessedit_ok_mode == 5) {
if (word->
done && (pass == 1) && one_ell_conflict (word,
FALSE))
(test_ambig_word (word)))) {
#ifndef SECURE_NAMES
if (tessedit_rejection_debug)
tprintf (
"\nVETO Tess accepting poor word \"%s\"\n",
#endif
}
}
else {
tprintf (
"BAD tessedit_ok_mode\n");
}
}
void Tesseract::make_reject_map(
BLOB_CHOICE_LIST_CLIST *blob_choices,
) {
int i;
int offset;
check_debug_pt(word, -1);
set_done(word, pass);
if (tessedit_reject_mode == 0) {
} else if (tessedit_reject_mode == 5) {
} else {
one_ell_conflict(word,
TRUE);
if (rej_use_tess_blanks &&
if (rej_use_good_perm) {
if ((best_choice->
permuter() == SYSTEM_DAWG_PERM ||
best_choice->
permuter() == FREQ_DAWG_PERM ||
best_choice->
permuter() == USER_DAWG_PERM) &&
(!rej_use_sensible_wd ||
acceptable_word_string(*word->
uch_set,
}
else if (best_choice->
permuter() == NUMBER_PERM) {
if (rej_alphas_in_number_perm) {
for (i = 0, offset = 0;
}
}
} else {
}
}
}
} else {
tprintf(
"BAD tessedit_reject_mode\n");
}
if (tessedit_image_border > -1)
reject_edge_blobs(word);
check_debug_pt (word, 10);
if (tessedit_rejection_debug) {
tprintf(
"Certainty: %f Rating: %f\n",
}
check_debug_pt(word, 20);
}
}