ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ePub from project?
@ 2011-12-22 17:06 Henning Hraban Ramm
  0 siblings, 0 replies; only message in thread
From: Henning Hraban Ramm @ 2011-12-22 17:06 UTC (permalink / raw)
  To: mailing ConTeXt users list for

I thought I could try ePub with a current book project.

export.xml from my product looks good and contains "everything" from  
the components,
but the xhtml file contains only a ToC - and thus, ePub is empty.

Further, it seems like arguments of \settaggedmetadata like name,  
title, author are just ignored in ePub.

ePubReader in Firefox says (translated)
"""
XML processing error: "Junk" after document element
Address: file:.../epub/4/OPS/example.xhtml
Line Nr. 173, Column 1:<section detail="chapter" location='aut:2'>
"""

Adobe Digital Editions shows no error, just an empty book.

With the following small example, I get at least an unstyled body text:
"""
\setupbackend[export=example.xml,xhtml=example.xhtml]
\settaggedmetadata[name=Hraban,title=Example,author=Hraban,version=0.1]
\setupinteraction[state=start,color=,contrastcolor=,
	title=Test,subtitle={},
	author={Henning Hraban Ramm}]
\setupexport[bodyfont=12pt,hyphen=yes]

\starttext

\startchapter[title=Test]

\input tufte

\stopchapter

\stoptext
"""

Hm, the xhtml file doesn’t look like HTML at all, and even styling the  
existing tags in CSS doesn’t affect the output.
If I change <sectiontitle> to <xhtml:h2>, it’s reckognized.


In short:
- xhtml is just an xml without html tags
- xhtml doesn’t contain content of components


Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-22 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-22 17:06 ePub from project? Henning Hraban Ramm

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 NNTP newsgroup(s).