22 #pragma warning(disable:4244) // Conversion warnings
23 #pragma warning(disable:4305) // int/float warnings
54 tprintf(
"Running word_adaptable() for %s rating %.4f certainty %.4f\n",
69 CHECK_ONE_ELL_CONFLICT,
81 if (flags.
bit (ADAPTABLE_WERD)) {
84 tprintf(
"tess_would_adapt bit is false\n");
88 if (flags.
bit (ACCEPTABLE_WERD)) {
91 tprintf(
"tess_accepted bit is false\n");
99 if (flags.
bit (CHECK_DAWGS) &&
113 if (flags.
bit (CHECK_SPACES) &&
120 if (flags.
bit (CHECK_AMBIG_WERD) &&
130 if (fragment_lengths !=
NULL && *fragment_lengths !=
'\0') {
132 if (fragment_lengths[i] > 1) {
141 tprintf(
"returning status %d\n", status);
const STRING & unichar_string() const
bool tessedit_adapt_to_char_fragments
BOOL8 one_ell_conflict(WERD_RES *word_res, BOOL8 update_map)
const char * fragment_lengths() const
bool NoDangerousAmbig(WERD_CHOICE *BestChoice, DANGERR *fixpt, bool fix_replaceable, BLOB_CHOICE_LIST_VECTOR *Choices, bool *modified_blobs)
const char * string() const
DLLSYM void tprintf(const char *format,...)
bool tessedit_adaption_debug
BOOL8 word_adaptable(WERD_RES *word, uinT16 mode)
BOOL8 bit(uinT8 bit_num) const
WERD_CHOICE * best_choice