View Single Post
Old 09-06-2015, 07:23 AM   #24
gipsy
Connoisseur
gipsy began at the beginning.
 
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
Quote:
Originally Posted by Doitsu View Post
Sigil and Python use different Regex engines. Sigil uses PCRE and Python uses an older, less powerful version.
AFAIK, Python doesn't support the \p{Greek} syntax. I.e., Greek letters need to be explicitly expressed as Unicode ranges (0370–03FF).
Thanks Doitsu.

I change it to
Code:
	if allBreaks == 'Yes':
		CorrectText("Fixed false line breaks:", r'(([\x{0370}-\x{03FF}\x{1F00}-\x{1FFF},\'–’“”][</ib>]*)</p>\s+<p>([<ib>]*[\x{0370}-\x{03FF}\x{1F00}-\x{1FFF},\'–’“”]))', r'\1 \2')
from a regex sample someone had priveded me here to get rid of hyphen and IT WORKED!

Quote:
Originally Posted by eschwartz View Post
For that matter, it is highly environment-specific -- it would also break hard on a PortableApps.com install, for example.
I run a portable installation. When you run the Sigil. It copies the sigil setting (hunspell, user dictionaries, plugins etc to appdata\local\sigil-ebook and when you exit from sigil they copied back to portable location.

Last edited by gipsy; 09-06-2015 at 07:35 AM.
gipsy is offline   Reply With Quote