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
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?
|