Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2026, 06:44 AM   #1
AnFran
Junior Member
AnFran began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2026
Device: Pixel 10
Can compilable ebooks unlock richer "fine-press" typestetting?

I have been experimenting with Typst-based ebooks compilable on mobile (all building blocks exist in the wild, so a rough demo app was easy to vibe-code in a few evenings and then to iterate on). The premise of this project is that while reflowability is crucial for ebooks given the variety of devices, real-time reflowability is not that important. You compile on download or on import, and if you change the font size preferences, you need to recompile, which does not seem like a big deal. On a modern phone, even a big book can be compiled in seconds, Typst is impressively fast. In return you get... a few things.

Initially, I expected the new possibilities to be mainly about well-executed formatting and nice page layouts, all taken seriously rather than as optional (like e-readers treat css). I then realized there was another big advantage there: the full support of if-then-else statements with potentially complex expressions involved. You can do a good deal of math with both internal content and externally provided formatting parameters, and that seems to afford more expressive power than e.g. CSS media queries (even if e-readers observed the latter faithfully).

Why it matters? A lot of exciting formatting decisions (cleverly positioned illustrations, exuberant initials, unusual headers or footers) have limitations in terms of page proportions, or page size, or font size, or all of the aboove. With EPUB, we learned to mostly avoid these fineries. Consequently, ebooks as we have them compete well against cheap paperbacks but do not have much to offer in the "fine press" segment. With Typst, we could use such elements conditionally, "where they fit".

The parameters passed from the reader should be relatively few, something like: page height; page width; preferred main font size; full color or grayscale; one page or two page screen layout; and maybe an additional "skip all optional typesetting tricks" parameter, as I suspect that would be helpful for producing accessibility-tooling-friendly output. With such a set of inputs, a well-crafted compilable book should be able to rethink itself considerably for different setups.

One simple illustration. The two pages on the attached images are from the same Typst code formatted for Kindle screen dimensions and for Pixel 10 screen dimensions, with the book “deciding itself” whether the decorative border (borrowed from an old Kelmscott Press book) fits the given page proportions well.

Putting this idea into broader practice would not be frictionless of course; to highlight just one challenge, a complex enough book would need some sort of "unit test coverage" of various compilation setups to check that it is working as intended. But the possibilities it opens seem exciting, to me at least.

Has anyone experimented with something similar, or does abyone want to? I am currently tempted to drop all other subdirections of my "what can a Typst-based ebook look like" passion project and fully focus on this "fine press" aspect.



AnFran is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K3 How to unlock "collections" or at least install an alternative via Jailbreak? PaigheTurn Kindle Developer's Corner 4 01-13-2024 04:54 AM
"Failure to add book" err on new setup... works fine elsewhere WhoMe_YesYou Calibre 1 12-04-2020 02:34 AM
Glo sideloaded epubs - how do i "unlock" formatting? Calibre or Sigil burnafterreading Kobo Reader 15 12-28-2014 04:55 PM
EBooks of Paul Gallico's Books "The Hand of Mary Constable" and "Too Many Ghosts" rraod General Discussions 0 04-12-2014 04:32 PM
"Versteckte Bilder" oder "Was man mit ebooks nicht machen kann." beachwanderer Lounge 1 01-15-2014 08:41 AM


All times are GMT -4. The time now is 07:25 AM.


MobileRead.com is a privately owned, operated and funded community.