ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Does ConTeXt still support ePub output?
       [not found] <1998270751.6233621.1724512351255.ref@mail.yahoo.com>
@ 2024-08-24 15:12 ` Joel via ntg-context
  2024-08-24 16:25   ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Joel via ntg-context @ 2024-08-24 15:12 UTC (permalink / raw)
  To: Mailing List for ConTeXt Users; +Cc: Joel


[-- Attachment #1.1: Type: text/plain, Size: 686 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1026 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Does ConTeXt still support ePub output?
  2024-08-24 15:12 ` [NTG-context] Does ConTeXt still support ePub output? Joel via ntg-context
@ 2024-08-24 16:25   ` Henning Hraban Ramm
  2024-08-24 17:04     ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-08-24 16:25 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* [NTG-context] Re: Does ConTeXt still support ePub output?
  2024-08-24 16:25   ` [NTG-context] " Henning Hraban Ramm
@ 2024-08-24 17:04     ` Hans Hagen via ntg-context
  2024-08-24 20:18       ` Keith McKay
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2024-08-24 17:04 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

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
-----------------------------------------------------------------

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Does ConTeXt still support ePub output?
  2024-08-24 17:04     ` Hans Hagen via ntg-context
@ 2024-08-24 20:18       ` Keith McKay
  0 siblings, 0 replies; 4+ messages in thread
From: Keith McKay @ 2024-08-24 20:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2249 bytes --]

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, <ntg-context@ntg.nl>
wrote:

> 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=g>t 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3401 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2024-08-24 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1998270751.6233621.1724512351255.ref@mail.yahoo.com>
2024-08-24 15:12 ` [NTG-context] Does ConTeXt still support ePub output? Joel via ntg-context
2024-08-24 16:25   ` [NTG-context] " Henning Hraban Ramm
2024-08-24 17:04     ` Hans Hagen via ntg-context
2024-08-24 20:18       ` Keith McKay

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).