Off Topic: merge Spaces in words by OCR old books

49 views
Skip to first unread message

Martin Jenniges

unread,
Jul 2, 2019, 4:31:48 AM7/2/19
to tesser...@googlegroups.com

Hello,


I scan and ocr old books for a historial Society.


In some books, the line have some words with estra Spaces, par example B ue rg er m ei ster ei for Buergermeisterei.


Now, after ocr this books, I must merge this extra Spaces once per once.


My Question: give it a Makro or Extension for LibreOffice Writer or Notepad++, which can help me ?


I hope, You understand me; and I thank You for answer me!


Martin Jenniges

_ Flaviu

unread,
Jul 2, 2019, 4:49:21 AM7/2/19
to tesseract-ocr
You can also read programmatically the text and remove undesired spaces, of course, after your algorithm …
Another idea, check the read options for tesseract.

_ Flaviu

unread,
Jul 2, 2019, 4:55:22 AM7/2/19
to tesseract-ocr
Look, if you tell me the rule of trimming spaces, I will write you a program that remove spaces in your text :)

Martin Jenniges

unread,
Jul 2, 2019, 8:48:28 AM7/2/19
to tesser...@googlegroups.com
Hello Flaviu,

for read the ocred text, Iwork with LibreOffice Writer.

My Idea is an Extension, which work with the Dictionary of the Language - in my cause Germany.

When start the Excension, it search new words, per exampled from following Line

B ur germ eister von St V it h

the first Charakter "B", mark it-I change the marked Text to "B ur germ eister"  and the Extension wait for the specific keu -par example <Space>- which say it "del all Spaces"
after delet the Spaces, the Extension search the next Charakter
<Escape> end the Extension

Sorry, when tis idea ist mitchmatch; my Language is German und my English is a little bad ;-)

See regards

Martin
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/411d1462-b903-4c18-ac67-dc7ed70c8439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


_ Flaviu

unread,
Jul 3, 2019, 6:16:14 AM7/3/19
to tesseract-ocr
No problem with your english, I am not a native english spoken language too, but I understand you. 

Good idea with the Extension, I don't know that extension. And things are going ? Are handling well ?


On Tuesday, July 2, 2019 at 11:31:48 AM UTC+3, Martin Jenniges wrote:
Reply all
Reply to author
Forward
0 new messages