]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grobs.scm
*** empty log message ***
[lilypond.git] / scm / define-grobs.scm
1 ;;;; define-grobs.scm -- 
2 ;;;;
3 ;;;;  source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c)  1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
7
8 ;;;; distances are given in linethickness (thicknesses) and
9 ;;;; staffspace (distances)
10
11 ;;;; WARNING: the meta field should be the last one.
12 ;;;; WARNING: don't use anonymous functions for initialization. 
13
14 ;; TODO: junk the meta field in favor of something more compact?
15 (define-public all-grob-descriptions
16   `(
17     (Accidental
18      . (
19         (print-function . ,Accidental_interface::print)
20         (cautionary-style . parentheses)
21         (after-line-breaking-callback . ,Accidental_interface::after_line_breaking)             (meta . ((interfaces . (item-interface accidental-interface font-interface))))
22         ))
23     
24     (AccidentalPlacement
25      . (
26         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
27         (left-padding . 0.2)
28
29         ;; this is quite small, but it is very ugly to have
30         ;; accs closer to the previous note than to the next one.
31         (right-padding . 0.15)
32         (meta . ((interfaces . (item-interface accidental-placement-interface))))
33         ))
34     (Ambitus
35      . (
36         (axes . (0 1))
37         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
38         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
39         (space-alist . (
40                         (clef . (extra-space . 0.5))
41                         (key-signature . (extra-space . 0.0))
42                         (staff-bar . (extra-space . 0.0))
43                         (time-signature . (extra-space . 0.0)) 
44                         (first-note . (fixed-space . 0.0))
45                         ))
46         (breakable . #t)
47         (break-align-symbol . ambitus)
48         (break-visibility . ,begin-of-line-visible)
49         (meta . ((interfaces . (axis-group-interface break-aligned-interface ambitus-interface item-interface ))))
50         ))
51
52     (AmbitusLine
53      . (
54        (print-function . ,Ambitus::print)
55        (join-heads . #t)
56        (thickness . 2)
57        (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
58     
59        (meta . ((interfaces . (ambitus-interface staff-symbol-referencer-interface item-interface  font-interface))))
60        ))
61     (AmbitusAccidental
62      . (
63         (print-function . ,Accidental_interface::print)
64         (font-family . music)
65         (padding . 0.5)
66         (X-offset-callbacks . (,Side_position_interface::aligned_side))
67         (direction . -1) 
68         (cautionary-style . parentheses)
69         (after-line-breaking-callback . ,Accidental_interface::after_line_breaking)             (meta . ((interfaces . (item-interface accidental-interface break-aligned-interface side-position-interface font-interface))))
70         ))
71     (AmbitusNoteHead
72      . (
73         (duration-log . 2)
74         (style . default)
75         (print-function . ,Note_head::print)
76         (glyph-name-procedure . ,find-notehead-symbol)
77         (X-extent-callback . ,Note_head::extent)
78         (Y-extent-callback . ,Note_head::extent)
79         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
80         (meta . ((interfaces . (font-interface note-head-interface ambitus-interface staff-symbol-referencer-interface rhythmic-head-interface item-interface ))))
81         ))
82     
83     (Arpeggio
84      . (
85         (X-extent-callback . ,Arpeggio::width_callback)
86         (Y-extent-callback . #f)               
87         (print-function . ,Arpeggio::print)
88         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
89         (X-offset-callbacks . (,Side_position_interface::aligned_side))
90         (direction . -1)
91         (padding . 0.5)  
92         (staff-position . 0.0)
93         (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface item-interface font-interface))))
94         ))
95
96     (BarLine
97      . (
98         (break-align-symbol . staff-bar)
99         (glyph . "|")
100         (break-glyph-function . ,default-break-barline)
101         (bar-size-procedure . ,Bar_line::get_staff_bar_size)
102         (print-function . ,Bar_line::print)        
103         (break-visibility . ,all-visible)
104         (breakable . #t)
105         (before-line-breaking-callback . ,Bar_line::before_line_breaking)
106         (space-alist . (
107                         (time-signature . (extra-space . 0.75)) 
108                         (custos . (minimum-space . 2.0))
109                         (clef .   (minimum-space . 1.0))
110                         (key-signature . (extra-space . 1.0))
111                         (first-note . (fixed-space . 1.3))
112                         (next-note . (semi-fixed-space . 1.3))
113                         (right-edge . (extra-space . 0.0))
114                         ))
115
116         ;;
117         ;; Ross. page 151 lists other values, we opt for a leaner look
118         ;; 
119         (kern . 3.0)
120         (thin-kern . 3.0)
121         (hair-thickness . 1.9)
122         (thick-thickness . 6.0)
123         (meta . ((interfaces . (bar-line-interface item-interface   break-aligned-interface font-interface))))
124         ))
125
126     
127     (BarNumber
128      . (
129         (print-function . ,Text_item::print)
130         (breakable . #t)
131         (break-visibility . ,begin-of-line-visible)
132         (padding . 1.0)
133         (direction . 1)
134         (font-family . roman)
135         (font-size . -2)
136         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
137         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
138         (self-alignment-X . 1)
139
140         ;; hmm. why did we do this: ? 
141         (extra-offset . (1.3 . 0))
142         (meta .
143               ((interfaces . (side-position-interface
144                               text-interface
145                               self-alignment-interface
146                               font-interface item-interface  break-aligned-interface))))
147
148              ))
149
150     (BassFigure
151      . (
152         (print-function . ,Text_item::print)
153         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
154         (direction . 1)
155         (font-family . number)
156
157         ;; We must do this, other BFs in
158         ;; paper16 become too small.
159         (font-size . -4)
160         (kern . 0.2)
161         (meta . ((interfaces . (text-interface                                                  rhythmic-grob-interface
162                                                                                                 bass-figure-interface item-interface
163                                                                                                 self-alignment-interface font-interface))))
164         ))
165     (Beam
166      . (
167         ;; todo: clean this up a bit: the list is getting
168         ;; rather long.
169         (print-function . ,Beam::print)
170         (concaveness-gap . 1.85)
171         (concaveness-threshold . 0.26)
172         (gap . 0.8)
173         (positions . (#f . #f))
174         (position-callbacks . (,Beam::least_squares
175                                ,Beam::check_concave
176                                ,Beam::slope_damping
177                                ,Beam::shift_region_to_valid
178                                ,Beam::quanting
179                               ))
180
181         ;; TODO: should be in SLT.
182         (thickness . 0.48) ; in staff-space
183         (before-line-breaking-callback . ,Beam::before_line_breaking)
184         (after-line-breaking-callback . ,Beam::after_line_breaking)
185         (neutral-direction . -1)
186         (dir-function . ,beam-dir-majority-median)
187         
188         ;; Whe have some unreferenced problems here.
189         ;;
190         ;; If we shorten beamed stems less than normal stems (1 staffspace),
191         ;; or high order less than 8th beams, patterns like
192         ;;     c''4 [c''8 c''] c''4 [c''16 c]
193         ;; are ugly (different stem lengths).
194         ;;
195         ;; But if we shorten 16th beams as much as 8th beams, a single
196         ;; forced 16th beam looks *very* short.
197
198         ;; We choose to shorten 8th beams the same as single stems,
199         ;; and high order beams less than 8th beams, so that all
200         ;; isolated shortened beams look nice and a bit shortened,
201         ;; sadly possibly breaking patterns with high order beams.
202         (beamed-stem-shorten . (1.0 0.5 0.25))
203         
204         (slope-limit . 0.2)
205         (flag-width-function . ,beam-flag-width-function)
206         (damping . 1)
207         (auto-knee-gap . 5.5)
208
209         ;; only for debugging.
210         (font-family . roman)
211         
212         (space-function . ,Beam::space_function)
213         (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
214         ))
215
216     (BreakAlignment
217      . (
218         (breakable . #t)
219         (stacking-dir . 1)
220         (break-align-orders . #(; end-of-line:
221                                 (instrument-name left-edge ambitus breathing-sign
222                                                  clef  staff-bar key-signature
223                                                  time-signature custos)
224
225                                 ; unbroken
226                                 (instrument-name left-edge ambitus breathing-sign
227                                                  clef  staff-bar key-signature
228                                                  staff
229                                                  time-signature custos)
230                                 ; begin of line
231                                 (instrument-name left-edge ambitus breathing-sign
232                                                  clef key-signature staff-bar
233                                                  time-signature custos)
234
235                                 ))
236         (axes . (0))
237         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
238         (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
239         )
240
241     (BreakAlignGroup
242      . (
243         (axes  . (0))
244         (X-offset-callbacks . (,Break_align_interface::alignment_callback))
245         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
246         (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
247         ))
248
249     (BreathingSign
250      . (
251         (break-align-symbol . breathing-sign)
252         (breakable . #t)
253         (space-alist . (
254                         (ambitus . (extra-space . 2.0))
255                         (custos . (minimum-space . 1.0))
256                         (key-signature . (minimum-space . 1.5))
257                         (staff-bar . (minimum-space . 1.5))
258                         (clef . (minimum-space . 2.0))
259                         (first-note . (fixed-space . 1.0)) ;huh? 
260                         (right-edge . (extra-space . 0.1))
261                         ))
262         (print-function . ,Text_item::print)
263         (text . ,(make-musicglyph-markup "scripts-rcomma"))
264         (Y-offset-callbacks . (,Breathing_sign::offset_callback))
265         (break-visibility . ,begin-of-line-invisible)
266         (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
267         ))
268
269     (Clef
270      . (
271         (print-function . ,Clef::print)
272         (before-line-breaking-callback . ,Clef::before_line_breaking)
273         (breakable . #t)
274         (font-family . music)      
275         (break-align-symbol . clef)
276         (break-visibility . ,begin-of-line-visible)
277         (space-alist . ((ambitus . (extra-space . 2.0))
278                         (staff-bar . (extra-space . 0.7))
279                         (key-signature . (minimum-space . 4.0))
280                         (time-signature . (minimum-space . 4.2))
281                         (first-note . (minimum-fixed-space . 5.0))
282                         (next-note . (extra-space . 0.5))
283                         (right-edge . (extra-space . 0.5))
284                         ))
285         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback)) 
286         (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
287         ))
288     
289     (ClusterSpannerBeacon
290      . (
291         (print-function . #f)
292         (Y-extent-callback . ,Cluster_beacon::height)
293         (meta . ((interfaces . (cluster-beacon-interface item-interface))))
294         ))
295     
296     (ClusterSpanner
297      . (
298         (print-function . ,Cluster::print)
299         (spacing-procedure . ,Spanner::set_spacing_rods)                
300         (minimum-length . 0.0)
301         (padding . 0.25)
302         (style . ramp)
303         (meta . ((interfaces . (cluster-interface spanner-interface))))
304         ))
305
306     (ChordName
307      . (
308         (print-function . ,Text_item::print)
309         (after-line-breaking-callback . ,Chord_name::after_line_breaking)
310         (word-space . 0.0)
311         (font-family . sans)
312         (font-size . 1.5)
313         (meta . ((interfaces . (font-interface                                                  rhythmic-grob-interface
314                                                                                                 text-interface chord-name-interface item-interface ))))
315         ))
316
317     (Custos
318      . (
319         (break-align-symbol . custos)
320         (breakable . #t)
321         (print-function . ,Custos::print)
322         (break-visibility . ,end-of-line-visible)
323         (style . vaticana)
324         (neutral-direction . -1)
325         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
326         (space-alist . (
327                         (first-note . (minimum-fixed-space . 0.0))
328                         (right-edge . (extra-space . 0.1))
329                         ))
330         (meta . ((interfaces
331                   . (custos-interface staff-symbol-referencer-interface
332                                       font-interface
333                                       break-aligned-interface item-interface ))))
334         ))
335
336
337     (DotColumn
338      . (
339         (axes . (0))
340         (direction . ,RIGHT)
341         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
342         (X-offset-callbacks . (,Dot_column::side_position))
343         (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
344         ))
345
346     (Dots
347      . (
348         (print-function . ,Dots::print)
349         (dot-count . 1)
350         (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
351         ))
352
353     (DoublePercentRepeat
354      . (
355         (print-function . ,Percent_repeat_item_interface::double_percent)
356         (breakable . #t)
357         (slope . 1.0)
358         (font-encoding . fetaMusic)
359         (width . 2.0)
360         (thickness . 0.48)
361         (break-align-symbol . staff-bar)
362         (break-visibility . ,begin-of-line-invisible)
363         (meta . ((interfaces . (font-interface
364                                 break-aligned-interface
365                                 percent-repeat-interface item-interface ))))
366         ))
367     (DynamicText
368      . (
369         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
370         (print-function . ,Text_item::print)
371         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
372                                ,Self_alignment_interface::centered_on_parent))
373         (self-alignment-X . 0)
374         (no-spacing-rods . #t)
375         (script-priority . 100)
376         (font-series . bold)
377         (font-encoding . fetaDynamic)
378         (font-shape . italic)
379         (self-alignment-Y . 0)
380         (meta . ((interfaces . (font-interface text-interface self-alignment-interface
381                                                dynamic-interface script-interface item-interface))))
382         ))
383     (DynamicTextSpanner
384      . ((print-function . ,Dynamic_text_spanner::print)
385         (font-series . bold) 
386         (font-shape . italic)
387         (style . dashed-line)
388
389         ; need to blend with dynamic texts.
390         (font-size . 2)
391         (bound-padding . 0.75) 
392         (dash-fraction . 0.2)
393         (dash-period . 3.0)
394         (meta . ((interfaces . (font-interface
395                                 text-interface 
396                                 dynamic-interface dynamic-text-spanner-interface
397                                 item-interface))))
398          ))
399     
400     (DynamicLineSpanner
401      . (
402         (axes . (1))
403         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
404         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
405         (staff-padding . 0.1)
406         (padding . 0.6)
407         (minimum-space . 1.2)
408         (direction . -1)
409         (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
410         ))
411
412     (LeftEdge
413      . (
414         (break-align-symbol . left-edge)
415         (X-extent .  (0 . 0))
416         (breakable . #t)
417         (space-alist . (
418                         (custos . (extra-space . 0.0))
419                         (ambitus . (extra-space . 2.0))
420                         (time-signature . (extra-space . 0.0)) 
421                         (staff-bar . (extra-space . 0.0))
422                         (breathing-sign . (minimum-space  . 0.0))
423                         (clef . (extra-space . 0.85))
424                         (first-note . (fixed-space . 1.0))
425                         (right-edge . (extra-space . 0.0))
426                         (key-signature . (extra-space . 0.0))
427                         ))
428         (meta . ((interfaces . (break-aligned-interface item-interface ))))
429         ))
430
431     (Fingering
432      . (
433         (print-function . ,Text_item::print)
434         (padding . 0.6)
435         (staff-padding . 0.6)
436         (self-alignment-X . 0)
437         (self-alignment-Y . 0)
438         (script-priority . 100)
439         (font-encoding . fetaNumber)
440         (font-size . -5)                ; don't overlap when next to heads.
441         (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
442         ))
443
444     (Glissando
445      . (
446         (style . line)
447         (gap . 0.5)
448         (zigzag-width . 0.75)
449         (breakable . #t)
450         (X-extent-callback . #f)
451         (Y-extent-callback . #f)                         
452         (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
453         (print-function . ,Line_spanner::print)
454         (meta . ((interfaces . (line-spanner-interface spanner-interface))))
455         ))
456
457     (Hairpin
458      . (
459         (print-function . ,Hairpin::print)
460         (thickness . 1.0)
461         (height . 0.6666)
462         (spacing-procedure . ,Spanner::set_spacing_rods)
463         (minimum-length . 2.0)
464         (bound-padding . 1.0)
465         (self-alignment-Y . 0)
466         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
467         (meta . ((interfaces . (hairpin-interface line-interface self-alignment-interface dynamic-interface spanner-interface))))
468         ))
469
470     (HorizontalBracket
471      . (
472         (thickness . 1.0)
473         (print-function . ,Horizontal_bracket::print)
474         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
475         (padding . 0.2)
476         (direction . -1)
477         (meta . ((interfaces . (horizontal-bracket-interface side-position-interface spanner-interface))))
478         ))
479     (InstrumentName
480      . (
481         (breakable . #t)
482         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
483                                ,Side_position_interface::aligned_on_support_refpoints))
484         ;; This direction is for aligned_on_support_refpoints
485         ;; (?) --hwn
486         (direction . 0)
487         (space-alist . (
488                         (left-edge . (extra-space . 1.0))
489                         ))
490
491         (self-alignment-Y . 0)
492         (print-function . ,Text_item::print)            
493         (break-align-symbol . instrument-name)
494         (break-visibility . ,begin-of-line-visible)
495         (baseline-skip . 2)
496         (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
497         ))
498     
499     (VocalName
500      . (
501         (breakable . #t)
502         (Y-offset-callbacks . (,Side_position_interface::aligned_on_support_refpoints))
503         (direction . 0)
504         (space-alist . ((left-edge . (extra-space . 1.0))
505                         ))
506         (break-align-symbol . instrument-name)
507         (print-function . ,Text_item::print)            
508         (break-align-symbol . clef)
509         (break-visibility . ,begin-of-line-visible)
510         (baseline-skip . 2)
511         (meta . ((interfaces . (font-interface
512                                 self-alignment-interface
513                                 side-position-interface text-interface
514                                 break-aligned-interface item-interface ))))
515         ))
516
517     (KeySignature
518      . (
519         (print-function . ,Key_signature_interface::print)
520         (space-alist . (
521                         (time-signature . (extra-space . 1.25))
522                         (staff-bar .  (extra-space . 1.1))
523                         (right-edge . (extra-space . 0.5))
524                         (first-note . (fixed-space . 2.5))
525                         ))
526         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
527         (break-align-symbol . key-signature)
528         (break-visibility . ,begin-of-line-visible)
529         (breakable . #t)
530         (meta . ((interfaces . (key-signature-interface  font-interface  break-aligned-interface item-interface ))))
531         ))
532     (LedgerLineSpanner
533      . (
534         (print-function . ,Ledger_line_spanner::print)
535         (X-extent-callback . #f)
536         (Y-extent-callback . #f)
537         (print-function . ,Ledger_line_spanner::print)
538         (meta . ((interfaces . (spanner-interface ledger-line-interface))))
539         ))
540     
541     (LigatureBracket
542      . (
543         (ligature-primitive-callback . ,Note_head::print)
544         (direction . 1)
545         (gap . 0.0)
546         (padding . 2.0)
547         (thickness . 1.6)
548         (edge-height . (0.7 . 0.7))
549         (shorten-pair . (-0.2 . -0.2))
550         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
551         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
552         (print-function . ,Tuplet_bracket::print)
553         (meta .  ((interfaces . (tuplet-bracket-interface spanner-interface))))
554         ))
555
556     (LyricHyphen
557      . (
558         (thickness . 1.3)
559         (height . 0.42)
560         (dash-period . 10.0)
561         (length . 0.66)
562         (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
563         (print-function . ,Hyphen_spanner::print)
564         (Y-extent  . (0 . 0))
565         (meta . ((interfaces . (lyric-interface lyric-hyphen-interface
566                                                 spanner-interface))))
567         ))
568
569     (LyricExtender
570      . (
571         (print-function . ,Lyric_extender::print)
572         (thickness . 0.8) ; linethickness
573         (minimum-length . 1.5)
574         (Y-extent . (0 . 0))
575         (meta . ((interfaces . (lyric-interface
576                                 lyric-extender-interface spanner-interface))))
577         ))
578
579     (LyricText
580      . ((print-function . ,Text_item::print)
581         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
582         (self-alignment-X . 0)
583         (word-space . 0.6)
584         (font-series . bold-narrow)
585         (font-size . 1.0)
586         (meta . ((interfaces . (rhythmic-grob-interface lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
587         ))
588
589     (MensuralLigature
590      . (
591         (thickness . 1.4)
592         (flexa-width . 2.0)
593         (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
594         (print-function . ,Mensural_ligature::print)
595         (meta . ((interfaces . (mensural-ligature-interface font-interface))))
596         ))
597
598     (RehearsalMark
599      . (
600         (print-function . ,Text_item::print)
601         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
602         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
603         (after-line-breaking-callback . ,shift-right-at-line-begin)
604         (self-alignment-X . 0)
605         (direction . 1)
606         (breakable . #t)
607         (font-size . 2)
608         (baseline-skip . 2)
609         (break-visibility . ,end-of-line-invisible)
610         (padding . 0.8)
611         (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
612         ))
613      (MetronomeMark
614      . (
615         (print-function . ,Text_item::print)
616         (Y-offset-callbacks . (,Side_position_interface::aligned_side)) 
617         (direction . 1)
618         (padding . 0.8)
619         (meta . ((interfaces . (text-interface side-position-interface font-interface metronome-mark-interface item-interface))))
620         ))
621     (MeasureGrouping
622      . (
623         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
624         (print-function . ,Measure_grouping::print)
625         (padding . 2)
626         (direction . 1)
627         (thickness . 1)
628         (height . 2.0)
629         (staff-padding . 3)
630         (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
631         ))
632     (MultiMeasureRest
633      . (
634         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
635         (print-function . ,Multi_measure_rest::print)
636         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
637         (staff-position . 0)
638         (expand-limit . 10)
639         (thick-thickness . 6.6)
640         (hair-thickness . 2.0)
641         (padding . 1)
642         (meta . ((interfaces . (multi-measure-rest-interface multi-measure-interface rest-interface font-interface staff-symbol-referencer-interface))))
643         ))
644     
645     (MultiMeasureRestNumber
646      . (
647         (print-function . ,Text_item::print)
648         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
649                                ,Self_alignment_interface::centered_on_other_axis_parent))
650         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
651         (self-alignment-X . 0)
652         (direction . 1)
653         (padding . 1.3)
654         (staff-padding . 1.3)
655         (font-encoding . fetaNumber)
656         (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
657         ))
658     (MultiMeasureRestText
659      . (
660         (print-function . ,Text_item::print)
661         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
662                                ,Self_alignment_interface::centered_on_other_axis_parent))
663         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
664         (self-alignment-X . 0)
665         (direction . 1)
666         (padding . 1.5)
667         (staff-padding . 1.5)
668         (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
669         ))
670  (NoteCollision
671      . (
672         (axes . (0 1))
673         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
674         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
675         (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
676         ))
677
678     (NoteColumn
679      . (
680         (axes . (0 1))
681         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
682         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
683         (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
684         ))
685
686     (NoteHead
687      . (
688         (style . default)
689         (print-function . ,Note_head::print)
690         (ligature-primitive-callback . ,Note_head::print)
691         (glyph-name-procedure . ,find-notehead-symbol)
692         (X-extent-callback . ,Note_head::extent)
693         (Y-extent-callback . ,Note_head::extent)
694         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
695         (stem-attachment-function . ,note-head-style->attachment-coordinates)
696         (meta . ((interfaces . (rhythmic-grob-interface rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
697         ))
698
699     (NoteSpacing
700      . (
701         (stem-spacing-correction . 0.5)
702
703         ;; Changed this from 0.75.
704         ;; If you ever change this back, please document! --hwn
705         (knee-spacing-correction . 1.0)
706         
707         (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
708         ))
709
710     (VoiceFollower
711      . (
712         (style . line)
713         (gap . 0.5)
714         (breakable . #t)
715         (X-extent-callback . #f)
716         (Y-extent-callback . #f)                         
717         (print-function . ,Line_spanner::print)
718         (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
719         (meta . ((interfaces . (line-spanner-interface line-interface spanner-interface))))
720         ))
721
722     (NoteName
723      . (
724         (print-function . ,Text_item::print)
725         (meta . ((interfaces . (note-name-interface
726                                 text-interface font-interface item-interface ))))
727         ))
728
729     (OctavateEight
730      . (
731         (self-alignment-X . 0)
732         (break-visibility . ,begin-of-line-visible)
733         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
734         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
735         (print-function . ,Text_item::print)
736
737         ;; no Y dimensions, because of lyrics under tenor clef.
738         (Y-extent . (0 . 0))
739         (font-shape . italic)
740         (padding . 0.6)
741         (staff-padding . 0.2)
742         (font-size . -4)
743         (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
744         ))
745
746     (PaperColumn
747      . (
748         (axes . (0))
749         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
750         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
751
752 ;               (print-function . ,Paper_column::print) (font-name . "ecrm8") (Y-extent-callback . #f)
753         (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
754         ))
755
756     (PhrasingSlur
757      . (
758         (print-function . ,New_slur::print)
759         (thickness . 1.2)               
760         (spacing-procedure . ,Spanner::set_spacing_rods)                
761         (minimum-length . 1.5)
762         (after-line-breaking-callback . ,New_slur::after_line_breaking)
763         (Y-extent-callback . ,New_slur::height)
764         (height-limit . 2.0)
765         (ratio . 0.333)
766         (meta . ((interfaces . (slur-interface spanner-interface))))
767         ))
768
769     (NonMusicalPaperColumn
770      . (
771         (axes . (0))
772         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
773         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
774         (breakable . #t)
775         ;; debugging stuff: print column number.
776 ;       (print-function . ,Paper_column::print) (font-name . "ecrm8")   (Y-extent-callback . #f)
777
778
779         (meta .  ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
780         ))
781
782     (PercentRepeat
783      . (
784         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
785         (print-function . ,Multi_measure_rest::percent)
786         (slope . 1.0)
787         (thickness . 0.48)
788         (font-encoding . fetaMusic)
789         (meta . ((interfaces . (multi-measure-rest-interface  spanner-interface font-interface percent-repeat-interface))))
790         ))
791
792     (PianoPedalBracket   ;; an example of a text spanner
793      . (
794         (print-function . ,Piano_pedal_bracket::print)
795         (style . line)
796         (bound-padding . 1.0)
797         (direction . -1)
798         (bracket-flare . (0.5 . 0.5))
799         (edge-height . (1.0 . 1.0))
800         (shorten-pair . (0.0 . 0.0))
801         (thickness .  1.0)
802         (meta . ((interfaces . (line-interface piano-pedal-interface piano-pedal-bracket-interface spanner-interface))))
803         ))
804
805
806     (RemoveEmptyVerticalGroup
807      . (
808         (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
809         (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
810         (remove-first . #t)
811         (axes . (1))
812         (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface  spanner-interface))))
813         ))
814
815     (RepeatSlash
816      . (
817         (print-function . ,Percent_repeat_item_interface::beat_slash)
818         (thickness . 0.48)
819         (slope . 1.7)
820         (meta . ((interfaces . (percent-repeat-interface item-interface ))))
821         ))
822     (Rest
823      . (
824         (after-line-breaking-callback . ,Rest::after_line_breaking)
825         (X-extent-callback . ,Rest::extent_callback)
826         (Y-extent-callback . ,Rest::extent_callback)            
827         (print-function . ,Rest::print)
828         (Y-offset-callbacks . (,Staff_symbol_referencer::callback
829                                ,Rest::polyphonic_offset_callback
830                                ))
831         (minimum-distance . 0.25)
832         (meta . (
833                  (interfaces . (font-interface
834                                 rhythmic-head-interface
835                                 rhythmic-grob-interface
836                                 staff-symbol-referencer-interface
837                                 rest-interface item-interface ))
838                 ))))
839
840     (RestCollision
841      . (
842         (minimum-distance . 0.75)
843         (meta . ((interfaces . (rest-collision-interface item-interface ))))
844         ))
845
846     (Script
847      . (
848         ;; don't set direction here: it breaks staccato.
849         (print-function . ,Script_interface::print)
850
851         ;; This value is sensitive: if too large, staccato dots will move a
852         ;; space a away.
853         (padding . 0.20)
854         (staff-padding . 0.25)
855         ;; (script-priority . 0) priorities for scripts, see script.scm
856         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
857         (before-line-breaking-callback . ,Script_interface::before_line_breaking)
858         (font-encoding . fetaMusic)
859         (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
860         ))
861
862     (ScriptColumn
863      . (
864         (before-line-breaking-callback . ,Script_column::before_line_breaking)
865         (meta . ((interfaces . (script-column-interface item-interface ))))
866         ))
867
868     (Slur
869      . (
870         (print-function . ,New_slur::print)
871         (thickness . 1.2)               
872         (spacing-procedure . ,Spanner::set_spacing_rods)                
873         (minimum-length . 1.5)
874         (after-line-breaking-callback . ,New_slur::after_line_breaking)
875         (Y-extent-callback . ,New_slur::height)
876                                         ; Slur::height)
877         (height-limit . 2.0)
878         (ratio . 0.25)
879         (meta . ((interfaces . (slur-interface spanner-interface))))
880         ))
881
882     (SpacingSpanner
883      . (
884         (spacing-procedure .  ,Spacing_spanner::set_springs)
885         (grace-space-factor . 0.6)
886         (shortest-duration-space . 2.0)
887         (spacing-increment . 1.2)
888         (base-shortest-duration . ,(ly:make-moment 1 8))
889         (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
890         ))
891
892     (SpanBar
893      . (
894         (break-align-symbol . staff-bar)
895         (bar-size-procedure . ,Span_bar::get_bar_size) 
896         (print-function . ,Span_bar::print)
897         (X-extent-callback . ,Span_bar::width_callback)
898         (Y-extent-callback . ())
899         (breakable . #t)
900         (before-line-breaking-callback . ,Span_bar::before_line_breaking)
901         ;; ugh duplication! 
902
903         ;;
904         ;; Ross. page 151 lists other values, we opt for a leaner look
905         ;; 
906         (kern . 3.0)
907         (thin-kern . 3.0)
908         (hair-thickness . 1.6)
909         (thick-thickness . 6.0)
910         (meta . ((interfaces . (span-bar-interface font-interface
911                                                    bar-line-interface item-interface ))))
912         ))
913
914     (StanzaNumber
915      . ((print-function . ,Text_item::print)            
916         (font-series . bold)
917         (padding . 1.0)
918         (X-offset-callbacks . (,Side_position_interface::aligned_side))
919         (direction . ,LEFT) 
920         (meta . ((interfaces . (side-position-interface stanza-number-interface text-interface font-interface item-interface ))))               
921         ))
922
923     (StaffSpacing
924      . (
925         (breakable . #t)
926         (stem-spacing-correction . 0.4)
927
928         (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
929         ))
930
931     (SostenutoPedal
932      . (
933         (print-function . ,Text_item::print)
934         (direction . 1)
935         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
936         (no-spacing-rods . #t)
937         (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
938         (font-shape . italic)
939         (self-alignment-X . 0)
940         (meta . ((interfaces . (text-interface  self-alignment-interface font-interface item-interface))))
941         ))
942
943     (SostenutoPedalLineSpanner 
944      . (
945         (axes . (1))
946         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
947         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
948         
949
950         (padding . 1.2)
951         (minimum-space . 1.0)
952         (direction . -1)
953         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface  spanner-interface))))
954         ))
955
956     (StaffSymbol
957      . (
958         (print-function . ,Staff_symbol::print)
959         (line-count . 5)
960         (ledger-line-thickness  . (1.0 . 0.1))
961         (layer . 0)
962         (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
963         ))
964         
965     (Stem
966      . (
967         ;; this list is rather long. Trim --hwn
968         (before-line-breaking-callback . ,Stem::before_line_breaking)
969         (print-function . ,Stem::print)
970         (thickness . 1.3)
971
972         ;; 3.5 (or 3 measured from note head) is standard length
973         ;; 32nd, 64th flagged stems should be longer
974         (lengths . (3.5 3.5 3.5 4.5 5.0))
975         
976         ;; Stems in unnatural (forced) direction should be shortened by
977         ;; one staff space, according to [Roush & Gourlay].
978         ;; Flagged stems we shorten only half a staff space.
979         (stem-shorten . (1.0 0.5))
980
981         ;; default stem direction for note on middle line
982         (neutral-direction . -1)
983
984
985
986         ;; FIXME.  3.5 yields too long beams (according to Ross and
987         ;; looking at Baerenreiter examples) for a number of common
988         ;; boundary cases.  Subtracting half a beam thickness fixes
989         ;; this, but the bug may well be somewhere else.
990
991         ;; FIXME this should come from 'lengths
992
993         (beamed-lengths . (3.26 3.26 1.5))
994         
995         ;; We use the normal minima as minimum for the ideal lengths,
996         ;; and the extreme minima as abolute minimum length.
997         
998         ;; The 'normal' minima
999         (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1000         
1001         ;; The 'extreme case' minima
1002         (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1003
1004         (X-offset-callbacks . (,Stem::off_callback))
1005         (X-extent-callback . ,Stem::dim_callback)       
1006         (Y-extent-callback . ,Stem::height)
1007         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1008         (meta . ((interfaces . (stem-interface font-interface item-interface ))))
1009         ))
1010
1011     (StemTremolo
1012      . (
1013         (print-function . ,Stem_tremolo::print)
1014         (Y-extent-callback . ,Stem_tremolo::height)
1015         (X-extent-callback . #f)
1016
1017         (beam-width . 1.6) ; staff-space
1018         (beam-thickness . 0.48) ; staff-space
1019         (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
1020         ))
1021
1022     (SeparationItem
1023      . (
1024         (X-extent-callback . #f)
1025         (Y-extent-callback . #f)
1026         (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
1027         ))
1028
1029     (SeparatingGroupSpanner
1030      . (
1031         (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
1032         (meta . ((interfaces . (only-prebreak-interface spacing-interface separation-spanner-interface spanner-interface))))
1033         ))
1034
1035     (SustainPedal
1036      . (
1037         (no-spacing-rods . #t)
1038         (print-function . ,Sustain_pedal::print)
1039         (self-alignment-X . 0)
1040         (direction . 1)
1041         (padding . 0.0)  ;; padding relative to SustainPedalLineSpanner
1042         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1043         (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
1044         ))
1045
1046     (SustainPedalLineSpanner 
1047      . (
1048         (axes . (1))
1049         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1050         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1051         
1052         (padding . 1.2)
1053         (staff-padding . 1.2)
1054         (minimum-space . 1.0)
1055         (direction . -1)
1056         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1057         ))
1058
1059     (System
1060      . (
1061         (axes . (0 1))
1062         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1063         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1064         (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1065         ))
1066
1067     (SystemStartBrace
1068      . (
1069         (glyph . "brace")
1070         (print-function . ,System_start_delimiter::print)
1071         (collapse-height . 5.0)
1072         (font-encoding . fetaBraces)
1073         (Y-extent-callback . #f)
1074         (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1075         ))
1076
1077     (SystemStartBracket
1078      . (
1079         (Y-extent-callback . #f)
1080         (print-function . ,System_start_delimiter::print)
1081         (glyph . "bracket")
1082         (arch-height . 1.5)
1083         (arch-angle . 50.0)
1084         (arch-thick . 0.25)
1085         (arch-width . 1.5)
1086         (collapse-height . 1)
1087         (thickness . 0.25)
1088         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1089         ))
1090
1091     (SystemStartBar
1092      . (
1093         (Y-extent-callback . #f)
1094         (print-function . ,System_start_delimiter::print)
1095         (glyph . "bar-line")
1096         (thickness . 1.6)
1097         (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1098         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1099         ))
1100
1101     (TextScript
1102      . (
1103         (print-function . ,Text_item::print)
1104         (no-spacing-rods . #t)
1105         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1106         (direction . -1)
1107         (padding . 0.5)
1108         (staff-padding . 0.5)
1109         (script-priority . 200)
1110         ;; todo: add X self alignment?
1111         (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1112         ))
1113     (CombineTextScript
1114      . (
1115         (print-function . ,Text_item::print)
1116         (no-spacing-rods . #t)
1117         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1118         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1119         (direction . 1)
1120         (extra-offset . (-1 . 0)) 
1121         (padding . 0.5)
1122         (staff-padding . 0.5)
1123         (script-priority . 200)
1124         ;; todo: add X self alignment?
1125         (baseline-skip . 2)
1126         (font-series . bold)
1127         (meta . ((interfaces . (text-script-interface text-interface  side-position-interface font-interface item-interface ))))
1128         ))
1129     (TextSpanner
1130      . (
1131         (print-function . ,Text_spanner::print)
1132         (font-shape . italic)
1133         (style . dashed-line)
1134         (staff-padding . 0.1)
1135         (dash-fraction . 0.2)
1136         (dash-period . 3.0)
1137         (direction . 1)
1138         (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))             
1139         ))
1140     (TrillSpanner
1141      . (
1142         (print-function . ,Dynamic_text_spanner::print)
1143         (edge-text . ,(cons (make-musicglyph-markup "scripts-trill")
1144                             ""))
1145         (style . trill)
1146         (staff-padding . 1.0)
1147         (padding . 0.5)
1148         (direction . 1)
1149         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1150         (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))             
1151         ))
1152     
1153     (OttavaBracket
1154      . (
1155         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1156         (print-function . ,Ottava_bracket::print)
1157         (font-shape . italic)
1158         (shorten-pair . (0.0 . -0.6))
1159         (staff-padding . 1.0)
1160         (padding  . 0.5)
1161         (minimum-length . 1.0)
1162         (dash-fraction . 0.3)
1163         (edge-height . (0 . 1.2))
1164         (direction . 1)
1165         (meta . ((interfaces . (ottava-bracket-interface
1166                                 line-interface side-position-interface
1167                                 font-interface text-interface spanner-interface))))             
1168         ))
1169     
1170     (TabNoteHead
1171      . (
1172         (style . default)
1173         (print-function . ,Text_item::print)
1174         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
1175         (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1176         (stem-attachment-function . ,tablature-stem-attachment-function)
1177         (meta . ((interfaces
1178                   . (rhythmic-head-interface
1179                      font-interface
1180                      note-head-interface staff-symbol-referencer-interface
1181                      text-interface item-interface ))))
1182         ))
1183
1184
1185     (Tie
1186      . (
1187         (print-function . ,Tie::print)
1188         (spacing-procedure . ,Spanner::set_spacing_rods)
1189         (staffline-clearance . 0.35)
1190         (details . ((ratio . 0.333) (height-limit . 1.0)))
1191         (thickness . 1.2)
1192         (x-gap . -0.1)
1193         (y-offset . 0.6)
1194         (minimum-length  . 2.5)
1195         (meta . ((interfaces . (tie-interface spanner-interface))))
1196         ))
1197
1198     (TieColumn
1199      . (
1200         (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1201         (X-extent-callback . #f)
1202         (Y-extent-callback . #f)        
1203         (meta . ((interfaces . (tie-column-interface spanner-interface))))
1204         ))
1205
1206     (TimeSignature
1207      . (
1208         (print-function . ,Time_signature::print)
1209 ;       (print-function . ,Text_item::print)    
1210         (break-align-symbol . time-signature)
1211         (break-visibility . ,all-visible)
1212         (space-alist . (
1213                         (first-note . (fixed-space . 2.0))
1214                         (right-edge . (extra-space . 0.5))
1215                         (staff-bar .  (minimum-space . 2.0))
1216                         ))
1217         (breakable . #t)
1218         (style . C)
1219 ;       (text . (,time-signature-glue-markup)) 
1220         (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1221         ))
1222
1223     (TupletBracket
1224      . (
1225         (padding . 1.1)
1226         (thickness . 1.6)
1227         (edge-height . (0.7 . 0.7))
1228         (shorten-pair . (-0.2 . -0.2))
1229         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1230         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1231         (print-function . ,Tuplet_bracket::print)
1232         (font-shape . italic)
1233         (font-series . bold)
1234
1235         (font-size . -2)
1236         (meta .  ((interfaces . (text-interface line-interface tuplet-bracket-interface font-interface spanner-interface))))
1237         ))
1238
1239     (UnaCordaPedal
1240      . (
1241         (print-function . ,Text_item::print)
1242         (font-shape . italic)
1243         (no-spacing-rods . #t)
1244         (self-alignment-X . 0)
1245         (direction . 1)
1246         (padding . 0.0)  ;; padding relative to UnaCordaPedalLineSpanner
1247         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1248         (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1249         ))
1250
1251     (UnaCordaPedalLineSpanner 
1252      . (
1253         (axes . (1))
1254         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1255         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1256         (padding . 1.2)
1257         (staff-padding . 1.2)
1258         (minimum-space . 1.0)
1259         (direction . -1)
1260         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1261         ))
1262
1263     (VaticanaLigature
1264      . (
1265         (thickness . 0.6)
1266         (flexa-width . 2.0)
1267         (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1268         (print-function . ,Vaticana_ligature::print)
1269         (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1270         ))
1271
1272     (VoltaBracket
1273      . (
1274         (print-function . ,Volta_bracket_interface::print)
1275         (direction . 1)
1276         (padding . 1)
1277         (font-encoding . fetaNumber)
1278         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1279         (thickness . 1.6)  ;  linethickness
1280         (height . 2.0) ; staffspace;
1281         (minimum-space . 5)
1282         (font-size . -4)
1283         (meta . ((interfaces . (volta-bracket-interface line-interface text-interface side-position-interface font-interface spanner-interface))))
1284         ))
1285     
1286     (VerticalAlignment
1287      . (
1288         (axes . (1))
1289         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1290         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1291         (stacking-dir . -1)
1292         (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1293         ))
1294
1295     (VerticalAxisGroup
1296      . (
1297         (axes . (1))
1298         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1299         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1300         
1301         (meta . ((interfaces . (axis-group-interface spanner-interface))))
1302         ))
1303    )
1304  )
1305
1306
1307
1308
1309 (define (completize-grob-entry x)
1310   "transplant assoc key into 'name entry of 'meta of X
1311 "
1312   (let* ((name-sym  (car x))
1313          (grob-entry (cdr x))
1314          (metaentry (cdr (assoc 'meta grob-entry)))
1315          (ifaces-entry
1316           (cdr (assoc 'interfaces metaentry)))
1317
1318         )
1319     (set! metaentry (assoc-set! metaentry 'name name-sym))
1320     (set! metaentry (assoc-set! metaentry 'interfaces
1321                                 (cons 'grob-interface ifaces-entry)))
1322     (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1323     (cons name-sym grob-entry)))
1324
1325 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1326
1327
1328
1329                                         ;  (display  (map pair? all-grob-descriptions))
1330
1331
1332 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1333
1334 (map (lambda (x)
1335                                         ; (display (car x)) (newline)
1336
1337        (set-object-property! (car x) 'translation-type? list?)
1338        (set-object-property! (car x) 'is-grob? #t))
1339      all-grob-descriptions)
1340
1341
1342 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))