![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 20000
Join Date: Mar 2011
Location: Denver
Device: iPad
|
Preserving smart quotes
I've seen a few Kindle books that display typewriter quotes instead of typographic quotes or that display quotes as some other incorrect character, so I thought I'd offer a few hints here about preserving typographic quotes that are also on my blog at http://mallardpress.blogspot.com/201...-encoding.html
The Kindle uses MOBI files, of course, and the Kindle prefers you use the Latin-1 encoding, which makes life great if your workflow, like mine is the following: Write in Word, create separate HTML files in Dreamweaver, build an EPUB in Sigil and use calibre to convert the EPUB to MOBI. Yes, I know that sounds complicated and it is, but it works great for me because I have great control over the whole process, which allows me to preserve things like typographic quotes. If you're unfamiliar with them, typographic quotes are true open and close quotes that subconsciously tells a reader this is the start of a quote and this is the end of a quote. Typographers call them sixes and nines because most serif fonts display them looking like single or double sixes and nines. If you've written your book in Microsoft Word, you've probably seen them because Word automatically converts typewriter quotes into the appropriate open and close quotes. But if you copy text from a Word document and paste it into a Dreamweaver document, you'll be pasting unencoded quotes that will probably not display properly on the Kindle unless you specified that the Dreamweaver document uses the Latin-1 encoding, which as I said earlier the Kindle prefers. However, make sure you're pasting your Word text into the Design view, not the Code view or this trick won't work. ![]() Unfortunately, there is a drawback to this method if you're creating EPUBs, which prefers the UTF-8 encoding, but all is not lost. When you pasted your Word text into the Latin-1 encoded Dreamweaver page, Dreamweaver converted the quotes and other special characters into named HTML entities, such as “ and ’ -- or left double quote and right single quote. In the Code view, do a search and replace and change “ into the corresponding numeric entity “ After you've done the search and replace, change the encoding of your Dreamweaver document to UTF-8. You can find lists of named HTML entities and their corresponding numeric entities around the web, but I've included a short list at the blog entry listed at the beginning of this post. |
![]() |
![]() |
![]() |
#2 | |
Feral Underclass
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,622
Karma: 26821535
Join Date: Jan 2010
Location: Yorkshire, tha noz
Device: 2nd hand paperback
|
Quote:
|
|
![]() |
![]() |
![]() |
#3 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 20000
Join Date: Mar 2011
Location: Denver
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 1004164
Join Date: May 2011
Device: Kindle 2
|
You know, I simply upload a word file with the quotes (sixes and nines) and I don't have any problem at all.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |
Removing smart quotes | horseyride | Workshop | 8 | 03-06-2008 12:08 PM |
Smart quotes in RTF? | ogghead | Sony Reader | 8 | 01-23-2007 06:38 PM |