33 bool REJ::rej_before_nn_accept() {
40 bool REJ::rej_between_nn_and_mm() {
47 bool REJ::rej_between_mm_and_quality_accept() {
52 bool REJ::rej_between_quality_and_minimal_rej_accept() {
58 bool REJ::rej_before_mm_accept() {
59 return rej_between_nn_and_mm () ||
60 (rej_before_nn_accept () &&
65 bool REJ::rej_before_quality_accept() {
66 return rej_between_mm_and_quality_accept () ||
76 rej_between_quality_and_minimal_rej_accept () ||
88 (!rej_between_nn_and_mm () &&
89 !rej_between_mm_and_quality_accept () &&
90 !rej_between_quality_and_minimal_rej_accept ()));
242 fprintf (fp,
"R_NOT_TESS_ACCEPTED: %s\n",
244 fprintf (fp,
"R_CONTAINS_BLANKS: %s\n",
247 fprintf (fp,
"R_HYPHEN: %s\n",
flag (
R_HYPHEN) ?
"T" :
"F");
248 fprintf (fp,
"R_DUBIOUS: %s\n",
flag (
R_DUBIOUS) ?
"T" :
"F");
253 fprintf (fp,
"R_DOC_REJ: %s\n",
flag (
R_DOC_REJ) ?
"T" :
"F");
255 fprintf (fp,
"R_ROW_REJ: %s\n",
flag (
R_ROW_REJ) ?
"T" :
"F");
261 fprintf (fp,
"R_MINIMAL_REJ_ACCEPT: %s\n",
267 for (
int i = 0; i < len; i++) {
268 ptr[i] = source.ptr[i];
283 for (i = 0; i < len; i++) {
284 if (ptr[i].accepted ())
292 for (
int i = 0; i < len; i++) {
293 if (ptr[i].recoverable ())
301 for (
int i = 0; i < len; i++) {
302 if (ptr[i].accept_if_good_quality ())
317 for (; pos < len; pos++) ptr[pos] = ptr[pos + 1];
325 for (i = 0; i < len; i++) {
326 buff[i] = ptr[i].display_char ();
329 fprintf (fp,
"\"%s\"", buff);
336 for (i = 0; i < len; i++) {
337 ptr[i].full_print (fp);
346 for (i = 0; i < len; i++) {
347 ptr[i].setrej_small_xht ();
355 for (i = 0; i < len; i++) {
356 ptr[i].setrej_tess_failure ();
364 for (i = 0; i < len; i++) {
365 if (ptr[i].accepted()) ptr[i].setrej_not_tess_accepted();
373 for (i = 0; i < len; i++) {
374 if (ptr[i].accepted()) ptr[i].setrej_contains_blanks();
382 for (i = 0; i < len; i++) {
383 if (ptr[i].accepted()) ptr[i].setrej_bad_permuter ();
391 for (i = 0; i < len; i++) {
392 if (ptr[i].accepted()) ptr[i].setrej_xht_fixup();
400 for (i = 0; i < len; i++) {
401 if (ptr[i].accepted()) ptr[i].setrej_no_alphanums();
409 for (i = 0; i < len; i++) {
410 if (ptr[i].accepted()) ptr[i].setrej_mostly_rej();
418 for (i = 0; i < len; i++) {
419 if (ptr[i].accepted()) ptr[i].setrej_bad_quality();
427 for (i = 0; i < len; i++) {
428 if (ptr[i].accepted()) ptr[i].setrej_doc_rej();
436 for (i = 0; i < len; i++) {
437 if (ptr[i].accepted()) ptr[i].setrej_block_rej();
445 for (i = 0; i < len; i++) {
446 if (ptr[i].accepted()) ptr[i].setrej_row_rej();