From c5c63b7c507bd39ffa1f92589f0195d106c8d855 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Sun, 26 Nov 2006 21:20:14 +0200 Subject: [PATCH] Regression test and NEWS entry for skyline-vertical-placement --- Documentation/topdocs/NEWS.tely | 13 +++++++++++++ input/regression/skyline-vertical-placement.ly | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 input/regression/skyline-vertical-placement.ly 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 +} -- 2.39.2