Hi,
There is one small problem with the patch.
Now there is a space at the beginning of each line in case of preserve_interword_spaces_ == false.
Previously the space was added after the word and last one was removed.
Adding (words_appended > 0) instead of the 1 in the numSpaces calculation would work, but it looks ugly.
so instead of:
int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() : 1;
it would be:
int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() : (words_appended > 0);
Jan
> To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-dev/CAJbzG8xQMgUqgDDy9bQDmoKS-Lh8CYomaS2gfPG1zKgKn-g_Qw%40mail.gmail.com.