#include <pageres.h>
Definition at line 133 of file pageres.h.
◆ ROW_RES() [1/2]
◆ ROW_RES() [2/2]
ROW_RES::ROW_RES |
( |
bool |
merge_similar_words, |
|
|
ROW * |
the_row |
|
) |
| |
Definition at line 116 of file pageres.cpp.
130 bool add_next_word =
false;
134 for (word_it.mark_cycle_pt(); !word_it.cycled_list(); word_it.forward()) {
135 auto* word_res =
new WERD_RES(word_it.data());
140 word_res->part_of_combo =
true;
142 }
else if (merge_similar_words) {
143 union_box = word_res->word->bounding_box();
144 add_next_word = !word_res->word->flag(
W_REP_CHAR) &&
146 word_res->odd_size = !add_next_word;
148 WERD* next_word = word_it.data_relative(1);
149 if (merge_similar_words) {
157 int prev_right = union_box.
right();
158 union_box += next_box;
162 add_next_word =
false;
170 if (combo ==
nullptr) {
171 copy_word =
new WERD;
172 *copy_word = *(word_it.data());
176 word_res_it.add_to_end(combo);
178 word_res->part_of_combo =
true;
◆ ~ROW_RES()
◆ char_count
int32_t ROW_RES::char_count |
◆ rej_count
int32_t ROW_RES::rej_count |
◆ row
◆ whole_word_rej_count
int32_t ROW_RES::whole_word_rej_count |
◆ word_res_list
WERD_RES_LIST ROW_RES::word_res_list |
The documentation for this class was generated from the following files: