View Single Post
Old 12-19-2012, 04:36 PM   #8
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Warning: You should *not* use HTML entities like &eacute;. EPUB is based on XHTML, not HTML, and XHTML does not define any entities other than &amp;, &lt;, &gt;, &apos;. and &quot;—&, <, >, ', and ", respectively.

That means that other HTML entities are not technically legal in an EPUB file, and a reader would be within its rights to barf if it encounters them. You should always replace those entities with proper XML entities, e.g. & #233; or & #xe9; (without the space after the & in both cases, but I can't type them that way because this forum keeps translating them into é) instead of &eacute;.

I originally tried to provide an incomplete list of some common substitutions in the form of Perl regular expressions, but the forum ate those, too. Here's the same list as text.


prime -> #824
Prime -> #8243
ldquo -> #8220
rdquo -> #8221
lsquo -> #8216
rsquo -> #8217
mdash -> #8212. Suggest following this by character #8203 (zero-width space as a wrap hint).
ndash ->#8211. Again, suggest adding a zero-width space afterwards.
copy -> #169
trade -> #8482
deg -> #176
aacute -> #225
eacute -> #233
oacute -> #243
ntilde -> #241
iuml -> #239
ecirc -> #234
nbsp -> #160


For a full list, see http://www.fileformat.info/format/w3c/htmlentity.htm.

Last edited by dgatwood; 12-19-2012 at 04:55 PM.
dgatwood is offline   Reply With Quote