37 fprintf(fp,
"R_NOT_TESS_ACCEPTED: %s\n",
41 fprintf(fp,
"R_HYPHEN: %s\n",
flag(
R_HYPHEN) ?
"T" :
"F");
55 fprintf(fp,
"R_MINIMAL_REJ_ACCEPT: %s\n",
61 for (
unsigned i = 0;
i < len;
i++) {
62 ptr[
i] = source.ptr[
i];
68 ptr = std::make_unique<REJ[]>(
length);
74 for (
unsigned i = 0;
i < len;
i++) {
75 if (ptr[
i].accepted()) {
83 for (
unsigned i = 0;
i < len;
i++) {
84 if (ptr[
i].recoverable()) {
92 for (
unsigned i = 0;
i < len;
i++) {
93 if (ptr[
i].accept_if_good_quality()) {
107 for (; pos < len; pos++) {
108 ptr[pos] = ptr[pos + 1];
114 for (
unsigned i = 0;
i < len;
i++) {
115 fputc( ptr[
i].display_char(), fp);
121 for (
unsigned i = 0;
i < len;
i++) {
122 ptr[
i].full_print(fp);
128 for (
unsigned i = 0;
i < len;
i++) {
129 ptr[
i].setrej_small_xht();
134 for (
unsigned i = 0;
i < len;
i++) {
135 ptr[
i].setrej_tess_failure();
140 for (
unsigned i = 0;
i < len;
i++) {
141 if (ptr[
i].accepted()) {
142 ptr[
i].setrej_not_tess_accepted();
148 for (
unsigned i = 0;
i < len;
i++) {
149 if (ptr[
i].accepted()) {
150 ptr[
i].setrej_contains_blanks();
156 for (
unsigned i = 0;
i < len;
i++) {
157 if (ptr[
i].accepted()) {
158 ptr[
i].setrej_bad_permuter();
164 for (
unsigned i = 0;
i < len;
i++) {
165 if (ptr[
i].accepted()) {
166 ptr[
i].setrej_xht_fixup();
172 for (
unsigned i = 0;
i < len;
i++) {
173 if (ptr[
i].accepted()) {
174 ptr[
i].setrej_no_alphanums();
180 for (
unsigned i = 0;
i < len;
i++) {
181 if (ptr[
i].accepted()) {
182 ptr[
i].setrej_mostly_rej();
188 for (
unsigned i = 0;
i < len;
i++) {
189 if (ptr[
i].accepted()) {
190 ptr[
i].setrej_bad_quality();
196 for (
unsigned i = 0;
i < len;
i++) {
197 if (ptr[
i].accepted()) {
198 ptr[
i].setrej_doc_rej();
204 for (
unsigned i = 0;
i < len;
i++) {
205 if (ptr[
i].accepted()) {
206 ptr[
i].setrej_block_rej();
212 for (
unsigned i = 0;
i < len;
i++) {
213 if (ptr[
i].accepted()) {
214 ptr[
i].setrej_row_rej();
bool flag(REJ_FLAGS rej_flag) const
void full_print(FILE *fp) const
void rej_word_not_tess_accepted()
void print(FILE *fp) const
void rej_word_tess_failure()
void rej_word_contains_blanks()
void rej_word_small_xht()
void rej_word_bad_quality()
void rej_word_xht_fixup()
void remove_pos(uint16_t pos)
int16_t accept_count() const
void rej_word_block_rej()
bool quality_recoverable_rejects() const
void initialise(uint16_t length)
void rej_word_bad_permuter()
REJMAP & operator=(const REJMAP &source)
void rej_word_no_alphanums()
bool recoverable_rejects() const
void full_print(FILE *fp) const
void rej_word_mostly_rej()