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!
<Riviera>ArneBab_: looks good now :)
<ArneBab_>Riviera: thank you again!
<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.
<ArneBab_>Riviera: if you want to see the result in the orgmode source: https://hg.sr.ht/~arnebab/draketo/browse/software/programming-scheme.org
<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 :)
<Riviera>from org, that is.
<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: required changes so it worked well: https://hg.sr.ht/~arnebab/draketo/rev/7a7c8827608b6e36e64dd8e594732d34dfe5c77e https://hg.sr.ht/~arnebab/draketo/rev/ece230e42eeabfbbb996c2ae4e18eafde7f0e124
<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. :)
<ars23>hi!
<ekaitz>ars23 hi!
<ArneBab_>Riviera: yes ☺
<ArneBab_>Riviera: the next one planned is https://www.draketo.de/software/enter-three-witches
<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 ☺)