From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Dietsche Subject: Re: ePub construction Date: Wed, 14 Dec 2011 09:53:35 +0100 Message-ID: <87fwgn3568.fsf@rat.lan> References: <1323832442.2949.1@misty> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rakb3-0004ru-Nv for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 03:53:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rakb1-0000c4-Qq for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 03:53:53 -0500 Received: from www85.your-server.de ([213.133.104.85]:58764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rakb1-0000bD-In for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 03:53:51 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan L Tyree Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Alan L Tyree writes: > On 14/12/11 12:42:38, Nick Dokos wrote: >> >> Interesting - I downloaded the epub validator, ran Calibre on a silly >> little org-produced HTML file and duplicated your "lang" problem. >> >> AFAICT, all of the problems you mention above are legal HTML4, so >> either >> the epub spec (which I have not looked at: do you have a pointer?) is >> made to trip people up by enforcing restrictions that they dreamed >> up, >> or the validator is not quite as smart as it should be. > > Yes, the org export file validates at w3c as a valid XHTML1.0 file. The > ePub spec is here: http://idpf.org/epub but I admit fatigue in trying > to wade through it, so I don't know what XHTML1.0 constructions it > objects to. It seems like the kind of document that nobody has ever > read: sort of like EULAs and express warranties. I took a quick look through and right to the beginning "1.3: Relationship to Other Specifications" it says: "This specification combines subsets and applications of other specifications." Next, in "1.3.4: Relationship to XHTML and DTBook" it talks about "..., the Preferred Vocabularies do not include all XHTML 1.1 elements and attributes." So, even if you have a valid XHTML file, only a subset of it might be valid for an epub book. Same goes for CSS. Lazy as I am, I haven't looked through the other epub parts, since this seems not relevant here. Another interesting epub checker might be , which uses "... schemas that were developed by IDPF and DAISY. ..." according to their website. Regards, Olaf