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