Thread: Sigil Plugins!
View Single Post
Old 09-02-2013, 10:14 AM   #26
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
@Smarten plugin...
Just found another problem, to do with the apos_exceptions part. Although it did seem to be working, I found that now it doesn't - even though I can't see why it did originally work.

Could you change line ~66 of smarten.py
from this
Code:
            text = re.sub(r"'(" + entry.strip("'") + "\b)", r"&# 8217;\1", text)
TO this
Code:
            text = re.sub(r"'(%s\b)" % entry.strip("'"), r"&# 8217;\1", text)
ALSO removing the space in the '&# 8217;' (added so it displays here)
Perkin is offline   Reply With Quote