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