View Single Post
Old 02-23-2014, 03:35 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
EPUB2 and the DOCTYPEgate

Hi

There is currently a difference betwen calibre's Editor and Sigil. The Editor gets systematically rid of the DOCTYPE and Kovid Goyal writes that the DOCTYPE is required only when there are named entities (like nbsp).

I am personnally quite happy with this but I hear people arguing against it nearly for "moral" reasons. Illegal, non respect of such norm, and so on.

I would like to find the reference file where this is an allowed use. The problem for me is that any document I find gives a reference to another and so on.

I am sure this is old news, because some years ago already, writer2xhtml offered an option to produce an EPUB2 (EPUB3 was non-existent at that time) using only UTF8 or UTF16 characters - like the Editor today. (see screenshot)

I speak about the common EPUB2 not about EPUB3, html 5 or anything else. I found in the xhtml 1.1 specs telling that the DOCTYPE was required (screenshot 2). But there is another one about xhtml 2 which says that it MAY only be required (screenshot 3) and is only necessary "when the character encoding of the document is other than the default UTF-8 and UTF-16" but it's a draft.

Which one applies to EPUB 2? How old is the xhtml 2 specification?

IDPF specifies for the EPUB 2.01 (May 2010), that the required MIME media type for application/xhtml + xml must be XHTML 1.1. That would mean that a DOCTYPE is required.
http://www.idpf.org/epub/20/spec/OPS...m#Section1.3.4
Attached Thumbnails
Click image for larger version

Name:	UTF16.png
Views:	345
Size:	54.7 KB
ID:	119423   Click image for larger version

Name:	xhtml 1.1.png
Views:	298
Size:	17.0 KB
ID:	119424   Click image for larger version

Name:	xhtml 2.0.png
Views:	308
Size:	58.9 KB
ID:	119425  

Last edited by roger64; 02-23-2014 at 05:44 AM.
roger64 is offline   Reply With Quote