-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve paragraph detection #502
Comments
Hi @Pawwwle, what you experience is NormCap's "parse" mode, which tries to detect certain common text layouts and automatically (re-)format the text accordingly. In your example, NormCap does detect the selected text as a "Paragraph" (multiple lines of continuous texts). In such a situation, you usually don't want to preserve the line breaks, that's why they get removed. However, in your case, this is a false detection, instead NormCap should have detected the text as "Multiline" (multiple lines of text, not continuous, like lists). Then it would have preserved the line breaks. Workaround: ![]() The desired solution: (to be implemented)
|
Thanks for trying, @Pawwwle. This in deed seems odd, I'll take a look at it and hopefully get it improved a bit for the 0.5.0 final version 🙂 |
Is was able to identify an issue in "raw"-mode which caused some missing line-breaks. Also, I was able to improve the paragraph parsing a bit: With 8ad2f6a, when detecting the image ... ... then "raw"-mode comes quite close to original layout:
... while "parse"-mode does swallow the first line-break:
This is not ideal here, but in most cases you don't want to preserve such intra-paragraph line-breaks, as those should be added by the application you are pasting the text into, depending on the supported line-width. So I guess this is fine. The results for the example picture in the initial bug report are also a bit better, but Tesseract detects a intra-paragraph line-break between 1. and 2. bullet point, while a paragraph break is detected between 2. and 3. bullet point: "parse"-mode:
"raw"-mode:
I'm afraid, this is as good as I can get it for now, as this is a limitation of Tesseract... 🙁 |
What happened?
The application does not use paragraphs (newlines). Please fix it because inserting paragraphs manually is very cumbersome.
How did you install NormCap?
MSI installer (Windows)
Operating System + Version?
Windows 10/11
[Linux only] Display Server (DS) + Desktop environment (DE)?
No response
Debug log output?*
No response
The text was updated successfully, but these errors were encountered: