diff options
author | Joe Neeman <joeneeman@gmail.com> | 2006-11-26 21:20:14 +0200 |
---|---|---|
committer | Joe Neeman <joeneeman@gmail.com> | 2006-11-26 21:20:14 +0200 |
commit | c5c63b7c507bd39ffa1f92589f0195d106c8d855 (patch) | |
tree | 1e003cc647e3a687d26d536a9684901d90103e7e | |
parent | 9115b5f48f2f52110585d575af777f75e86ce64c (diff) |
Regression test and NEWS entry for skyline-vertical-placement
-rw-r--r-- | Documentation/topdocs/NEWS.tely | 13 | ||||
-rw-r--r-- | input/regression/skyline-vertical-placement.ly | 17 |
2 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/topdocs/NEWS.tely b/Documentation/topdocs/NEWS.tely index 374dc9f444..25283a13f1 100644 --- a/Documentation/topdocs/NEWS.tely +++ b/Documentation/topdocs/NEWS.tely @@ -66,6 +66,19 @@ which scares away people. @end ignore +@item Objects that belong outside of the staff are now positioned automatically to +avoid collisions. + +@lilypond[fragment,ragged-right,relative=1] +{ + \override TextScript #'outside-staff-priority = #1 + c'' + \once \override TextScript #'self-alignment-X = #CENTER + a,^"this doesn't collide with the c" + b^"this goes above the previous markup" + a8_"this goes below the dynamic" + a\f +} @end itemize diff --git a/input/regression/skyline-vertical-placement.ly b/input/regression/skyline-vertical-placement.ly new file mode 100644 index 0000000000..6c85a39f2a --- /dev/null +++ b/input/regression/skyline-vertical-placement.ly @@ -0,0 +1,17 @@ +\header { + texidoc = "Grobs that have outside-staff-priority set are positioned +using a skyline algorithm so that they don't collide with other objects." +} + +\layout {ragged-right = ##t} + +\version "2.11.0" +\relative c''' { + \override TextScript #'outside-staff-priority = #1 + c + \once \override TextScript #'self-alignment-X = #CENTER + a,^"this doesn't collide with the c" + b^"this goes above the previous markup" + a8_"this goes below the dynamic" + a\f +} |