IRC channel logs
2026-05-03.log
back to list of logs
<Riviera>ArneBab_: It does render well in a web browser though, so it appears it's either using features that aren't typically expected from epubs or the Books app from macOS just does not support them. <ArneBab_>Riviera: thank you for testing again! It’s a standard html-document wrapped into epub, so some styling may be only partially supported. The Map Of Scheme image has a fixed width, so that may be causing problems (but that’s not easy to fix). <ArneBab_>Riviera: does it mean that you see lines that get clipped at the right edge of the window? <ArneBab_>or it may be stumbling over long lines in code and then not reflow regular text due to these. <ArneBab_>Riviera: does it flow correctly now? (I added some white-space:pre-wrap instead of white-space:pre) <Riviera>ArneBab_: yes, the lines were clipped; and yes again: This appears to have fixed it! <jcowan>It usually pays to use XHTML in epub containers; fortunately, conversion is easy. <ArneBab_>jcowan: yes -- in orgmode all you need to do is #+HTML_DOCTYPE: xhtml5 -- but I didn’t realized that before I hit the problem. <Riviera>ArneBab_: so, you're not using some "org-to-epub" tooling, but you create the epub manually from an html export? <Riviera>have never thought of creating epub :) <ArneBab_>Riviera: I use ox-epub: https://melpa.org/#/ox-epub -- it just needed some tweaks to work reliably. And a macro to exclude some stuff from the epub: #+MACRO: html-not-epub (eval (if (org-export-derived-backend-p org-export-current-backend 'epub) "" (if (org-export-derived-backend-p org-export-current-backend 'html) $1 ""))) <ArneBab_>Example usage: {{{html-not-epub(@@html:<img src='naming-and-logic-map-of-scheme--sketch.png' alt='naming-and-logic-map-of-scheme--sketch.png' style='width:300px;aspect-ratio:9/7;'/>@@)}}} <ArneBab_>(no code tweaks, just settings in the org file) <ArneBab_>Riviera: I’m slowly reaching the point where I have a full-fledged publishing setup for website, PDF/print, and epub/ereader. Including "If you reached this line and you feel that the text gave you something, please buy Naming and Logic with Wisp in print" <Riviera>ArneBab_: In other words: You will have to write more books! .. to make use of the setup. :) <ArneBab_>Riviera: actually already in writing, just not made a book yet because the content isn’t done yet. It’s the simple Guile-based web interactive novel engine I’ve been toying with for about 10 years. <ArneBab_>Now cleaning it up in preparation for the spring lisp game jam. <Riviera>ArneBab_: ah nice, just the stuff i like :) <ArneBab_>aside: today I learned that I can check within with-syntax whether a variable is bound via (eq? 'lexical (syntax-local-binding #'the-variable-name)) <ArneBab_>ACTION is trying to get name substitution working deep within syntax-case macros. <ArneBab_>(that feels like calculating the speed of a falling ball and suddenly having to do lorentz transformations ☺)