ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Best strategy for ConTeXt to ePub update
@ 2019-02-04 19:26 Martin Bruchanov
  2019-02-05  8:00 ` Henning Hraban Ramm
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Bruchanov @ 2019-02-04 19:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

While ago I wrote a book (http://sstv-handbook.com/) in ConTeXt and I 
have started to thinking about possibility to export also ePub and xHTML 
besides the PDF version.

Few questions:

1. What is current support of ePub, will it export pictures automatically?

2. Do I need to rewrite source code to use those verbose \startsXXX of 
every element (paragraph, item,...) or is there any simplier way how to 
handle sources as they are now?


Regards,

BruXy


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Best strategy for ConTeXt to ePub update
  2019-02-04 19:26 Best strategy for ConTeXt to ePub update Martin Bruchanov
@ 2019-02-05  8:00 ` Henning Hraban Ramm
  0 siblings, 0 replies; 2+ messages in thread
From: Henning Hraban Ramm @ 2019-02-05  8:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2019-02-04 um 20:26 schrieb Martin Bruchanov <bruxy@regnet.cz>:

> While ago I wrote a book (http://sstv-handbook.com/) in ConTeXt and I have started to thinking about possibility to export also ePub and xHTML besides the PDF version.
> 
> Few questions:
> 
> 1. What is current support of ePub, will it export pictures automatically?

it will, but you need postprocessing to make them usable for HTML/ePub

> 2. Do I need to rewrite source code to use those verbose \startsXXX of every element (paragraph, item,...) or is there any simplier way how to handle sources as they are now?

Yes. No.
For a proper XML/XHTML export you need this markup. Also use \definehighlighting instead of switches like \em or \bf.

In my experience, you can work with the exported raw XML if your markup is good, but you must convert it to usable HTML yourself.

Unfortunately I never completed my workflow notes at:
https://wiki.contextgarden.net/Export
https://wiki.contextgarden.net/ePub

Export got better since then, but I’m not up to date about the current state. My latest attempts to get an ePub from a book worked quite well with my conversion workflow (where I use ConTeXt’s export and ePub script, but re-make most of the ePub files via Python and XSLT).
Footnotes and such are a PITA, because there’s no working mechanism in ePub for them.

ePub reader compatibility is still a big mess.



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-05  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 19:26 Best strategy for ConTeXt to ePub update Martin Bruchanov
2019-02-05  8:00 ` 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).