Am 24.08.24 um 17:12 schrieb Joel via ntg-context:
I recently learned I need to produce an ePub copy of my document, which
will be used to produce braille and other versions of my file for people
with limited or no vision. As I understand this is just like a ZIP file
containing a bunch of HTML files with some links to each other. Though I
could manually go and create tons of HTML files for it, I notice the
ConTeXt Garden does mention ePub output as a possibility, but this page
was updated in 2014, and I don't see any of hte sample code working.
Is ePub still a file format that ConTeXt can output? Does it require a
significant rewrite of ConTeXt document code to be produced or is there
a simple way to output this format?
Yes, I stopped working on ePub and updating the wiki pages, but did you
even try?
You need
\setupbackend[export=yes] (see https://wiki.contextgarden.net/Export)
and probably
\setupexport[alternative=html],
that creates the necessary content files, and then
mtxrun --script epub yourdocument
creates an ePub, as documented in https://wiki.contextgarden.net/ePub
Unfortunately, the ePub at least doesn’t work with Calibre. I need to
check what’s actually the problem.
When I last worked with ePub and created that wiki pages, I used my own
scripts to make a working ePub from the export. I need to update that
code and then the wiki. Don’t hold your breath.
The HTML export got much better recently, it now generates SVG for math
and everything else where you use \startimage … \stopimage.
Maybe you can just use that HTML code without an ePub container.
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________