From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing ConTeXt users list for <ntg-context@ntg.nl>
Subject: ePub from project?
Date: Thu, 22 Dec 2011 18:06:05 +0100 [thread overview]
Message-ID: <018FD9C3-5277-4AFB-B82B-195FC301A7AC@fiee.net> (raw)
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
___________________________________________________________________________________
reply other threads:[~2011-12-22 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=018FD9C3-5277-4AFB-B82B-195FC301A7AC@fiee.net \
--to=hraban@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).