View Single Post
Old 04-14-2020, 06:59 PM   #210
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,402
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Moe The Cat View Post
what are the advantages of using entities vs. characters?
Mostly that named entities are easier for people to read than numeric entities or even the character itself. & nbsp ; compared to & #160 ; or ' ' for a non-breaking space. However in epub3, there are only 5 permitted named entities which are inherited from XHTML5 which inherited them from XML ( & amp;, & quot;, & apos;, & lt;, & gt; ). You can define other named entities but you would need to add these definitions to each XHTML file unlike epub2 where you could add a DTD in the DOCTYPE. Compare the DOCTYPE in a epub3 ( <!DOCTYPE html> ) while in a epub2 ( <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ).
DNSB is offline   Reply With Quote