30# include "config_auto.h"
36 if (tessedit_adaption_debug) {
37 tprintf(
"Running word_adaptable() for %s rating %.4f certainty %.4f\n",
43 std::bitset<16> flags(mode);
50 CHECK_ONE_ELL_CONFLICT,
58 if (tessedit_adaption_debug) {
64 if (flags[ADAPTABLE_WERD]) {
66 if (tessedit_adaption_debug && !status) {
67 tprintf(
"tess_would_adapt bit is false\n");
71 if (flags[ACCEPTABLE_WERD]) {
73 if (tessedit_adaption_debug && !status) {
74 tprintf(
"tess_accepted bit is false\n");
86 if (tessedit_adaption_debug) {
93 if (tessedit_adaption_debug) {
94 tprintf(
"word has ell conflict\n");
99 if (flags[CHECK_SPACES] &&
101 if (tessedit_adaption_debug) {
102 tprintf(
"word contains spaces\n");
108 if (tessedit_adaption_debug) {
109 tprintf(
"word is ambiguous\n");
114 if (tessedit_adaption_debug) {
115 tprintf(
"returning status %d\n", status);
void tprintf(const char *format,...)
bool one_ell_conflict(WERD_RES *word_res, bool update_map)
bool word_adaptable(WERD_RES *word, uint16_t mode)
WERD_CHOICE * best_choice
bool dangerous_ambig_found() const
std::string & unichar_string()