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: Jean Abou Samra
Subject: Re: Re: Vertical spacing between wordwrap items within markup column
Date: Thu, 13 Apr 2023 11:57:34 +0200
User-agent: Evolution 3.46.4 (3.46.4-1.fc37)

Le jeudi 13 avril 2023 à 09:13 +0000, juergen.gruen@xyz.de a écrit :

"\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?

No bug here, although the documentation is perhaps misleading. As its name suggests, baseline-skip is the distance between baselines, not between extremes. Demo:

\version "2.24.1"

\markup show-baseline = \markup \combine \draw-dotted-line #'(10 . 0) \etc

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

As you can see, if the specified baseline-skip were applied here, the two markups would be colliding. So \column spaces them more but just enough so that they don't collide.

You could give separate baseline-skip settings for \column and \wordwrap-string, as in

\version "2.24.1"

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

but that wouldn't work if you have more paragraphs, since the baseline-skip between two paragraphs needs to depend on the size of the first one.

That's why the solution is to let \column do all the stacking itself.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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