emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Making ePub books
@ 2011-12-11  6:59 Alan L Tyree
  2011-12-11  7:07 ` Nick Dokos
  0 siblings, 1 reply; 13+ messages in thread
From: Alan L Tyree @ 2011-12-11  6:59 UTC (permalink / raw)
  To: emacs-orgmode

Debian Squeeze; org 7.7; emacs 23.2.1

I am back to trying to make ePub books from org articles/books. I am 
working on a book which currently produces about 100 pages in LaTeX 
export. It will be about 200 pages when finished.

ePub uses XHTML for the main content. So, I export the org file to 
HTML. It verifies as a valid XHTML1.0 file at the w3c verification 
site: http://validator.w3.org/

OK. Then wrap it up in the mess that is the ePub specification. It 
actually reads OK in FBReader and in Iceweasel with the ePub add on, 
BUT it does not validate. There are several problems, but most of the 
errors involve the "name" attribute. For example:

<h2 id="history"><a name="sec-1" id="sec-1"></a><span class="section-
number-2">1</span> History</h2>

ePub does not like the name in there. Wipe out all the name="xxx" and 
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 
wonder if this is set in some variable that I cannot find.

And, as a general question, whay have both name="sec-1" and id="sec-1" 
in the same element?

I would like to automate everything to go from org to ePub. It doesn't 
seem too hard, but I'm a legal academic, not a programmer :-). Any 
pointers appreciated.

Cheers,
Alan

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-12-11 20:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-11  6:59 Making ePub books Alan L Tyree
2011-12-11  7:07 ` Nick Dokos
2011-12-11  7:25   ` Alan L Tyree
2011-12-11  7:42     ` Nick Dokos
2011-12-11  8:28       ` Alan L Tyree
2011-12-11  9:41       ` Making ePub books: further report Alan L Tyree
2011-12-11  9:52         ` Alan L Tyree
2011-12-11 10:02           ` Jambunathan K
2011-12-11 19:29             ` Alan L Tyree
2011-12-11 15:52           ` Bastien
2011-12-11 15:51         ` Bastien
2011-12-11 20:47           ` Alan L Tyree
2011-12-11  7:50     ` Making ePub books Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).