emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] ePub construction


From: Alan L Tyree
Subject: [O] ePub construction
Date: Wed, 14 Dec 2011 09:45:35 +1100

G'day,

Here are the modifications that I needed to make to the exported html 
file (using the standard exporter) in order to get a valid ePub 
document. http://threepress.org/document/epub-validate provides an 
on-line validation service.

My document is relatively simple, but does have footnotes, citations 
and formatting commands.

I will be happy to add a fuller description to worg if someone will 
point me to some instructions.


1. Make the html file have utf-8 encoding; there are probably several 
ways to do this, but I used the emacs23 menu MULE options on the org 
document.

2 Change the language statement by removing the "lang=" attribute:

From: <html xmlns="http://www.w3.org/1999/xhtml"; lang="en" 
xml:lang="en">

To: <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">

3 Change anchor descriptions associated with section headings by
   removing "name=" entries, for example,

From: <a name="sec-1" id="sec-1"></a>

To: <a id="sec-1"></a>

NOTE: this can now be done by customising org-export-html-headline-
anchor-format (Thanks Bastien!!)

4. Change anchor class="footref" by replacing "name=" with "id=". For
   example:

from: <a class="footref" name="fnr.2" href="#fn.2">

to: <a class="footref" id="fnr.2" href="#fn.2">

5. Change anchor class="footnum" by replacing "name=" with "id=". For
   example:

from: <a class="footnum" name="fn.1" href="#fnr.1">1</a>

to: <a class="footnum" id="fn.1" href="#fnr.1">1</a>

Cheers,
Alan


-- 
Alan L Tyree                    http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206              sip:address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]