lilypond-user
[Top][All Lists]
Advanced

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

Re: Empty markup lines behavior change (maybe regression) in dev (2.21.7


From: K.L.
Subject: Re: Empty markup lines behavior change (maybe regression) in dev (2.21.7) than stable (2.20.0)
Date: Thu, 8 Oct 2020 18:03:44 +0800

Yes, if a global \markup, it can be reserved, but not for the \markup in \header title.

I checked this in a svg backend result.

On Thu, Oct 8, 2020 at 12:32 PM Aaron Hill <lilypond@hillvisions.com> wrote:
On 2020-10-07 8:20 pm, Andrew Bernard wrote:
> If you use { " " } you will get a blank line, in 2.21.6. I don't know
> about
> other versions, I only use one.

Something else must be going on, as I cannot reproduce the claimed
behavior.

I am seeing consistently that \line { "" } results in an empty-stencil:

%%%%
\version "2.18.2"
#(format #t "\nversion=~s" (ly:version))
#(define-markup-command
   (measure layout props arg)
   (markup?)
   (let* ((sten (interpret-markup layout props arg))
          (xex (ly:stencil-extent sten X))
          (yex (ly:stencil-extent sten Y)))
     (format #t "\narg=~s\n\txex=~s\n\tyex=~s" arg xex yex)
     sten))
\markup \measure \line { "" }
\markup \measure \line { " " }
\markup \measure \column { \line { "" } \line { "" } }
\markup \measure \column { \line { " " } \line { " " } }
%%%%

====
version=(2 18 2)
arg=(#<procedure line-markup (layout props args)> (""))
        xex=(+inf.0 . -inf.0)
        yex=(+inf.0 . -inf.0)
arg=(#<procedure line-markup (layout props args)> (" "))
        xex=(0.0 . 0.614579527559055)
        yex=(0.0 . 0.0)
arg=(#<procedure column-markup (layout props args)> ((#<procedure
line-markup (layout props args)> ("")) (#<procedure line-markup (layout
props args)> (""))))
        xex=(+inf.0 . -inf.0)
        yex=(+inf.0 . -inf.0)
arg=(#<procedure column-markup (layout props args)> ((#<procedure
line-markup (layout props args)> (" ")) (#<procedure line-markup (layout
props args)> (" "))))
        xex=(0.0 . 0.614579527559055)
        yex=(-3.0 . 0.0)
====

Same output for:

version=(2 19 55)
version=(2 20 0)
version=(2 21 6)


-- Aaron Hill


reply via email to

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