From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Does ConTeXt still support ePub output?
Date: Sat, 24 Aug 2024 18:25:11 +0200 [thread overview]
Message-ID: <d5caad3c-914c-4fac-be1b-57d31e0c802a@fiee.net> (raw)
In-Reply-To: <1998270751.6233621.1724512351255@mail.yahoo.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-08-24 16:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1998270751.6233621.1724512351255.ref@mail.yahoo.com>
2024-08-24 15:12 ` [NTG-context] " Joel via ntg-context
2024-08-24 16:25 ` Henning Hraban Ramm [this message]
2024-08-24 17:04 ` [NTG-context] " Hans Hagen via ntg-context
2024-08-24 20:18 ` Keith McKay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d5caad3c-914c-4fac-be1b-57d31e0c802a@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).