Does ConTeXt still support ePub output?
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? --Joel
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
On 8/24/2024 6:25 PM, Henning Hraban Ramm wrote:
Unfortunately, the ePub at least doesn’t work with Calibre. I need to check what’s actually the problem. Indeed we need to check the current state ... at that time there weer variations of the 'standards' and various devices expected different (maybe also deliberately, some lock in).
Mikael and I are currently updating the export (web first) so when we reach updating that bit it would be helpful to know what to do better. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
When I was preparing my wife's books I used Sigil to tweak the xhtml files
from the epub exported from LibreOffice. One can produce epub2 or epub3
versions from Sigil and was easy to use. We wanted to produce an epub to
the standard which could be read on apple books, the kobo and the kindle. I
had to adjust the xhtml files since none of them implemented the epub
standard exactly so I ended up preparing three different versions. However,
apple, kobo, and kindle documented where they differed from the standard so
it wasn't too onerous a job. The Kindle version was prepared from an epub
using kindle previewer.
Best wishes
Keith McKay
On Sat, 24 Aug 2024, 18:08 Hans Hagen via ntg-context,
On 8/24/2024 6:25 PM, Henning Hraban Ramm wrote:
Unfortunately, the ePub at least doesn’t work with Calibre. I need to check what’s actually the problem. Indeed we need to check the current state ... at that time there weer variations of the 'standards' and various devices expected different (maybe also deliberately, some lock in).
Mikael and I are currently updating the export (web first) so when we reach updating that bit it would be helpful to know what to do better.
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraa https://www.google.com/maps/search/Ridderstraa?entry=gmail&source=gt 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (4)
-
Hans Hagen
-
Henning Hraban Ramm
-
Joel
-
Keith McKay