From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Making ePub books Date: Sun, 11 Dec 2011 02:07:48 -0500 Message-ID: <6723.1323587268@alphaville.dokosmarshall.org> References: <1323586770.20628.12@windy> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZdVq-0001SQ-Oy for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 02:07:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZdVp-0004KA-Hy for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 02:07:54 -0500 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:38613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZdVp-0004Jl-B4 for emacs-orgmode@gnu.org; Sun, 11 Dec 2011 02:07:53 -0500 In-Reply-To: Message from Alan L Tyree of "Sun, 11 Dec 2011 17:59:30 +1100." <1323586770.20628.12@windy> 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 wrote: > Debian Squeeze; org 7.7; emacs 23.2.1 > > I am back to trying to make ePub books from org articles/books. I am=20 > working on a book which currently produces about 100 pages in LaTeX=20 > export. It will be about 200 pages when finished. > > ePub uses XHTML for the main content. So, I export the org file to=20 > HTML. It verifies as a valid XHTML1.0 file at the w3c verification=20 > site: http://validator.w3.org/ > > OK. Then wrap it up in the mess that is the ePub specification. It=20 > actually reads OK in FBReader and in Iceweasel with the ePub add on,=20 > BUT it does not validate. There are several problems, but most of the=20 > errors involve the "name" attribute. For example: > >

n- > number-2">1 History

> > ePub does not like the name in there. Wipe out all the name=3D"xxx" and=20 > the problem goes away. Everything else still works. > > I know that I can do a post export clean up of the XHTML file, but I=20 > wonder if this is set in some variable that I cannot find. > > And, as a general question, whay have both name=3D"sec-1" and id=3D"sec-1"=20 > in the same element? > > I would like to automate everything to go from org to ePub. It doesn't=20 > seem too hard, but I'm a legal academic, not a programmer :-). Any=20 > pointers appreciated. > Back when Avdi Green was working on his book, there was some discussion of this and Anthony Lander provided a pointer to http://calibre-ebook.com/ - see http://thread.gmane.org/gmane.emacs.orgmode/41826/focus=41849 Nick