41 static const inT16 kBlamerBoxTolerance = 5;
155 this->debug +=
" to blame: ";
157 if (debug)
tprintf(
"SetBlame(): %s", this->debug.string());
239 prev_word_best_choice =
NULL;
245 PAGE_RES(BLOCK_LIST *block_list,
477 const char*
const BestUTF8(
int blob_index,
bool in_rtl_context)
const {
481 if (id < 0 || id >=
uch_set->
size() ||
id == INVALID_UNICHAR_ID)
484 if (in_rtl_context && mirrored > 0 && mirrored != INVALID_UNICHAR_ID)
489 const char*
const RawUTF8(
int blob_index)
const {
493 if (id < 0 || id >=
uch_set->
size() ||
id == INVALID_UNICHAR_ID)
511 if (unichar_id < 0 || unichar_id >=
uch_set->
size())
528 if (unichar_id < 0 || unichar_id >=
uch_set->
size())
569 bool numeric_mode,
bool use_body_size,
628 int *start,
int *end)
const;
648 BLOB_CHOICE_LIST_CLIST *blob_choices);
653 void fix_quotes(BLOB_CHOICE_LIST_CLIST *blob_choices);
661 void fix_hyphens(BLOB_CHOICE_LIST_CLIST *blob_choices);
738 return internal_forward(
false,
false);
742 return internal_forward(
false,
true);
749 return prev_word_res;
755 return prev_block_res;
767 return next_word_res;
773 return next_block_res;
778 void ResetWordIterator();
779 WERD_RES *internal_forward(
bool new_block,
bool empty_ok);
793 BLOCK_RES_IT block_res_it;
794 ROW_RES_IT row_res_it;
795 WERD_RES_IT word_res_it;