Code:
#Fixes ώ in words that are misspelled
CorrectText("ώ fixes",r"(\w+)(ιίι|\(ό|ο\)|ίό|ο>|ο'\)|ο'ι|ιό|οί|ιο|οι|<ο|οϊ)(\w+)(?![^<>]*>)(?!.*<body[^>]*>)", IsFixO)
Hi,
in the epub tidy plugin i use this code to find mispelled
ώ
It searches for ιίι, (ό, etc and if it's correct it change it to ώ.
As the code is now, its working only works within a word (for example
στιίιμα changes to
στρώμα
It doesn't work in the begining or the end of the word (for example
ιίιστε [the correct word is
ώστε] or
αντιπαρατεθιίι [the correct word is
αντιπαρατεθώ]
If i change the first (\w+) to (\w+|\ ) i get findings and in the beggining if the word.
What i can change to match and the end of the word?
Thanks