Open notYetLost opened 3 years ago
in some rare cases as shown in the second attachment commenting the OCR result, my suggested procedure will incorrectly drop a space: usage of "-" at the end of a line back referencing a word used in some additional context.
Example in the OCR result, where my suggestion would fail: "Microsoft- auf ein lokales Konto" - if this "-" would have been at the end of the line. However this is a very, very rare case!
@notYetLost - Thank you for detailing the needed algorithm! Greetings from Berlin! :-)
In German word breaks at the end of some line are represented by a "-" directly after the last character of the word.
The Android App "OCR" concatenates lines appending a space after the line-break character. Otherwise OCR does a superb job!
The issue could easily be fixed with the following procedure when concatenating lines:
If a line contains a "-" at the end, check the first word of the next line: