Re: vertical spacing of footnotes

2023-02-16 Thread Werner LEMBERG
I've further refined and simplified the footnote spacing example; it is now available in the LSR https://lsr.di.unimi.it/LSR/Item?id=1165 Werner

Re: vertical spacing of footnotes

2023-02-15 Thread Werner LEMBERG
>> However, there is one problem that I don't understand: Why is the >> space between footnotes 3 and 4 (and 4 and 5) larger than between 1 >> and 2 (and 2 and 3)? > > Well, in footnotes 1 and 2, there is only one strut for the two > lines. Try this, [...] Excellent, thanks again! Here's my new

Re: vertical spacing of footnotes

2023-02-14 Thread Jean Abou Samra
Le mardi 14 février 2023 à 15:13 +, Werner LEMBERG a écrit : > Excellent, thanks!  I slowly arrive at some nice results, see attached > code and image.  However, there is one problem that I don't > understand: Why is the space between footnotes 3 and 4 (and 4 and 5) > larger than between 1 and

Re: vertical spacing of footnotes

2023-02-14 Thread Werner LEMBERG
> To change those properties, you could do > > ``` > \paper { > text-font-defaults.baseline-skip = 3 > } > ``` > > [...] > > ``` > \override Score.Footnote.footnote-text = > #(grob-transformer > 'footnote-text > (lambda (grob orig) > #{ \markup { \strut #orig

Re: vertical spacing of footnotes

2023-02-14 Thread Valentin Petzel
Ah sorry, I missread that ... stupid me! Basically the functions that would need support are the primitives: Stencil::add_stencil Stencil::rotate_degrees_absolute (? is there even a meaningful way for doing this or should this just resort to stencil extent?) Stencil::translate Stencil::scale Ste

Re: vertical spacing of footnotes

2023-02-14 Thread Jean Abou Samra
Le mardi 14 février 2023 à 15:02 +0100, Valentin Petzel a écrit : > But \column does have exactly that issue. Column will hickup on "lines" > spanning multiple lines. Precisely. That's why it should receive the lines individually rather than already combined in a stencil. ``` \version "2.24.0"

Re: vertical spacing of footnotes

2023-02-14 Thread Valentin Petzel
But \column does have exactly that issue. Column will hickup on "lines" spanning multiple lines. Another alternative though: A stencil could have optional spacing extents. E.g. when you do a text stencil it will have it’s regular stencil extents, but also also a spacing extent from base line t

Re: vertical spacing of footnotes

2023-02-14 Thread Jean Abou Samra
Le mardi 14 février 2023 à 13:02 +0100, Valentin Petzel a écrit : > As far as I see this is not the problem. Footnotes appear to be simply > stacked > by extent, not by baseline. This already creates issues with footnotes > extending over multiple lines, as the spacing between different footno

Re: vertical spacing of footnotes

2023-02-14 Thread Werner LEMBERG
> Maybe it would be useful to be able to override the formatting of > the footnote block, similar to how we have toItemMarkup. We could > allow the user to format footnotes using some footnoteMarkup > callback? This is issue https://gitlab.com/lilypond/lilypond/-/issues/2561 Werner

Re: vertical spacing of footnotes

2023-02-14 Thread Valentin Petzel
As far as I see this is not the problem. Footnotes appear to be simply stacked by extent, not by baseline. This already creates issues with footnotes extending over multiple lines, as the spacing between different footnotes will be less than the spacing between different lines of footnotes. Mea

Re: vertical spacing of footnotes

2023-02-14 Thread Jean Abou Samra
Le mardi 14 février 2023 à 07:28 +, Werner LEMBERG a écrit : > * In what context are footnote texts handled?  I want to globally >   adjust `baseline-skip` for my (redefined) `\strut` function, but I'm >   not able to do it. Like all sticky grobs, footnotes are created in the same context as

Re: vertical spacing of footnotes

2023-02-13 Thread Werner LEMBERG
>> Am I the only one who thinks users shouldn’t have to add >> transparent letters with ascenders and descenders in order to have >> a consistent line height?! Working with text should not require >> such efforts… > > Unfortunately, LilyPond's idea of stencils is not prepared for doing > that aut

Re: vertical spacing of footnotes

2023-02-13 Thread Jean Abou Samra
Le lundi 13 février 2023 à 19:37 -0500, kie...@kierenmacmillan.info a écrit : > Am I the only one who thinks users shouldn’t have to add transparent > letters with ascenders and descenders in order to have a consistent line > height?! Working with text should not require such efforts… Unfort

Re: vertical spacing of footnotes

2023-02-13 Thread kieren
Hi all, As can be seen in the attached image, the vertical distances between the footnotes are not identical. What is the recommended way to fix this? Looks like this is due to the presence or absence of descenders. If you added something like "\transparent q" to the end of the markup, it s

Re: vertical spacing of footnotes

2023-02-13 Thread Aaron Hill
On 2023-02-13 11:36 am, Werner LEMBERG wrote: As can be seen in the attached image, the vertical distances between the footnotes are not identical. What is the recommended way to fix this? Looks like this is due to the presence or absence of descenders. If you added something like "\transpare

vertical spacing of footnotes

2023-02-13 Thread Werner LEMBERG
Consider this example. ``` #(set-default-paper-size "a8landscape") \book { \header { tagline = ##f } \markup "time-based footnotes" \relative c'' { r1 | \footnote #'(-0.5 . -1) "Meter change." Staff.TimeSignature \time 3/4 \footnote #'(1 . -1) "Chord stem." Stem 4 q q