From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan L Tyree Subject: ePub construction Date: Wed, 14 Dec 2011 09:45:35 +1100 Message-ID: <1323816335.4781.0@windy> 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]:54252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rab66-0004Yv-M7 for emacs-orgmode@gnu.org; Tue, 13 Dec 2011 17:45:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rab65-0003ts-4E for emacs-orgmode@gnu.org; Tue, 13 Dec 2011 17:45:18 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:52309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rab64-0003tm-UX for emacs-orgmode@gnu.org; Tue, 13 Dec 2011 17:45:17 -0500 Received: by wgbdt11 with SMTP id dt11so276074wgb.30 for ; Tue, 13 Dec 2011 14:45:15 -0800 (PST) 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 To: emacs-orgmode@gnu.org G'day, Here are the modifications that I needed to make to the exported html=20 file (using the standard exporter) in order to get a valid ePub=20 document. http://threepress.org/document/epub-validate provides an=20 on-line validation service. My document is relatively simple, but does have footnotes, citations=20 and formatting commands. I will be happy to add a fuller description to worg if someone will=20 point me to some instructions. 1. Make the html file have utf-8 encoding; there are probably several=20 ways to do this, but I used the emacs23 menu MULE options on the org=20 document. 2 Change the language statement by removing the "lang=3D" attribute: From: To: 3 Change anchor descriptions associated with section headings by removing "name=3D" entries, for example, From: To: NOTE: this can now be done by customising org-export-html-headline- anchor-format (Thanks Bastien!!) 4. Change anchor class=3D"footref" by replacing "name=3D" with "id=3D". For example: from: to: 5. Change anchor class=3D"footnum" by replacing "name=3D" with "id=3D". For example: from: 1 to: 1 Cheers, Alan --=20 Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172385@iptel.org