View Single Post
Old 11-02-2015, 04:20 PM   #111
gipsy
Connoisseur
gipsy began at the beginning.
 
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
CalibUser i think i found it. I'm gonna test it tommorow.
Code:
				#Fixes ώ in words that are misspelled
				CorrectText("ώ fixes",r"(\w+)(ιίι|(ό|ο)|ίό|ο&gt;|ο'ι|ιό|οί|ιο|οι|&lt;ο|οϊ)(\w+)(?![^<>]*>)(?!.*<body[^>]*>)", IsFixO)
				#Fixes ω in words that are misspelled
				CorrectText("ω fixes",r"(\w+)(ιίι|(ό|ο)|ίό|ο&gt;|ο'ι|ιό|οί|ιο|οι|&lt;ο|οϊ)(\w+)(?![^<>]*>)(?!.*<body[^>]*>)", IsFixW)
The red ones maybe mess with the m.group(x)
gipsy is offline   Reply With Quote