[NTG-context] EPUB XHTML Format

Thangalin thangalin at gmail.com
Wed Sep 4 03:19:38 CEST 2013


Hi,

The attached t.tex file produces the attached t.xhtml file. I have looked
at the following documents:

   - http://en.wikipedia.org/wiki/EPUB#Open_Publication_Structure_2.0.1
   - http://en.wikipedia.org/wiki/DTBook
   - http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm
   - http://www.w3.org/TR/xhtml11/doctype.html
   - http://www.w3.org/TR/html5/sections.html

It seems that the macros in t.tex are being written out as XML elements,
verbatim. It is my understanding that these XML elements, however, do not
conform to the minimal content models associated with XHTML 1.1.

What needs to happen to take a minimal ConTeXt file (such as the attached)
to produce a minimum viable EPUB that:

   - Generates XHTML headers (including <!DOCTYPE and <html...>)
   - Produces images as img tags, rather than float tags.
   - Uses typical XHTML tags for <body> elements (e.g., <ol> for ordered
   lists).

Ideally, I would like to do something such as:

   - context t.tex
   - mtxrun --script epub --make t.specification

to generate an EPUB that passes validation of
epubcheck<http://code.google.com/p/epubcheck/wiki/Library>,
with an output XHTML file that more closely matches the XHTML specification.

How can I help?

Kind regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130903/75027b27/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.tex
Type: application/x-tex
Size: 995 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130903/75027b27/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.xhtml
Type: application/xhtml+xml
Size: 3036 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130903/75027b27/attachment.xhtml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: epub-errors.log
Type: application/octet-stream
Size: 1647 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130903/75027b27/attachment.obj>


More information about the ntg-context mailing list