92 #define MAP_ACCEPT '1' 93 #define MAP_REJECT_PERM '0' 94 #define MAP_REJECT_TEMP '2' 95 #define MAP_REJECT_POTENTIAL '3' 126 const REJ & source) {
132 bool flag(REJ_FLAGS rej_flag) {
134 return flags1.
bit (rej_flag);
136 return flags2.
bit (rej_flag - 16);
141 return MAP_REJECT_PERM;
143 return MAP_REJECT_POTENTIAL;
145 return MAP_REJECT_TEMP;
162 return (rejected () && !perm_rejected ());
203 std::unique_ptr<REJ[]>
ptr;
214 void initialise(int16_t length);
219 ASSERT_HOST(index < len);
227 int16_t accept_count();
230 return len - accept_count ();
236 void print(FILE *fp);
240 bool recoverable_rejects();
242 bool quality_recoverable_rejects();
245 void rej_word_small_xht();
247 void rej_word_tess_failure();
248 void rej_word_not_tess_accepted();
251 void rej_word_contains_blanks();
253 void rej_word_bad_permuter();
254 void rej_word_xht_fixup();
256 void rej_word_no_alphanums();
257 void rej_word_mostly_rej();
258 void rej_word_bad_quality();
259 void rej_word_doc_rej();
260 void rej_word_block_rej();
261 void rej_word_row_rej();
void setrej_doc_rej()
Definition: rejctmap.cpp:188
REJ & operator[](int16_t index) const
Definition: rejctmap.h:216
void setrej_small_xht()
Definition: rejctmap.cpp:101
void setrej_quality_accept()
Definition: rejctmap.cpp:223
void set_flag(REJ_FLAGS rej_flag)
Definition: rejctmap.h:102
REJ(const REJ &source)
Definition: rejctmap.h:119
void setrej_no_alphanums()
Definition: rejctmap.cpp:168
void setrej_hyphen_accept()
Definition: rejctmap.cpp:208
BITS16 flags2
Definition: rejctmap.h:100
bool rej_between_quality_and_minimal_rej_accept()
Definition: rejctmap.cpp:54
void setrej_bad_permuter()
Definition: rejctmap.cpp:153
std::unique_ptr< REJ[]> ptr
Definition: rejctmap.h:203
BITS16 flags1
Definition: rejctmap.h:99
void setrej_postNN_1Il()
Definition: rejctmap.cpp:116
void setrej_unlv_rej()
Definition: rejctmap.cpp:203
void setrej_edge_char()
Definition: rejctmap.cpp:106
void setrej_bad_repetition()
Definition: rejctmap.cpp:131
REJMAP(const REJMAP &rejmap)
Definition: rejctmap.h:209
void setrej_contains_blanks()
Definition: rejctmap.cpp:147
REJ & operator=(const REJ &source)
Definition: rejctmap.h:125
void setrej_mm_reject()
Definition: rejctmap.cpp:126
void setrej_1Il_conflict()
Definition: rejctmap.cpp:111
void setrej_mm_accept()
Definition: rejctmap.cpp:218
int16_t reject_count()
Definition: rejctmap.h:229
Definition: rejctmap.h:201
char display_char()
Definition: rejctmap.h:139
void setrej_nn_accept()
Definition: rejctmap.cpp:213
bool rej_before_quality_accept()
Definition: rejctmap.cpp:67
void full_print(FILE *fp)
Definition: rejctmap.cpp:234
bool bit(uint8_t bit_num) const
Definition: bits16.h:57
bool rej_before_mm_accept()
Definition: rejctmap.cpp:60
void setrej_dubious()
Definition: rejctmap.cpp:163
void setrej_row_rej()
Definition: rejctmap.cpp:198
void turn_on_bit(uint8_t bit_num)
Definition: bits16.h:38
bool rej_before_nn_accept()
Definition: rejctmap.cpp:35
void setrej_tess_failure()
Definition: rejctmap.cpp:96
bool recoverable()
Definition: rejctmap.h:161
void setrej_xht_fixup()
Definition: rejctmap.cpp:178
void setrej_not_tess_accepted()
Definition: rejctmap.cpp:141
void setrej_hyphen()
Definition: rejctmap.cpp:158
void setrej_minimal_rej_accept()
Definition: rejctmap.cpp:228
REJMAP()
Definition: rejctmap.h:207
int32_t length() const
Definition: rejctmap.h:223
void setrej_mostly_rej()
Definition: rejctmap.cpp:173
bool accepted()
Definition: rejctmap.h:154
bool rej_between_mm_and_quality_accept()
Definition: rejctmap.cpp:49
bool rej_between_nn_and_mm()
Definition: rejctmap.cpp:42
bool perm_rejected()
Definition: rejctmap.cpp:24
int16_t len
Definition: rejctmap.h:204
bool flag(REJ_FLAGS rej_flag)
Definition: rejctmap.h:132
void setrej_rej_cblob()
Definition: rejctmap.cpp:121
bool rejected()
Definition: rejctmap.cpp:73
void setrej_bad_quality()
Definition: rejctmap.cpp:183
Definition: rejctmap.h:97
bool accept_if_good_quality()
Definition: rejctmap.cpp:83
void setrej_poor_match()
Definition: rejctmap.cpp:136
void setrej_block_rej()
Definition: rejctmap.cpp:193