View Single Post
Old 09-23-2015, 05:17 PM   #64
gipsy
Connoisseur
gipsy began at the beginning.
 
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
Not only with acknovvledge Calib :P That was a example in english.
In greek there are a few errors like that. That the word have a "ύ" instead of "έ" or a "ο" instead of "σ". In my last epub i had about 60+ errors like that when I spellcheck it.
This is the code that search for the hyphens?
Code:
			CorrectText("Hyphens removed",r"(?s)(\w+)[ ]?-[ ]?(\w+)(?![^<>]*>)(?!.*<body[^>]*>)", IsHyphenated)
Where I can find what each item of the r"..." does so i can test it with the greek characters?

Thanks again

EDIT: Another example in greek...
I had the following Regex to fix some errors.
Code:
Find:(ΓΙ|Γΐ|ΙΙ|II|I\ I|I\ Ι\ΓΤ|ΙΊ|Ιί)
Replace:Π
But the Replace greek character it's possible to be and "H", if it's possible to use the dictionary in the Regex Find/Replace like... (group1)(ΓΙ|Γΐ|ΙΙ|II|I\ I|I\ Ι\ΓΤ|ΙΊ|Ιί)(group2) it would be incredibly useful

Last edited by gipsy; 09-23-2015 at 05:23 PM.
gipsy is offline   Reply With Quote