|
|
#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
|
|
|
|
|
|
#2 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,789
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560
Karma: 93980341
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.
|
|
|
|
|
|
#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? |
|
|
|
|
|
|
#5 | |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,789
Karma: 150249619
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. |
|
|
|
|
|
#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 |
|
|
|
|
|
|
#8 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560
Karma: 93980341
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.
|
|
|
|
|
|
#9 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,789
Karma: 150249619
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 05:32 AM |
| Smart Quotes | Toxaris | ePub | 2 | 05-31-2010 11:32 AM |
| Smart quotes in XHTML? | MaggieScratch | ePub | 12 | 03-28-2009 06:53 PM |
| BASIC program for smart quotes | Puffball | Workshop | 4 | 01-24-2007 10:43 AM |
| Smart quotes in RTF? | ogghead | Sony Reader | 8 | 01-23-2007 07:38 PM |