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