![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
|
Single quotes to double quotes?
Does anybody know of a way that I can take an ebook and convert all of the single quotes in it to double quotes, while leaving the apostrophes alone, and converting what were previously double quotes to single? For example:
Jane said, 'Bob said, "I heard you" when we went to John's house' Should be: "Bob said, 'I heard you' when we went to John's house" I can't do a find replace in word because that messes up all of the apostrophes and whatnot. Thanks. |
![]() |
![]() |
![]() |
#2 |
Nameless Being
|
Somewhere on MobileRead is a recent answer to this. It involved using regular expressions to convert apostrophes between letters to another character then bulk converting the remaining apostrophes to double quotes then converting the other character back to apostrophes. There was, I believe another step to deal with possessive apostrophes that follow s (as in "the Jones' house")
|
![]() |
Advert | |
|
![]() |
#3 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
|
Simplest solution that I have ever seen to this on another forum I frequent:
http://ubuntuforums.org/showthread.php?t=1589696 |
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
I do a search for [space]" and change them to something like %% same for "[space]
Then search for [space]' and change to [space]" same for the other side '[space] Then search and replace for %% to ' |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Nameless Being
|
A search for "typographic quotes" yielded this thread.
Of interest in that thread is a link to GutenMarks. |
![]() |
![]() |
#7 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
* You can use Sigil to edit the ePUB, and Calibre to convert it to other formats if you need it. ** This works for the books I create, because I take the trouble to manually replace every " and ' with the correct codes. |
|
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#9 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
It's Dr. Penguin now!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,909
Karma: 4705733
Join Date: Jan 2009
Location: (USA)
Device: iPad mini, Samsung Note 3, Sony PRS-650 (rarely used now)
|
I was thinking the same as some- I just do (space)" and "(space) and replace as needed. Has always worked for me for similar issues.
|
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
Regards, Alex |
|
![]() |
![]() |
![]() |
#12 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
Regards, Alex |
|
![]() |
![]() |
![]() |
#14 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
nothing wrong with the "z" ....
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change single quotes to double quotes | Elfwreck | Workshop | 16 | 04-26-2013 10:06 AM |
Dealing with double quotes " in URL | kinurev | Recipes | 6 | 10-03-2010 09:57 AM |
convert straight quotes to curly quotes | alansplace | Calibre | 3 | 09-25-2010 03:51 PM |
Quotes | novels.books | Astak EZReader | 4 | 10-26-2009 09:56 PM |