From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan L Tyree Subject: Re: Making ePub books Date: Sun, 11 Dec 2011 18:25:45 +1100 Message-ID: <1323588345.20628.13@windy> References: <1323586770.20628.12@windy> <6723.1323587268@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZdms-0004Wg-7J for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 02:25:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZdmq-0006qv-9j for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 02:25:30 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:56262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZdmq-0006qq-1F for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 02:25:28 -0500 Received: by iahk25 with SMTP id k25so8042615iah.0 for ; Sat, 10 Dec 2011 23:25:27 -0800 (PST) In-Reply-To: <6723.1323587268@alphaville.dokosmarshall.org> (from nicholas.dokos@hp.com on Sun Dec 11 18:07:48 2011) Content-Disposition: inline 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 Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org On 11/12/11 18:07:48, Nick Dokos wrote: > Alan L Tyree wrote: >=20 > > Debian Squeeze; org 7.7; emacs 23.2.1 > >=20 > > I am back to trying to make ePub books from org articles/books. I > am=3D20 > > working on a book which currently produces about 100 pages in > LaTeX=3D20 > > export. It will be about 200 pages when finished. > >=20 > > ePub uses XHTML for the main content. So, I export the org file > to=3D20 > > HTML. It verifies as a valid XHTML1.0 file at the w3c > verification=3D20 > > site: http://validator.w3.org/ > >=20 > > OK. Then wrap it up in the mess that is the ePub specification. > It=3D20 > > actually reads OK in FBReader and in Iceweasel with the ePub add > on,=3D20 > > BUT it does not validate. There are several problems, but most of > the=3D20 > > errors involve the "name" attribute. For example: > >=20 > >

class=3D3D"sectio=3D > > n- > > number-2">1 History

> >=20 > > ePub does not like the name in there. Wipe out all the name=3D3D"xxx" > and=3D20 > > the problem goes away. Everything else still works. > >=20 > > I know that I can do a post export clean up of the XHTML file, but > I=3D20 > > wonder if this is set in some variable that I cannot find. > >=20 > > And, as a general question, whay have both name=3D3D"sec-1" and > id=3D3D"sec-1"=3D20 > > in the same element? > >=20 > > I would like to automate everything to go from org to ePub. It > doesn't=3D20 > > seem too hard, but I'm a legal academic, not a programmer :-). > Any=3D20 > > pointers appreciated. > >=20 >=20 > Back when Avdi Green was working on his book, there was some > discussion > of this and Anthony Lander provided a pointer to=20 > http://calibre-ebook.com/ > - see=20 >=20 > http://thread.gmane.org/gmane.emacs.orgmode/41826/focus=3D41849 Yes, Calibre does a nice job of converting XHTML to ePub; it can be=20 read in all the readers that I use, but it won't pass the validation=20 tests. OK unless you want to publish on sites that require validation. Cheers, Alan > Nick >=20 >=20 --=20 Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172385@iptel.org