]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #642.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 20 Jul 2008 03:46:30 +0000 (00:46 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 20 Jul 2008 03:46:53 +0000 (00:46 -0300)
Add percent-repeat-interface, for non-item repeats.

input/regression/hara-kiri-percent-repeat.ly [new file with mode: 0644]
ly/engraver-init.ly
scm/define-grob-interfaces.scm
scm/define-grobs.scm

diff --git a/input/regression/hara-kiri-percent-repeat.ly b/input/regression/hara-kiri-percent-repeat.ly
new file mode 100644 (file)
index 0000000..0beb255
--- /dev/null
@@ -0,0 +1,16 @@
+\header {
+  texidoc = "Staves with percent repeats are not killed."
+}
+
+\version "2.11.53"
+
+<<
+ \new Staff { c''1 c'' \break c'' c'' }
+ \new Staff \repeat percent 4 { c'1 }
+>>                          
+
+\layout {
+ \context {
+   \RemoveEmptyStaffContext
+ }
+}
index 7cc39b06aaba403a7801c421be94104d5b04d265..ffee024a1cf1e5042535f00a92066575fb96dbbf 100644 (file)
@@ -608,10 +608,12 @@ automatically when an output definition (a @code{\score} or
   keepAliveInterfaces = #'(
     rhythmic-grob-interface
     lyric-interface
+    percent-repeat-item-interface
+    percent-repeat-interface
 
     ;; need this, as stanza numbers are items, and appear only once. 
     stanza-number-interface
-    percent-repeat-interface)
+  )
   quotedEventTypes = #'(
     note-event
     rest-event
index b6b0f3cc2ebfb764994780d8cbb699f9f41edd55..691a565714e526dc9ccfb61424d75a631cbd077b 100644 (file)
@@ -116,6 +116,11 @@ note)."
  "Parentheses for other objects."
  '(padding stencils))
 
+(ly:add-interface
+ 'percent-repeat-interface
+ "Beat, Double and single measure repeats."
+ '())
+
 (ly:add-interface
  'piano-pedal-interface
  "A piano pedal sign."
index 07a22448302f54c754f7c97ccc9ce47ebfba42f2..00db81596437c851dcb0d17afd62a014629108b1 100644 (file)
        (meta . ((class . Item)
                 (interfaces . (font-interface
                                break-aligned-interface
+                               percent-repeat-interface
                                percent-repeat-item-interface))))))
 
     (DoublePercentRepeatCounter
                 (interfaces . (side-position-interface
                                self-alignment-interface
                                percent-repeat-item-interface
+                               percent-repeat-interface
                                font-interface
                                text-interface))))))
 
        (meta . ((class . Spanner)
                 (interfaces . (multi-measure-rest-interface
                                font-interface
-                               percent-repeat-item-interface))))))
+                               percent-repeat-interface
+                               ))))))
 
     (PercentRepeatCounter
      . (
        (meta . ((class . Spanner)
                 (interfaces . (side-position-interface
                                self-alignment-interface
-                               percent-repeat-item-interface
+                               percent-repeat-interface
                                font-interface
                                text-interface))))))
 
        (slope . 1.7)
        (meta . ((class . Item)
                 (interfaces . (rhythmic-grob-interface
+                               percent-repeat-interface
                                percent-repeat-item-interface))))))
 
     (RepeatTie