]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grobs.scm
(all-grob-descriptions): switch off
[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-callback  . ,Grid_line_interface::width_callback)
511         (self-alignment-X . ,CENTER)
512         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
513                                ,Self_alignment_interface::centered_on_parent))
514         (layer . 0)
515         (meta . ((interfaces . (self-alignment-interface grid-line-interface)))
516         )))
517         
518     (Hairpin
519      . (
520         (print-function . ,Hairpin::print)
521         (after-line-breaking-callback . ,Hairpin::after_line_breaking)
522         (thickness . 1.0)
523         (height . 0.6666)
524         (spacing-procedure . ,Spanner::set_spacing_rods)
525         (minimum-length . 2.0)
526         (bound-padding . 1.0)
527         (self-alignment-Y . 0)
528         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
529         (meta . ((interfaces . (hairpin-interface
530                                 line-interface self-alignment-interface dynamic-interface
531                                 spanner-interface))))
532         ))
533
534     (HorizontalBracket
535      . (
536         (thickness . 1.0)
537         (print-function . ,Horizontal_bracket::print)
538         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
539         (padding . 0.2)
540         (staff-padding . 0.2)
541         (direction . -1)
542         (bracket-flare . (0.5 . 0.5))
543         (meta . ((interfaces . (horizontal-bracket-interface
544                                 side-position-interface
545                                 line-interface
546                                 spanner-interface))))
547         ))
548     (InstrumentName
549      . (
550         (breakable . #t)
551         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
552                                ,Side_position_interface::aligned_on_support_refpoints))
553         ;; This direction is for aligned_on_support_refpoints
554         ;; (?) --hwn
555         (direction . 0)
556         (space-alist . (
557                         (left-edge . (extra-space . 1.0))
558                         ))
559
560         (self-alignment-Y . 0)
561         (print-function . ,Text_interface::print)               
562         (break-align-symbol . instrument-name)
563         (break-visibility . ,begin-of-line-visible)
564         (baseline-skip . 2)
565         (meta . ((interfaces . (font-interface
566                                 self-alignment-interface side-position-interface text-interface
567                                 break-aligned-interface item-interface ))))
568         ))
569
570     (VocalName
571      . (
572         (breakable . #t)
573         (Y-offset-callbacks . (,Side_position_interface::aligned_on_support_refpoints))
574         (direction . 0)
575         (space-alist . ((left-edge . (extra-space . 1.0))
576                         ))
577         (break-align-symbol . instrument-name)
578         (print-function . ,Text_interface::print)               
579         (break-align-symbol . clef)
580         (break-visibility . ,begin-of-line-visible)
581         (baseline-skip . 2)
582         (meta . ((interfaces . (font-interface
583                                 self-alignment-interface
584                                 side-position-interface text-interface
585                                 break-aligned-interface item-interface ))))
586         ))
587     (KeyCancellation
588      . (
589         (print-function . ,Key_signature_interface::print)
590         (space-alist . (
591                         (time-signature . (extra-space . 1.25))
592                         (staff-bar . (extra-space . 0.6))
593                         (key-signature . (extra-space . 0.5))
594                         (right-edge . (extra-space . 0.5))
595                         (first-note . (fixed-space . 2.5))
596                         ))
597         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
598         (break-align-symbol . key-cancellation)
599         (break-visibility . ,begin-of-line-invisible)
600         (breakable . #t)
601         
602         (meta . ((interfaces . (key-signature-interface font-interface
603                                                         break-aligned-interface item-interface ))))
604         ))
605     (KeySignature
606      . (
607         (print-function . ,Key_signature_interface::print)
608         (space-alist . (
609                         (time-signature . (extra-space . 1.25))
610                         (staff-bar . (extra-space . 1.1))
611                         (right-edge . (extra-space . 0.5))
612                         (first-note . (fixed-space . 2.5))
613                         ))
614         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
615         (break-align-symbol . key-signature)
616         (break-visibility . ,begin-of-line-visible)
617         (breakable . #t)
618         
619         (meta . ((interfaces . (key-signature-interface font-interface
620                                                         break-aligned-interface item-interface ))))
621         ))
622     (LedgerLineSpanner
623      . (
624         (print-function . ,Ledger_line_spanner::print)
625         (X-extent-callback . #f)
626         (Y-extent-callback . #f)
627         (minimum-length-fraction . 0.25)
628         (length-fraction . 0.25)
629         (spacing-procedure . ,Ledger_line_spanner::set_spacing_rods)
630         (print-function . ,Ledger_line_spanner::print)
631         (layer . 0)
632         (meta . ((interfaces . (spanner-interface ledger-line-interface))))
633         ))
634
635     (LigatureBracket
636      . (
637         (ligature-primitive-callback . ,Note_head::print)
638         (direction . 1)
639         (gap . 0.0)
640         (padding . 2.0)
641         (thickness . 1.6)
642         (edge-height . (0.7 . 0.7))
643         (shorten-pair . (-0.2 . -0.2))
644         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
645         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
646         (print-function . ,Tuplet_bracket::print)
647         (meta . ((interfaces . (tuplet-bracket-interface line-interface spanner-interface))))
648         ))
649
650     (LyricHyphen
651      . (
652         (thickness . 1.3)
653         (height . 0.42)
654         (dash-period . 10.0)
655         (length . 0.66)
656         (minimum-length . 0.3)
657         (padding . 0.07)
658 ;       (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
659         (print-function . ,Hyphen_spanner::print)
660         (Y-extent . (0 . 0))
661         (meta . ((interfaces . (lyric-interface lyric-hyphen-interface
662                                                 spanner-interface))))
663         ))
664
665     (LyricExtender
666      . (
667         (print-function . ,Lyric_extender::print)
668         (thickness . 0.8) ; linethickness
669         (minimum-length . 1.5)
670         (Y-extent . (0 . 0))
671         (meta . ((interfaces . (lyric-interface
672                                 lyric-extender-interface spanner-interface))))
673         ))
674
675     (LyricText
676      . ((print-function . ,Text_interface::print)
677         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
678         (self-alignment-X . 0)
679         (word-space . 0.6)
680         (font-series . bold-narrow)
681         (font-size . 1.0)
682         (meta . ((interfaces . (rhythmic-grob-interface
683                                 lyric-syllable-interface
684                                 self-alignment-interface text-interface
685                                 font-interface item-interface ))))
686         ))
687
688     (MensuralLigature
689      . (
690         (thickness . 1.4)
691         (flexa-width . 2.0)
692         (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
693         (print-function . ,Mensural_ligature::print)
694         (meta . ((interfaces . (mensural-ligature-interface font-interface))))
695         ))
696
697     (RehearsalMark
698      . (
699         (print-function . ,Text_interface::print)
700         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
701         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
702         (after-line-breaking-callback . ,shift-right-at-line-begin)
703         (self-alignment-X . 0)
704         (direction . 1)
705         (breakable . #t)
706         (font-size . 2)
707         (baseline-skip . 2)
708         (break-visibility . ,end-of-line-invisible)
709         (padding . 0.8)
710         (meta . ((interfaces . (text-interface
711                                 side-position-interface font-interface mark-interface
712                                 self-alignment-interface item-interface ))))
713         ))
714      (MetronomeMark
715      . (
716         (print-function . ,Text_interface::print)
717         (Y-offset-callbacks . (,Side_position_interface::aligned_side)) 
718         (direction . 1)
719         (padding . 0.8)
720         (meta . ((interfaces . (text-interface
721                                 side-position-interface font-interface
722                                 metronome-mark-interface item-interface))))
723         ))
724     (MeasureGrouping
725      . (
726         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
727         (print-function . ,Measure_grouping::print)
728         (padding . 2)
729         (direction . 1)
730         (thickness . 1)
731         (height . 2.0)
732         (staff-padding . 3)
733         (meta . ((interfaces . (spanner-interface side-position-interface
734                                                   measure-grouping-interface))))
735         ))
736     (MultiMeasureRest
737      . (
738         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
739         (print-function . ,Multi_measure_rest::print)
740         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
741         (staff-position . 0)
742         (expand-limit . 10)
743         (thick-thickness . 6.6)
744         (hair-thickness . 2.0)
745         (padding . 1)
746         (meta . ((interfaces . (multi-measure-rest-interface
747                                 multi-measure-interface rest-interface
748                                 font-interface staff-symbol-referencer-interface))))
749         ))
750
751     (MultiMeasureRestNumber
752      . (
753         (print-function . ,Text_interface::print)
754         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
755                                ,Self_alignment_interface::centered_on_other_axis_parent))
756         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
757         (self-alignment-X . 0)
758         (direction . 1)
759         (padding . 0.4)
760         (staff-padding . 0.4)
761         (font-encoding . fetaNumber)
762         (meta . ((interfaces . (side-position-interface
763                                 multi-measure-interface self-alignment-interface
764                                 font-interface spanner-interface text-interface))))
765         ))
766     (MultiMeasureRestText
767      . (
768         (print-function . ,Text_interface::print)
769         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
770                                ,Self_alignment_interface::centered_on_other_axis_parent))
771         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
772         (self-alignment-X . 0)
773         (direction . 1)
774         (padding . 0.2)
775         (staff-padding . 0.25)
776         (meta . ((interfaces . (side-position-interface
777                                 multi-measure-interface self-alignment-interface font-interface
778                                 spanner-interface text-interface))))
779         ))
780
781     (NoteCollision
782      . (
783         (axes . (0 1))
784         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
785         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
786         (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
787         ))
788
789     (NoteColumn
790      . (
791         (axes . (0 1))
792         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
793         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
794         (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
795         ))
796
797     (NoteHead
798      . (
799         (style . default)
800         (print-function . ,Note_head::print)
801         (ligature-primitive-callback . ,Note_head::print)
802         (glyph-name-procedure . ,find-notehead-symbol)
803         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
804         (stem-attachment-function . ,note-head-style->attachment-coordinates)
805         (meta . ((interfaces . (rhythmic-grob-interface
806                                 rhythmic-head-interface font-interface note-head-interface
807                                 ledgered-interface
808                                 staff-symbol-referencer-interface item-interface ))))
809         ))
810
811     (NoteSpacing
812      . (
813         (stem-spacing-correction . 0.5)
814         (same-direction-correction . 0.25)
815         ;; Changed this from 0.75.
816         ;; If you ever change this back, please document! --hwn
817         (knee-spacing-correction . 1.0)
818         
819         (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
820         ))
821
822     (VoiceFollower
823      . (
824         (style . line)
825         (gap . 0.5)
826         (breakable . #t)
827         (X-extent-callback . #f)
828         (Y-extent-callback . #f)                        
829         (print-function . ,Line_spanner::print)
830         (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
831         (meta . ((interfaces . (line-spanner-interface line-interface spanner-interface))))
832         ))
833
834     (NoteName
835      . (
836         (print-function . ,Text_interface::print)
837         (meta . ((interfaces . (note-name-interface
838                                 text-interface font-interface item-interface ))))
839         ))
840
841     (OctavateEight
842      . (
843         (self-alignment-X . 0)
844         (break-visibility . ,begin-of-line-visible)
845         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
846         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
847         (print-function . ,Text_interface::print)
848
849         ;; no Y dimensions, because of lyrics under tenor clef.
850         (Y-extent . (0 . 0))
851         (font-shape . italic)
852         (padding . 0.6)
853         (staff-padding . 0.2)
854         (font-size . -4)
855         (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
856         ))
857
858     (PaperColumn
859      . (
860         (axes . (0))
861         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
862         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
863
864 ;               (print-function . ,Paper_column::print) (font-name . "ecrm8") (Y-extent-callback . #f)
865         (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
866         ))
867
868     (PhrasingSlur
869      . ((slur-details . ,default-slur-details)
870         (print-function . ,Slur::print)
871         (thickness . 1.1)               
872         (spacing-procedure . ,Spanner::set_spacing_rods)                
873         (minimum-length . 1.5)
874         (after-line-breaking-callback . ,Slur::after_line_breaking)
875         (Y-extent-callback . ,Slur::height)
876         (height-limit . 2.0)
877         (ratio . 0.333)
878         (meta . ((interfaces . (slur-interface spanner-interface))))
879         ))
880
881     (NonMusicalPaperColumn
882      . (
883         (axes . (0))
884         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
885         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
886         (breakable . #t)
887         ;; debugging stuff: print column number.
888 ;       (print-function . ,Paper_column::print) (font-name . "ecrm8")   (Y-extent-callback . #f)
889
890
891         (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
892         ))
893
894     (PercentRepeat
895      . (
896         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
897         (print-function . ,Multi_measure_rest::percent)
898         (slope . 1.0)
899         (thickness . 0.48)
900         (font-encoding . fetaMusic)
901         (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
902         ))
903
904     ;; an example of a text spanner
905     (PianoPedalBracket
906      . (
907         (print-function . ,Piano_pedal_bracket::print)
908         (style . line)
909         (bound-padding . 1.0)
910         (direction . -1)
911         (bracket-flare . (0.5 . 0.5))
912         (edge-height . (1.0 . 1.0))
913         (shorten-pair . (0.0 . 0.0))
914         (thickness .  1.0)
915         (meta . ((interfaces . (line-interface
916                                 piano-pedal-interface piano-pedal-bracket-interface spanner-interface))))
917         ))
918
919
920     (RemoveEmptyVerticalGroup
921      . (
922         (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
923         (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
924         (axes . (1))
925         (meta . ((interfaces . (axis-group-interface
926                                 vertically-spaceable-interface hara-kiri-group-interface
927                                 item-interface spanner-interface))))
928         ))
929
930     (RepeatSlash
931      . (
932         (print-function . ,Percent_repeat_item_interface::beat_slash)
933         (thickness . 0.48)
934         (slope . 1.7)
935         (meta . ((interfaces . (percent-repeat-interface item-interface ))))
936         ))
937     (Rest
938      . (
939         (after-line-breaking-callback . ,Rest::after_line_breaking)
940         (X-extent-callback . ,Rest::extent_callback)
941         (Y-extent-callback . ,Rest::extent_callback)            
942         (print-function . ,Rest::print)
943         (Y-offset-callbacks . (,Staff_symbol_referencer::callback
944                                ,Rest::polyphonic_offset_callback
945                                ))
946         (minimum-distance . 0.25)
947         (meta . (
948                  (interfaces . (font-interface
949                                 rhythmic-head-interface
950                                 rhythmic-grob-interface
951                                 staff-symbol-referencer-interface
952                                 rest-interface item-interface ))
953                 ))))
954
955     (RestCollision
956      . (
957         (minimum-distance . 0.75)
958         (meta . ((interfaces . (rest-collision-interface item-interface ))))
959         ))
960
961     (Script
962      . (
963         ;; don't set direction here: it breaks staccato.
964         (print-function . ,Script_interface::print)
965
966         ;; This value is sensitive: if too large, staccato dots will move a
967         ;; space a away.
968         (padding . 0.20)
969         (staff-padding . 0.25)
970         ;; (script-priority . 0) priorities for scripts, see script.scm
971         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
972         (before-line-breaking-callback . ,Script_interface::before_line_breaking)
973         (font-encoding . fetaMusic)
974         (meta . ((interfaces . (script-interface
975                                 side-position-interface font-interface item-interface ))))
976         ))
977
978     (ScriptColumn
979      . (
980         (before-line-breaking-callback . ,Script_column::before_line_breaking)
981         (meta . ((interfaces . (script-column-interface item-interface ))))
982         ))
983
984     (Slur
985      . ((slur-details . ,default-slur-details)
986         (print-function . ,Slur::print)
987         (thickness . 1.0)               
988         (spacing-procedure . ,Spanner::set_spacing_rods)                
989         (minimum-length . 1.5)
990         (after-line-breaking-callback . ,Slur::after_line_breaking)
991         (Y-extent-callback . ,Slur::height)
992                                         ; Slur::height)
993         (height-limit . 2.0)
994         (ratio . 0.25)
995         (meta . ((interfaces . (slur-interface spanner-interface))))
996         ))
997
998     (SpacingSpanner
999      . (
1000         (spacing-procedure . ,Spacing_spanner::set_springs)
1001         (grace-space-factor . 0.6)
1002         (shortest-duration-space . 2.0)
1003         (spacing-increment . 1.2)
1004         (base-shortest-duration . ,(ly:make-moment 3 16))
1005         (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
1006         ))
1007
1008     (SpanBar
1009      . (
1010         (break-align-symbol . staff-bar)
1011         (bar-size-procedure . ,Span_bar::get_bar_size)
1012         (print-function . ,Span_bar::print)
1013         (X-extent-callback . ,Span_bar::width_callback)
1014         (Y-extent-callback . ())
1015         (layer . 0)
1016         (breakable . #t)
1017         (before-line-breaking-callback . ,Span_bar::before_line_breaking)
1018         ;; ugh duplication!
1019
1020         ;;
1021         ;; Ross. page 151 lists other values, we opt for a leaner look
1022         ;;
1023         (kern . 3.0)
1024         (thin-kern . 3.0)
1025         (hair-thickness . 1.6)
1026         (thick-thickness . 6.0)
1027         (meta . ((interfaces . (span-bar-interface font-interface
1028                                                    bar-line-interface item-interface ))))
1029         ))
1030
1031     (StanzaNumber
1032      . ((print-function . ,Text_interface::print)               
1033         (font-series . bold)
1034         (padding . 1.0)
1035         (X-offset-callbacks . (,Side_position_interface::aligned_side))
1036         (direction . ,LEFT)
1037         (meta . ((interfaces . (side-position-interface
1038                                 stanza-number-interface text-interface font-interface item-interface ))))               
1039         ))
1040
1041     (StaffSpacing
1042      . (
1043         (breakable . #t)
1044         (stem-spacing-correction . 0.4)
1045
1046         (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
1047         ))
1048
1049     (SostenutoPedal
1050      . (
1051         (print-function . ,Text_interface::print)
1052         (direction . 1)
1053         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1054         (no-spacing-rods . #t)
1055         (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1056         (font-shape . italic)
1057         (self-alignment-X . 0)
1058         (meta . ((interfaces . (text-interface
1059                                 self-alignment-interface font-interface item-interface))))
1060         ))
1061
1062     (SostenutoPedalLineSpanner
1063      . (
1064         (axes . (1))
1065         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1066         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1067         
1068
1069         (padding . 1.2)
1070         (minimum-space . 1.0)
1071         (direction . -1)
1072         (meta . ((interfaces . (piano-pedal-interface
1073                                 axis-group-interface side-position-interface spanner-interface))))
1074         ))
1075
1076     (StaffSymbol
1077      . (
1078         (print-function . ,Staff_symbol::print)
1079         (line-count . 5)
1080         (ledger-line-thickness . (1.0 . 0.1))
1081         (layer . 0)
1082         (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
1083         ))
1084         
1085     (Stem
1086      . (
1087         ;; this list is rather long. Trim --hwn
1088         (before-line-breaking-callback . ,Stem::before_line_breaking)
1089         (print-function . ,Stem::print)
1090         (thickness . 1.3)
1091
1092         ;; 3.5 (or 3 measured from note head) is standard length
1093         ;; 32nd, 64th flagged stems should be longer
1094         (lengths . (3.5 3.5 3.5 4.5 5.0))
1095         
1096         ;; Stems in unnatural (forced) direction should be shortened by
1097         ;; one staff space, according to [Roush & Gourlay].
1098         ;; Flagged stems we shorten only half a staff space.
1099         (stem-shorten . (1.0 0.5))
1100
1101         ;; default stem direction for note on middle line
1102         (neutral-direction . -1)
1103
1104
1105
1106         ;; FIXME.  3.5 yields too long beams (according to Ross and
1107         ;; looking at Baerenreiter examples) for a number of common
1108         ;; boundary cases.  Subtracting half a beam thickness fixes
1109         ;; this, but the bug may well be somewhere else.
1110
1111         ;; FIXME this should come from 'lengths
1112
1113         (beamed-lengths . (3.26 3.5 3.6))
1114         
1115         ;; We use the normal minima as minimum for the ideal lengths,
1116         ;; and the extreme minima as abolute minimum length.
1117         
1118         ;; The 'normal' minima
1119         (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1120         ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1121         
1122         ;; The 'extreme case' minima
1123         (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1124
1125         (X-offset-callbacks . (,Stem::offset_callback))
1126         (X-extent-callback . ,Stem::width_callback)     
1127         (Y-extent-callback . ,Stem::height)
1128         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1129         (meta . ((interfaces . (stem-interface font-interface item-interface ))))
1130         ))
1131
1132     (StemTremolo
1133      . (
1134         (print-function . ,Stem_tremolo::print)
1135         (Y-extent-callback . ,Stem_tremolo::height)
1136         (X-extent-callback . #f)
1137
1138         (beam-width . 1.6) ; staff-space
1139         (beam-thickness . 0.48) ; staff-space
1140         (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
1141         ))
1142
1143     (SeparationItem
1144      . (
1145         (X-extent-callback . #f)
1146         (Y-extent-callback . #f)
1147         (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
1148         ))
1149
1150     (SeparatingGroupSpanner
1151      . (
1152         (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
1153         (meta . ((interfaces . (only-prebreak-interface spacing-interface separation-spanner-interface spanner-interface))))
1154         ))
1155
1156     (SustainPedal
1157      . (
1158         (no-spacing-rods . #t)
1159         (print-function . ,Sustain_pedal::print)
1160         (self-alignment-X . 0)
1161         (direction . 1)
1162         (padding . 0.0)  ;; padding relative to SustainPedalLineSpanner
1163         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1164         (meta . ((interfaces . (piano-pedal-interface
1165                                 text-spanner-interface text-interface self-alignment-interface
1166                                 font-interface item-interface))))
1167         ))
1168
1169     (SustainPedalLineSpanner
1170      . (
1171         (axes . (1))
1172         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1173         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1174         
1175         (padding . 1.2)
1176         (staff-padding . 1.2)
1177         (minimum-space . 1.0)
1178         (direction . -1)
1179         (meta . ((interfaces . (piano-pedal-interface
1180                                 axis-group-interface side-position-interface spanner-interface))))
1181         ))
1182
1183     (System
1184      . (
1185         (axes . (0 1))
1186         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1187         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1188         (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1189         ))
1190
1191     (SystemStartBrace
1192      . (
1193         (glyph . "brace")
1194         (print-function . ,System_start_delimiter::print)
1195         (collapse-height . 5.0)
1196         (font-encoding . fetaBraces)
1197         (Y-extent-callback . #f)
1198         (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1199         ))
1200
1201     (SystemStartBracket
1202      . (
1203         (Y-extent-callback . #f)
1204         (print-function . ,System_start_delimiter::print)
1205         (glyph . "bracket")
1206         (arch-height . 1.5)
1207         (arch-angle . 50.0)
1208         (arch-thick . 0.25)
1209         (arch-width . 1.5)
1210         (collapse-height . 1)
1211         (thickness . 0.25)
1212         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1213         ))
1214
1215     (SystemStartBar
1216      . (
1217         (Y-extent-callback . #f)
1218         (print-function . ,System_start_delimiter::print)
1219         (glyph . "bar-line")
1220         (thickness . 1.6)
1221         (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1222         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1223         ))
1224
1225     (TextScript
1226      . (
1227         (print-function . ,Text_interface::print)
1228         (no-spacing-rods . #t)
1229         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1230         (direction . -1)
1231
1232         ; sync with Fingering ?
1233         (padding . 0.5)
1234         (staff-padding . 0.5)
1235         (script-priority . 200)
1236         ;; todo: add X self alignment?
1237         (meta . ((interfaces . (text-script-interface
1238                                 text-interface side-position-interface font-interface
1239                                 item-interface ))))
1240         ))
1241     (CombineTextScript
1242      . (
1243         (print-function . ,Text_interface::print)
1244         (no-spacing-rods . #t)
1245         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1246         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1247         (direction . 1)
1248         (padding . 0.5)
1249         (staff-padding . 0.5)
1250         (script-priority . 200)
1251         ;; todo: add X self alignment?
1252         (baseline-skip . 2)
1253         (font-series . bold)
1254         (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1255         ))
1256     (TextSpanner
1257      . (
1258         (print-function . ,Text_spanner::print)
1259         (font-shape . italic)
1260         (style . dashed-line)
1261         (staff-padding . 0.8)
1262         (dash-fraction . 0.2)
1263         (dash-period . 3.0)
1264         (direction . 1)
1265         (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))             
1266         ))
1267     (TrillSpanner
1268      . (
1269         (print-function . ,Dynamic_text_spanner::print)
1270         (edge-text . ,(cons (make-musicglyph-markup "scripts.trill")
1271                             ""))
1272         (style . trill)
1273         (staff-padding . 1.0)
1274         (padding . 0.5)
1275         (direction . 1)
1276         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1277         (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))             
1278         ))
1279
1280     (OttavaBracket
1281      . (
1282         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1283         (print-function . ,Ottava_bracket::print)
1284         (font-shape . italic)
1285         (shorten-pair . (0.0 . -0.6))
1286         (staff-padding . 1.0)
1287         (padding . 0.5)
1288         (minimum-length . 1.0)
1289         (dash-fraction . 0.3)
1290         (edge-height . (0 . 1.2))
1291         (direction . 1)
1292         (meta . ((interfaces . (ottava-bracket-interface
1293                                 line-interface side-position-interface
1294                                 font-interface text-interface spanner-interface))))             
1295         ))
1296
1297     (TabNoteHead
1298      . (
1299         (style . default)
1300         (print-function . ,Text_interface::print)
1301         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1302         (stem-attachment-function . ,tablature-stem-attachment-function)
1303         (font-series . bold)
1304         (meta . ((interfaces
1305                   . (rhythmic-head-interface
1306                      font-interface
1307                      note-head-interface staff-symbol-referencer-interface
1308                      text-interface item-interface ))))
1309         ))
1310
1311
1312     (Tie
1313      . (
1314         (print-function . ,Tie::print)
1315         (spacing-procedure . ,Spanner::set_spacing_rods)
1316         (staffline-clearance . 0.35)
1317         (details . ((ratio . 0.333) (height-limit . 1.0)))
1318         (thickness . 1.0)
1319         (x-gap . -0.1)
1320         (y-offset . 0.6)
1321         (minimum-length . 2.5)
1322         (meta . ((interfaces . (tie-interface spanner-interface))))
1323         ))
1324
1325     (TieColumn
1326      . (
1327         (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1328         (before-line-breaking-callback . ,Tie_column::before_line_breaking)
1329         (X-extent-callback . #f)
1330         (Y-extent-callback . #f)        
1331         (meta . ((interfaces . (tie-column-interface spanner-interface))))
1332         ))
1333
1334     (TimeSignature
1335      . (
1336         (print-function . ,Time_signature::print)
1337 ;       (print-function . ,Text_interface::print)       
1338         (break-align-symbol . time-signature)
1339         (break-visibility . ,all-visible)
1340         (space-alist . (
1341                         (first-note . (fixed-space . 2.0))
1342                         (right-edge . (extra-space . 0.5))
1343                         (staff-bar . (minimum-space . 2.0))
1344                         ))
1345         (breakable . #t)
1346         (style . C)
1347 ;       (text . (,time-signature-glue-markup))
1348         (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1349         ))
1350
1351     (TupletBracket
1352      . (
1353         (padding . 1.1)
1354         (thickness . 1.6)
1355         (edge-height . (0.7 . 0.7))
1356         (shorten-pair . (-0.2 . -0.2))
1357         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1358         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1359         (print-function . ,Tuplet_bracket::print)
1360         (font-shape . italic)
1361 ;       (font-series . bold)
1362
1363         (font-size . -2)
1364         (meta . ((interfaces . (text-interface line-interface tuplet-bracket-interface font-interface spanner-interface))))
1365         ))
1366
1367     (UnaCordaPedal
1368      . (
1369         (print-function . ,Text_interface::print)
1370         (font-shape . italic)
1371         (no-spacing-rods . #t)
1372         (self-alignment-X . 0)
1373         (direction . 1)
1374         (padding . 0.0)  ;; padding relative to UnaCordaPedalLineSpanner
1375         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1376         (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1377         ))
1378
1379     (UnaCordaPedalLineSpanner
1380      . (
1381         (axes . (1))
1382         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1383         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1384         (padding . 1.2)
1385         (staff-padding . 1.2)
1386         (minimum-space . 1.0)
1387         (direction . -1)
1388         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1389         ))
1390
1391     (VaticanaLigature
1392      . (
1393         (thickness . 0.6)
1394         (flexa-width . 2.0)
1395         (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1396         (print-function . ,Vaticana_ligature::print)
1397         (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1398         ))
1399
1400     (VoltaBracket
1401      . (
1402         (print-function . ,Volta_bracket_interface::print)
1403         (direction . 1)
1404         (padding . 1)
1405         (font-encoding . fetaNumber)
1406         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1407         (thickness . 1.6)  ;;  linethickness
1408         (height . 2.0) ;; staffspace;
1409         (minimum-space . 5)
1410         (font-size . -4)
1411         (meta . ((interfaces . (volta-bracket-interface
1412                                 line-interface text-interface
1413                                 side-position-interface font-interface spanner-interface))))
1414         ))
1415
1416     (VerticalAlignment
1417      . (
1418         (axes . (1))
1419         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1420         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1421         (stacking-dir . -1)
1422         (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1423         ))
1424
1425     (VerticalAxisGroup
1426      . (
1427         (axes . (1))
1428         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1429         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1430         
1431         (meta . ((interfaces . (axis-group-interface
1432                                 vertically-spaceable-interface spanner-interface))))
1433         ))
1434    ))
1435
1436 (define (completize-grob-entry x)
1437   "transplant assoc key into 'name entry of 'meta of X
1438 "
1439   (let* ((name-sym  (car x))
1440          (grob-entry (cdr x))
1441          (metaentry (cdr (assoc 'meta grob-entry)))
1442          (ifaces-entry
1443           (cdr (assoc 'interfaces metaentry)))
1444
1445         )
1446     (set! metaentry (assoc-set! metaentry 'name name-sym))
1447     (set! metaentry (assoc-set! metaentry 'interfaces
1448                                 (cons 'grob-interface ifaces-entry)))
1449     (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1450     (cons name-sym grob-entry)))
1451
1452 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1453
1454
1455 ;;  (display (map pair? all-grob-descriptions))
1456
1457 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1458
1459 (map (lambda (x)
1460        ;; (display (car x)) (newline)
1461
1462        (set-object-property! (car x) 'translation-type? list?)
1463        (set-object-property! (car x) 'is-grob? #t))
1464      all-grob-descriptions)
1465
1466 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))