1334 if (words->
empty()) {
1341 (*words)[0]->word->set_flag(
W_BOL,
true);
1343 (*words)[0]->word->set_blanks(input_word->
word->
space());
1353 WERD_IT w_it(
row()->
row->word_list());
1355 for (w_it.mark_cycle_pt(); !w_it.cycled_list(); w_it.forward()) {
1364 WERD_RES_IT wr_it(&
row()->word_res_list);
1365 for (wr_it.mark_cycle_pt(); !wr_it.cycled_list(); wr_it.forward()) {
1367 if (
word == input_word)
1378 for (
int w = 0; w < words->
size(); ++w) {
1380 clip_box = ComputeWordBounds(*words, w, clip_box, wr_it_of_current_word);
1383 C_BLOB_LIST* next_word_blobs =
1384 w + 1 < words->
size() ? (*words)[w + 1]->word->cblob_list() :
nullptr;
1385 ComputeBlobEnds(*word_w, clip_box, next_word_blobs, &blob_ends);
1388 C_BLOB_LIST fake_blobs;
1389 C_BLOB_IT fake_b_it(&fake_blobs);
1391 fake_b_it.move_to_first();
1396 for (
int i = 0; i < blob_ends.
size(); ++i, fake_b_it.forward()) {
1397 int end_x = blob_ends[i];
1400 while (!src_b_it.empty() &&
1401 src_b_it.data()->bounding_box().x_middle() < end_x) {
1402 blob_box += MoveAndClipBlob(&src_b_it, &dest_it, clip_box);
1405 while (!rej_b_it.empty() &&
1406 rej_b_it.data()->bounding_box().x_middle() < end_x) {
1407 blob_box += MoveAndClipBlob(&rej_b_it, &dest_it, clip_box);
1412 blob_box = MoveAndClipBlob(&fake_b_it, &dest_it, clip_box);
1414 box_word->InsertBox(i, blob_box);
1421 w_it.add_before_stay_put(word_w->
word);
1424 (*words)[w] =
nullptr;
1425 wr_it.add_before_stay_put(word_w);
1433 delete w_it.extract();