View Single Post
Old 05-02-2013, 04:33 AM   #11
Steadyhands
Connoisseur
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
I've used this series of search & replaces to convert from single curly quotes to double curly quotes. Saved as a saved search in Sigil an then load all/ replace all. Use with caution until you are sure it's doing what you expect. It's not perfect but gets most of them - expects the text to be decent punctuation in the first place.

Quote:
Name=Quotes
Left Quote
Find=<p class="calibre(\d+)\">‘
Replace=<p class="calibre\1">“
Left quote2
Find=(\p{P}) ‘
Replace=\1 “
Right Quote
Find=(\p{P})’</p>
Replace=\1”</p>
Right Quote2
Find=(\p{P})’
Replace=\1”
The Right Quote2 have a space after the end of find and replace.
Steadyhands is offline   Reply With Quote