lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re: Vertical spacing between wordwrap items within markup column


From: juergen . gruen
Subject: RE: Re: Vertical spacing between wordwrap items within markup column
Date: Thu, 13 Apr 2023 09:13:37 GMT
User-agent: freenet-api2

> Maybe I'm missing something here, but how can I make the space
> between items in a markup column regular? As you can see in the
> example, if the text is short so that there is no wrapping
> necessary, the space is fine. But the "a a a" item does wrap around
> and overlaps a bit with the "b b b" item on its second line. Any
> tips?
>
> %%%%%%%%%%%%%%
> \version "2.24.1"
> \markup {
> \column {
> \wordwrap-string "a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a"
> \wordwrap-string "b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b"
> \wordwrap-string "c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c"
> }
> }
> %%%%%%%%%%%%%%

This smells like a bug: `\wordwrap-string` returns a bunch of lines
spaced by `baseline-skip`, but no such skip is applied after the last
line, for whatever reason. Here is a shorter example.

```
\version "2.24.1"
\markup {
\override #'(line-width . 5)
\override #'(baseline-skip . 4)
\column {
\wordwrap-string "a a a a a a"
\wordwrap-string "b b b b b b"
}
}
```


Werner




Hello,
there is no overlapping, the distance between the markups is 0. 


In my understanding baseline-skip is relevant for the objects inside a 
markup-command, So in this example the \column markup should be responsible for 
the spacing between its items:


"\column args (markup list)Stack the markups in args vertically. The property 
baseline-skip determines the space between markups in args."


So is it a bug in \column rather than in \wordwrap-string?


Maybe this helps?
\version "2.24.0"
\markup {
  \override #'(line-width . 5)  
  \column {
    \pad-around #0.75 \wordwrap-string "0 0 0 0 "
    \pad-around #0.75 \wordwrap-string "0"
  }
}


Juergen.


btw: why is it named "baseline-skip" and not "baseline-distance"?






















reply via email to

[Prev in Thread] Current Thread [Next in Thread]