35 bool REJ::rej_before_nn_accept() {
42 bool REJ::rej_between_nn_and_mm() {
49 bool REJ::rej_between_mm_and_quality_accept() {
54 bool REJ::rej_between_quality_and_minimal_rej_accept() {
60 bool REJ::rej_before_mm_accept() {
61 return rej_between_nn_and_mm () ||
62 (rej_before_nn_accept () &&
67 bool REJ::rej_before_quality_accept() {
68 return rej_between_mm_and_quality_accept () ||
78 rej_between_quality_and_minimal_rej_accept () ||
90 (!rej_between_nn_and_mm () &&
91 !rej_between_mm_and_quality_accept () &&
92 !rej_between_quality_and_minimal_rej_accept ()));
244 fprintf (fp,
"R_NOT_TESS_ACCEPTED: %s\n",
246 fprintf (fp,
"R_CONTAINS_BLANKS: %s\n",
249 fprintf (fp,
"R_HYPHEN: %s\n",
flag (
R_HYPHEN) ?
"T" :
"F");
250 fprintf (fp,
"R_DUBIOUS: %s\n",
flag (
R_DUBIOUS) ?
"T" :
"F");
255 fprintf (fp,
"R_DOC_REJ: %s\n",
flag (
R_DOC_REJ) ?
"T" :
"F");
257 fprintf (fp,
"R_ROW_REJ: %s\n",
flag (
R_ROW_REJ) ?
"T" :
"F");
263 fprintf (fp,
"R_MINIMAL_REJ_ACCEPT: %s\n",
269 for (
int i = 0; i < len; i++) {
270 ptr[i] = source.ptr[i];
285 for (i = 0; i < len; i++) {
286 if (ptr[i].accepted ())
294 for (
int i = 0; i < len; i++) {
295 if (ptr[i].recoverable ())
303 for (
int i = 0; i < len; i++) {
304 if (ptr[i].accept_if_good_quality ())
319 for (; pos < len; pos++) ptr[pos] = ptr[pos + 1];
327 for (i = 0; i < len; i++) {
328 buff[i] = ptr[i].display_char ();
331 fprintf (fp,
"\"%s\"", buff);
338 for (i = 0; i < len; i++) {
339 ptr[i].full_print (fp);
348 for (i = 0; i < len; i++) {
349 ptr[i].setrej_small_xht ();
357 for (i = 0; i < len; i++) {
358 ptr[i].setrej_tess_failure ();
366 for (i = 0; i < len; i++) {
367 if (ptr[i].accepted()) ptr[i].setrej_not_tess_accepted();
375 for (i = 0; i < len; i++) {
376 if (ptr[i].accepted()) ptr[i].setrej_contains_blanks();
384 for (i = 0; i < len; i++) {
385 if (ptr[i].accepted()) ptr[i].setrej_bad_permuter ();
393 for (i = 0; i < len; i++) {
394 if (ptr[i].accepted()) ptr[i].setrej_xht_fixup();
402 for (i = 0; i < len; i++) {
403 if (ptr[i].accepted()) ptr[i].setrej_no_alphanums();
411 for (i = 0; i < len; i++) {
412 if (ptr[i].accepted()) ptr[i].setrej_mostly_rej();
420 for (i = 0; i < len; i++) {
421 if (ptr[i].accepted()) ptr[i].setrej_bad_quality();
429 for (i = 0; i < len; i++) {
430 if (ptr[i].accepted()) ptr[i].setrej_doc_rej();
438 for (i = 0; i < len; i++) {
439 if (ptr[i].accepted()) ptr[i].setrej_block_rej();
447 for (i = 0; i < len; i++) {
448 if (ptr[i].accepted()) ptr[i].setrej_row_rej();
void setrej_minimal_rej_accept()
void setrej_hyphen_accept()
void rej_word_block_rej()
REJMAP & operator=(const REJMAP &source)
void setrej_bad_quality()
void setrej_contains_blanks()
void setrej_bad_permuter()
void full_print(FILE *fp)
bool quality_recoverable_rejects()
void setrej_not_tess_accepted()
void full_print(FILE *fp)
void setrej_1Il_conflict()
bool recoverable_rejects()
void rej_word_bad_permuter()
void setrej_no_alphanums()
void setrej_tess_failure()
void rej_word_small_xht()
bool accept_if_good_quality()
void setrej_bad_repetition()
void rej_word_no_alphanums()
void rej_word_tess_failure()
void rej_word_not_tess_accepted()
void rej_word_contains_blanks()
void setrej_quality_accept()
void rej_word_mostly_rej()
void rej_word_bad_quality()
void initialise(int16_t length)
void remove_pos(int16_t pos)
bool flag(REJ_FLAGS rej_flag)
void rej_word_xht_fixup()