]> git.donarmstrong.com Git - lilypond.git/commitdiff
Adjust padding for skylines; issue 3336
authorKeith OHara <k-ohara5a5a@oco.net>
Thu, 21 Mar 2013 07:34:52 +0000 (00:34 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Tue, 14 May 2013 05:29:23 +0000 (22:29 -0700)
Enclose one regression test in a \book so it shows true system-spacing
on the test scripts.

input/regression/multi-measure-rest-text.ly
ly/property-init.ly
scm/define-grobs.scm
scm/script.scm

index ad3d6ccf69717615a60ed8b82c68381206b475ec..575b62d774767c751ddd939dbf343303e27cd714 100644 (file)
@@ -13,8 +13,7 @@ measures stretch to accommodate wide texts.
 
 }
 
-\layout { ragged-right = ##t }
-{
+\book { \score { {
   \time 3/4
   \set Score.skipBars = ##t
   R2._\markup { \center-column { \musicglyph  #"scripts.dfermata" \roman "Ad lib"  }  }
@@ -28,3 +27,5 @@ measures stretch to accommodate wide texts.
   R2.^"very very very very very very long text"
   c'2.
 }
+  \layout { ragged-right = ##t }
+}}
index fc7c67179a377b7e05d2e664539df5b6f97425e0..93906aa6328b1a6ce5dd52886908eed6f7d06ce4 100644 (file)
@@ -553,15 +553,14 @@ showSplitTiedTabNotes = {
 %% text length
 
 textLengthOn = {
-  \override TextScript.extra-spacing-width = #'(0 . 0)
+  % 0.4 staff-space between adjacent texts
+  \override TextScript.extra-spacing-width = #'(-0.0 . 0.4)
   \override TextScript.extra-spacing-height = #'(-inf.0 . +inf.0)
-  \override TextScript.outside-staff-horizontal-padding = #0
 }
 
 textLengthOff = {
   \override TextScript.extra-spacing-width = #'(+inf.0 . -inf.0)
   \override TextScript.extra-spacing-height = #'(0 . 0)
-  \revert TextScript.outside-staff-horizontal-padding
 }
 
 markLengthOn = {
index b89fc14757cde390830f60033eb8210f01e74dab..846cfedf3ffa2058b80889445130fc06fc90723d 100644 (file)
        (direction . ,DOWN)
        (minimum-space . 1.2)
        (outside-staff-priority . 250)
+       (outside-staff-padding . 0.6)
        (padding . 0.6)
        (side-axis . ,Y)
        (slur-padding . 0.3)
        (minimum-Y-extent . (-1 . 1))
 
        (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
+       (skyline-horizontal-padding . 0.2)
        (springs-and-rods . ,ly:spanner::set-spacing-rods)
        (stencil . ,ly:line-spanner::print)
        (style . dashed-line)
        (outside-staff-priority . 450)
        (padding . 0.2)
        (self-alignment-X . ,CENTER)
+       (skyline-horizontal-padding . 0.2)
        (staff-padding . 0.25)
        (stencil . ,ly:text-interface::print)
        (X-offset . ,(ly:make-simple-closure
index 125a2fee5d1348b4e5c8daa7ceef130acf3314b5..b5e14bae5667974c269dea5e0e8602e8946b7131 100644 (file)
@@ -62,6 +62,7 @@
      . (
        (script-stencil . (feta . ("downbow" . "downbow")))
        (padding . 0.20)
+       (skyline-horizontal-padding . 0.20)
        (avoid-slur . around)
        (direction . ,UP)
        (script-priority . 150)))
        (quantize-position . #t)
        (script-stencil . (feta . ("dstaccatissimo" . "ustaccatissimo")))
        (padding . 0.20)
+       (skyline-horizontal-padding . 0.10)
        (side-relative-direction . ,DOWN)))
     ("staccato"
      . (
        (avoid-slur . inside)
        (toward-stem-shift . 0.5)
        (padding . 0.20)
+       (skyline-horizontal-padding . 0.10)
        (script-priority . -100)))
     ("stopped"
      . (