|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
RegEx to correct Single quote to Double?
I have an epub that for some reason all the dialog is bracketed by single smart quotes. The single quote is also used for contractions and such
Is there a RegEx that would correct (but not over correct) this? It's really annoying me ![]() Now: He said, 'I'm going home now.' And he left. Requested: He said, "I'm going home now." And he left. but with the smart curly quotes Thanks |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Never mind -- once I realized I needed to do it multiple steps, it was much easier
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,832
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It's done that way in a lo of UK books.
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Didn't know that.
Might be where Gutenberg got it |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to search/replace double quote with left/right double quote ? | Alt68er | Sigil | 4 | 01-24-2014 12:57 PM |
| Calibre: Double and single quotes in xml-tags. | Varella | Conversion | 14 | 12-05-2012 10:02 AM |
| restricting regex to single lines of code? | ElMiko | Sigil | 14 | 01-28-2012 05:39 PM |
| Single-quote/Double-quote | Rand Brittain | ePub | 9 | 09-01-2011 12:34 PM |
| HTML2ePub conversion (question mark instead single quote) | mikij | Calibre | 5 | 08-07-2010 03:15 AM |