View Single Post
Old 03-26-2009, 06:02 PM   #3
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,082
Karma: 315558332
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
If you use a text editor that handles UTF-8 text, and specify the XHTML character set to be UTF-8 you can just include curly quotes and they'll verify OK. Otherwise you'll need to use the entities.

“

etc
Quote:
Originally Posted by MaggieScratch View Post
After some experimentation, I've determined that the easiest way (for me) to make an ePub book from plain text is to just mark it up myself. However, I can't figure out how to get "smart quotes" in an XHTML page and have it be valid. As far as I can tell, smart quotes aren't valid for XHTML, or at least I can't get any file that uses them to validate. It doesn't say why, just that it encountered an unexpected code or something like that. I took out the smart quotes and it validated just fine.

I've been unzipping ePub books to see how they work. I've found some that have the smart quotes. Are they just inserted and nobody worries if they don't validate?
pdurrant is offline   Reply With Quote