Dear Brad,
We have no illusions about supporting the Javascript bits within EPUB. I won't
take issue with anything you found in your GPT hole. We've first-hand
experience with most of that.
There may be better solutions for an offline format for small (or weak) devices.
I would encourage anyone with an interest in this to commit to creating a
conversion. And commiting to maintaining it long-term.
Conversion to EPUB has seen a lot of development effort, and is working pretty
well now. It has some rough edges that need work. Already, we've hit a bug
with "local tags" in offline MathJax and I am now reminded of some overdue
improvements to the HTML conversion that are necessary for the EPUB conversion.
EPUB is a precursor for Kindle (thanks, Mitch!). Which provides a convenient
route for authors/publishers that want to distribute their text for a few
dollars. Or many dollars. EPUB packaging is the basis for eBraille. The only
reason we ever embarked on braille in the first place was because we had sorted
out "offline math" for EPUB and the strategy was nearly identical.
EPUB is a notch superior to PDF. But not by much. But I would cringe when I
would walk theough the library and see *all* the students hunched over their
laptops reading 2-up PDFs. Yuck. However, many authors want physical copies of
their books, and PDF is the way to go for that.
I have made the long-term commitment to the EPUB conversion. I'm ready to
improve it, that's what a long-term commitment looks like. It is an important
part of PreTeXt and the effort should pay-off PreTeXt-wide.
Rob
On 11/23/25 11:49, Bradley Miller wrote:
> Who is our target audience for epub? After reading this I went down a gpt hole
> to see what kind of support for Javascript exists today. The answer is
> depressing. Mostly it depends on the reader you use and the readers range from
> hostile (Kindle) to pretty good (Apple iBooks) to mostly broken kind of
> everything else.
>
> Alternatives to consider are Progressive Web Apps and/or A static page with
> offline support including a service worker. This would give a user the
> functionality of a current html (non-runestone) build but fully functional when
> offline, and of course very fast.
>
> Brad Miller
> Professor Emeritus, Luther College
> Founder, Runestone Academy LTD
> Blog:
http://reputablejournal.com
>
> Set up a time to meet <
https://fantastical.app/bonelake-Gj2i/meet-with-
> brad> with me.
>
>
>> On Nov 23, 2025, at 11:21 AM, 'Rob Beezer' via PreTeXt development <pretext-
> to
pretext-dev...@googlegroups.com <mailto:
pretext-
>
dev+uns...@googlegroups.com>.
> dev/431B11DC-AB6B-4930-A786-A0D009A56A93%40runestone.academy <https://
>
groups.google.com/d/msgid/pretext-dev/431B11DC-AB6B-4930-A786-
> A0D009A56A93%40runestone.academy?utm_medium=email&utm_source=footer>.