View Single Post
Old 07-12-2014, 10:40 PM   #12
mikapanja
Perfectionist
mikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
Quote:
Originally Posted by JSWolf View Post
Is there any easy way to find single quotes (not straight) that are not part of a contraction in order to convert them to double quotes? I find it odd reading a UK style eBook that has single quotes where I normally expect double quotes.
@ JSWolf

I believe this should cover it, but it will replace all the quotes, both in dialogues and outside them, except those that are part of a contraction. Of course, the book must have proper punctuation to begin with.

1) Replace opening single curly quotes with opening double curly quotes
Search:
Replace:

2) Replace closing single curly quotes with closing double curly quotes (two passes)

Search: ([.|…|,|:|;|?|!|\-|–|—])’
Replace: \1”

Search: ’([ |.|…|,|:|;|?|!|\-|–|—])
Replace: ”\1

Some of the combinations are unlikely to be found, but I guess better an overkill than missed instances
mikapanja is offline   Reply With Quote