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