03-06-2008, 10:10 AM | #1 |
Enthusiast
Posts: 32
Karma: 10
Join Date: Oct 2007
Device: none
|
Removing smart quotes
Is there any easy way to remove smart quotes (translate them into straight quotes) from a text file? I tried bookdesigner which cleans up lots of stuff, but it leaves those in, as far as I can tell....Is there an option I'm missing to remove that and kill em-dashes as well? thanks
|
03-06-2008, 10:20 AM | #2 | |
Resident Curmudgeon
Posts: 75,862
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
03-06-2008, 10:23 AM | #3 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You could simply do a search and replace. I am, however, a little puzzled as to why you would want to do this. Replacing quotes is reasonable--smart quotes don't display correctly in some codepages--but you certainly should NOT be getting rid of dashes--they are a fundamental part of the book's formatting.
|
03-06-2008, 10:29 AM | #4 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Or is smart quotes something that display quotes correctly depending on language setting? |
|
03-06-2008, 10:32 AM | #5 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
Advert | |
|
03-06-2008, 10:35 AM | #6 |
Resident Curmudgeon
Posts: 75,862
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
And don't forget the curly apostrophes as well. Those can also be a problem.
But I have never heard of anyone having a problem with em dashes being there. Just a problem with them not being there. |
03-06-2008, 11:09 AM | #7 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
03-06-2008, 11:27 AM | #8 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
It does indeed - it's in different character positions in codepage 1252 and UTF-8. That's why, I think, in plain text files it's best to do as PG do and represent it as "--". This can easily be replaced with a "real" dash on other systems. In HTML, provided one represents it as the "—" entity, there's no problem.
|
03-06-2008, 12:08 PM | #9 |
Resident Curmudgeon
Posts: 75,862
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
To fix em dashes, go to the search & replace (F2) and in the search line put in alt-0151 (from the keypad) and then in the replace line put in -- and it'll replace em dash with -- and you'll know when reading where the em dash was supposed to be.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre and Smart Quotes | salasnet | Calibre | 9 | 09-27-2010 04:32 AM |
Smart Quotes | Toxaris | ePub | 2 | 05-31-2010 10:32 AM |
Smart quotes in XHTML? | MaggieScratch | ePub | 12 | 03-28-2009 05:53 PM |
BASIC program for smart quotes | Puffball | Workshop | 4 | 01-24-2007 09:43 AM |
Smart quotes in RTF? | ogghead | Sony Reader | 8 | 01-23-2007 06:38 PM |