60 void Tesseract::set_done(
WERD_RES *word, int16_t pass) {
67 if (word->
done && (pass == 1) && (!word_from_dict || word_is_ambig) &&
68 one_ell_conflict(word,
false)) {
69 if (tessedit_rejection_debug)
tprintf(
"one_ell_conflict detected\n");
72 if (word->
done && ((!word_from_dict &&
74 if (tessedit_rejection_debug)
tprintf(
"non-dict or ambig word detected\n");
77 if (tessedit_rejection_debug) {
91 void Tesseract::make_reject_map(
WERD_RES *word,
ROW *row, int16_t pass) {
96 check_debug_pt(word, -1);
103 if (tessedit_reject_mode == 0) {
106 }
else if (tessedit_reject_mode == 5) {
115 one_ell_conflict(word,
true);
125 if (rej_use_tess_blanks &&
130 if (rej_use_good_perm) {
134 (!rej_use_sensible_wd ||
135 acceptable_word_string(*word->
uch_set,
141 if (rej_alphas_in_number_perm) {
142 for (i = 0, offset = 0;
160 tprintf(
"BAD tessedit_reject_mode\n");
161 ASSERT_HOST(
"Fatal error encountered!" ==
nullptr);
164 if (tessedit_image_border > -1)
165 reject_edge_blobs(word);
167 check_debug_pt (word, 10);
168 if (tessedit_rejection_debug) {
170 tprintf(
"Certainty: %f Rating: %f\n",
176 check_debug_pt(word, 20);
@ AC_UNACCEPTABLE
Unacceptable word.
void reject_blanks(WERD_RES *word)
void reject_poor_matches(WERD_RES *word)
void flip_hyphens(WERD_RES *word)
void flip_0O(WERD_RES *word)
DLLSYM void tprintf(const char *format,...)
const UNICHARSET * uch_set
WERD_CHOICE * best_choice
bool dangerous_ambig_found() const
const STRING & unichar_lengths() const
const STRING & unichar_string() const
void rej_word_bad_permuter()
void rej_word_not_tess_accepted()
void initialise(int16_t length)
void rej_word_small_xht()
void rej_word_contains_blanks()
const char * string() const
bool get_isalpha(UNICHAR_ID unichar_id) const