]> git.donarmstrong.com Git - lilypond.git/commitdiff
Reduce 'outside-staff-priority of fermata over full measure rests
authorTrevor Daniels <t.daniels@treda.co.uk>
Fri, 4 Sep 2009 21:28:00 +0000 (22:28 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Fri, 4 Sep 2009 21:28:47 +0000 (22:28 +0100)
 - keep a fermata placed over a multi-measure rest
   close to the staff, in particular ensure it is
   not displaced upwards by TextScripts

 - add regression test for this and for inverting fermata
   glyph when placed under the staff

input/regression/full-measure-rest-fermata.ly [new file with mode: 0644]
ly/property-init.ly

diff --git a/input/regression/full-measure-rest-fermata.ly b/input/regression/full-measure-rest-fermata.ly
new file mode 100644 (file)
index 0000000..71c62cf
--- /dev/null
@@ -0,0 +1,25 @@
+\version "2.12.4"
+
+\header{
+  texidoc="
+Fermata over full-measure rests should invert when below and
+be closer to the staff than other articulations."
+}
+\layout {
+  ragged-right = ##t
+}
+\relative c'' {
+  R1
+  a1^"should be lower"
+  R1^"should be higher"
+  \break
+  R1
+  R1^"should be lower"
+  a1^"should be higher"
+  \break
+  a1^"should be above fermata"
+  R1^\fermataMarkup
+  \break
+  a1_"should be below fermata"
+  R1_\fermataMarkup
+}
index 1ab7d5e5d9d86db0fbe2728196af2ea6d0061f1c..2880bffb2f2d61135c8e646014ca36a7fd771fde 100644 (file)
@@ -172,11 +172,13 @@ endincipit = \context Staff {
 
 fermataMarkup =
 #(make-music 'MultiMeasureTextEvent
-   ; Set the 'text based on the 'direction
-   'tweaks (list (cons 'text (lambda (grob)
-       (if (eq? (ly:grob-property grob 'direction) DOWN)
-          (markup #:musicglyph "scripts.dfermata")
-          (markup #:musicglyph "scripts.ufermata"))))))
+   'tweaks (list
+             ; Set the 'text based on the 'direction
+             (cons 'text (lambda (grob)
+               (if (eq? (ly:grob-property grob 'direction) DOWN)
+                (markup #:musicglyph "scripts.dfermata")
+                (markup #:musicglyph "scripts.ufermata"))))
+             (cons 'outside-staff-priority 40)))
 
 
 %% font sizes