From: Joe Neeman Date: Sun, 26 Nov 2006 19:20:14 +0000 (+0200) Subject: Regression test and NEWS entry for skyline-vertical-placement X-Git-Tag: release/2.11.0-1~8 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=c5c63b7c507bd39ffa1f92589f0195d106c8d855;p=lilypond.git Regression test and NEWS entry for skyline-vertical-placement --- 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 +}