EPUB workflow from ConTeXt source?
I'd like to keep working in one format so I was wondering if there is a ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)? Thanks, G
Am 16.02.2011 um 17:42 schrieb Gerben.Wierda@rna.nl:
I'd like to keep working in one format so I was wondering if there is a ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)?
With MkIV you can get a xml version of document with \setupbackend[export=yes]. Wolfgang
On 17-2-2011 8:14, Gerben Wierda wrote:
no, but one can of course convert one kind of xml into another for epub one has to provice css etc anyway (and epub is not much more than packaged html + css) going the other way around, processing an epub file also demands some handywork as the source code is not by definition well structured Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Feb 17, 2011, at 12:59 AM, Hans Hagen wrote:
This would also be useful to me. In my experience, the unpleasant part of generating ePub is making correctly formatted manifests and putting them in the right places inside the right kinds of zip files. If ConTeXt could do this for me, it would certainly make life easier. On the other hand, it may not be appropriate to bother because there are other tools that will convert HTML to ePub for you and make the manifests (Calibre, for example). I consider CSS intractable so that's not something I would worry about ConTeXt generating for me, if it were on the table.
going the other way around, processing an epub file also demands some handywork as the source code is not by definition well structured
ePub is definitely structured. I would say too structured, since it makes you provide both a ToC manifest and a navigation manifest that necessarily must include almost identical information ;) Of course, depending on a simplified browser for your document viewing and having lots of secret failover modes to handle poorly formatted documents makes the structure less meaningful than it ought to be. You are free to break your document into as many HTML chunks as you wish, but you are limited to fairly prosaic HTML and CSS. I'm of the impression the HTML documents generally map onto chapters so as not to distress the hardware's memory constraints too much. Overall, ePub and Kindle's format strike me as too much and too little respectively. I should be able to change the font and the formatting, but I definitely consider HTML + CSS is too much complexity. — Daniel Lyons
On 17-2-2011 9:10, Daniel Lyons wrote:
ePub is definitely structured. I would say too structured, since it makes you provide both a ToC manifest and a navigation manifest that necessarily must include almost identical information ;) Of course, depending on a simplified browser for your document viewing and having lots of secret failover modes to handle poorly formatted documents makes the structure less meaningful than it ought to be.
You are free to break your document into as many HTML chunks as you wish, but you are limited to fairly prosaic HTML and CSS. I'm of the impression the HTML documents generally map onto chapters so as not to distress the hardware's memory constraints too much.
what mean with not being structured is that clever css trickery can hide weird structure i have a style somewhere that typesets an epub document (directly) but when testing an epub file from somehwere it found out that there were artifacts like <H1>1</H1><H3>Chapter title</H3> so i decided not to spend too much time on it and only bother with epub if it comes to me as project Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 17 Feb 2011, at 10:49, Hans Hagen wrote:
i have a style somewhere that typesets an epub document (directly) but when testing an epub file from somehwere it found out that there were artifacts like
<H1>1</H1><H3>Chapter title</H3>
Ugh. Yes, that clearly shows that the seemingly conceptual items like H1, H3 are in fact used as graphical elements. Interesting to see how that then ends up in a table of contents for instance. G
On Feb 17, 2011, at 5:48 AM, Gerben Wierda wrote:
Ugh. Yes, that clearly shows that the seemingly conceptual items like H1, H3 are in fact used as graphical elements. Interesting to see how that then ends up in a table of contents for instance.
Say rather that what should be formal markup can instead be _misused_ for graphical formatting by those accustomed to WYSIWYG and who don't trouble to learn how to properly do CSS. William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow.
participants (6)
-
Daniel Lyons
-
Gerben Wierda
-
Gerben.Wierda@rna.nl
-
Hans Hagen
-
William Adams
-
Wolfgang Schuster