ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bugs in XML export (for ePub)
@ 2014-03-11  5:04 Henning Hraban Ramm
  2014-03-11  6:42 ` Thangalin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2014-03-11  5:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi again.

I understand you don’t want to export some arbitrary (X)HTML. That’s fine, I can make my own XSLT.
And I’m glad that \setupexport doesn’t kill hyphenation any more.

But there are serious errors in export, that have nothing to do with „there’s no usable standard“.


[1] root node

First, the exported XML file lacks a root node!
Just call it <export> or <context> or whatever you like, but it MUST be there, otherwise it’s no wellformed XML.

If I enable xhtml mode like
\setupbackend[export=export.xml,xhtml=yes]
the exported file stops after a few lines.

If I set xhtml=somefile.xhtml, I get the broken export.xml and the complete somefile.xhtml, so I guess xhtml=yes causes overwriting the complete file with the incomplete one.

As far as I remember previous discussions, this incomplete content is caused by the project structure (using project, product, environment); from single file it seemed to work, at least at that time, I didn’t check.

Since xhtml mode doesn’t do anything useful anyway, I can just drop the setting.


[2] metadata

The metadata from \setupexport is completely ignored.
The metadata from \settaggedmetadata is exported just fine, but it ends up within the first block of the first page, if that’s not empty.
e.g. my text starts with \startlines Title etc. \stoplines, then <metadata><metavariable> etc. is exported within <lines>.
If I add something like \startparagraph \stopparagraph to contain the metadata, it disappears. Of course I don’t want to add something visible (then it works again).


[3] cover picture

The firstpage key of setupexport is supposed to define a cover picture for the ePub, but it doesn’t do anything, as far as I can tell.
Or is something wrong in:
\setupexport[firstpage={img/cover.jpg}]
?


[4] delimited

If \quotation{} contains more than one paragraph (in my case it’s a quote), the <delimited detail="quotation“> is ended after the first paragraph.


(As always, working with latest MkIV beta on OSX.)

Greetlings, 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] 9+ messages in thread

end of thread, other threads:[~2014-03-12  5:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-11  5:04 Bugs in XML export (for ePub) Henning Hraban Ramm
2014-03-11  6:42 ` Thangalin
2014-03-11  7:52   ` Henning Hraban Ramm
2014-03-11 17:54     ` Thangalin
2014-03-12  3:24       ` Henning Hraban Ramm
2014-03-12  4:49         ` Henning Hraban Ramm
2014-03-11  8:09 ` Henning Hraban Ramm
2014-03-11  9:33   ` Wolfgang Schuster
2014-03-12  5:17 ` 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).