View Single Post
Old 12-29-2016, 05:39 PM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,738
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DaleDe View Post
Where does the idea that HTML5 does not support named characters? It certainly does and if iBooks doesn't then it is not HTML5 compliant. The list of Named character references is in our wiki. This list is a superset of entities and certainly includes nbsp.
HTML5 does support named entities, however, the epub3 standard does not support them without additional entity declarations in the doctype, because epub3 content docs (=HTML files) need to be formatted as HTML5 XHTML files. For more information, see the official epub3 specs.

BTW, you can easily test this for yourself. Create a new epub3 book, insert named entities such as   and have it checked by epubcheck.

For example, the following code will fail epubcheck:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title></title>
</head>
<body>
<p>&nbsp;</p>
</body>
</html>
it'll only pass epubcheck if an entity definition is added:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html [
    <!ENTITY nbsp "&#160;"> 
]>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title></title>
</head>
<body>
<p>&nbsp;</p>
</body>
</html>
Doitsu is offline   Reply With Quote