bug-lilypond
[Top][All Lists]
Advanced

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

Re: Dynamic extender line: regression


From: Neil Puttock
Subject: Re: Dynamic extender line: regression
Date: Thu, 17 Jul 2008 23:41:26 +0100

2008/7/17 Patrick McCarty <address@hidden>:
> The behavior of the dynamic extender line seems better in 2.10.33 than
> in 2.11.52.

I can see three problems; my suggestions are below:

- the text isn't left-aligned

Though the 'align-dir is #LEFT, the padding is set to 0.5, hence the
shift slightly right.

- there's no gap between the text and the line

This is slightly complicated; whereas it sufficed to set
'bound-padding with the old spanner code, there's no exact equivalent
in the current code. 'stencil-offset controls the horizontal and
vertical positioning of the spanner relative to the text, but it has
to be set in tandem with 'padding.

To match the padding in 2.10.33 (0.75) we should make the following changes:

(left (attach-dir . -1) (Y . 0) (stencil-offset -0.75 . -0.5) (padding . 0.75))

- the right bound of the line is too far to the left, which results in
the spanner disappearing when the snippet's ragged.

Currently the right 'attach-dir is set to #LEFT for unbroken lines and
#RIGHT for broken; 'padding is set to 0.75. Changing the unbroken
direction to #RIGHT and setting right 'padding to zero matches
2.10.33's example, though in the case where right 'text is set, this
would need to be altered.

Attached is the output of your snippet with the following
'bound-details settings:

(bound-details . ((right . ((attach-dir .  ,RIGHT)
                                    (Y . 0)
                                    (padding . 0)
                                    ))
                          (right-broken . ((attach-dir .  ,RIGHT)
                                    (padding . 0.0)
                                    ))
                        
                          (left . ((attach-dir .  ,LEFT)
                                   (Y . 0)
                                   (stencil-offset . (-0.75 . -0.5))
                                   (padding . 0.75)
                                   ))
                          (left-broken . ((attach-dir .  ,RIGHT)
                                   ))
                          ))

Regards,
Neil

Attachment: cresc_spanner.png
Description: PNG image


reply via email to

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