]> git.donarmstrong.com Git - lilypond.git/commitdiff
Regression test and NEWS entry for skyline-vertical-placement
authorJoe Neeman <joeneeman@gmail.com>
Sun, 26 Nov 2006 19:20:14 +0000 (21:20 +0200)
committerJoe Neeman <joeneeman@gmail.com>
Sun, 26 Nov 2006 19:20:14 +0000 (21:20 +0200)
Documentation/topdocs/NEWS.tely
input/regression/skyline-vertical-placement.ly [new file with mode: 0644]

index 374dc9f4443c1806b3341ae97fbad908c7d4cad9..25283a13f1f6c13766bf26c54e13d24f730778cf 100644 (file)
@@ -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 (file)
index 0000000..6c85a39
--- /dev/null
@@ -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
+}