Quote:
Originally Posted by Doitsu
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
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.