After some trial and error, the simplest workaround was to override the stencil
of NoteHead so it draws the missing ledger line. I conditionally set
NoteHead.stencil to ly:text-interface::print and set NoteHead.text to custom
markup function.
\override NoteHead.stencil =
#(lambda (grob)
Dear LilyPond community,
I'm working on an web psalter https://www.zaltar.cz (in Czech language) with
responsive music notation based on LilyPond. For example, take a look at
https://www.zaltar.cz/OL1.html and try changing the width of the browser. The
notation is pre-engraved at 9 different s