]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grobs.scm
2df163e93fd7373b8803fd4d94bade53ede860ec
[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         (layer . 0)
512         (meta . ((interfaces . (grid-line-interface)))
513         )))
514         
515     (Hairpin
516      . (
517         (print-function . ,Hairpin::print)
518         (after-line-breaking-callback . ,Hairpin::after_line_breaking)
519         (thickness . 1.0)
520         (height . 0.6666)
521         (spacing-procedure . ,Spanner::set_spacing_rods)
522         (minimum-length . 2.0)
523         (bound-padding . 1.0)
524         (self-alignment-Y . 0)
525         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
526         (meta . ((interfaces . (hairpin-interface
527                                 line-interface self-alignment-interface dynamic-interface
528                                 spanner-interface))))
529         ))
530
531     (HorizontalBracket
532      . (
533         (thickness . 1.0)
534         (print-function . ,Horizontal_bracket::print)
535         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
536         (padding . 0.2)
537         (direction . -1)
538         (bracket-flare . (0.5 . 0.5))
539         (meta . ((interfaces . (horizontal-bracket-interface
540                                 side-position-interface
541                                 line-interface
542                                 spanner-interface))))
543         ))
544     (InstrumentName
545      . (
546         (breakable . #t)
547         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
548                                ,Side_position_interface::aligned_on_support_refpoints))
549         ;; This direction is for aligned_on_support_refpoints
550         ;; (?) --hwn
551         (direction . 0)
552         (space-alist . (
553                         (left-edge . (extra-space . 1.0))
554                         ))
555
556         (self-alignment-Y . 0)
557         (print-function . ,Text_interface::print)               
558         (break-align-symbol . instrument-name)
559         (break-visibility . ,begin-of-line-visible)
560         (baseline-skip . 2)
561         (meta . ((interfaces . (font-interface
562                                 self-alignment-interface side-position-interface text-interface
563                                 break-aligned-interface item-interface ))))
564         ))
565
566     (VocalName
567      . (
568         (breakable . #t)
569         (Y-offset-callbacks . (,Side_position_interface::aligned_on_support_refpoints))
570         (direction . 0)
571         (space-alist . ((left-edge . (extra-space . 1.0))
572                         ))
573         (break-align-symbol . instrument-name)
574         (print-function . ,Text_interface::print)               
575         (break-align-symbol . clef)
576         (break-visibility . ,begin-of-line-visible)
577         (baseline-skip . 2)
578         (meta . ((interfaces . (font-interface
579                                 self-alignment-interface
580                                 side-position-interface text-interface
581                                 break-aligned-interface item-interface ))))
582         ))
583     (KeyCancellation
584      . (
585         (print-function . ,Key_signature_interface::print)
586         (space-alist . (
587                         (time-signature . (extra-space . 1.25))
588                         (staff-bar . (extra-space . 0.6))
589                         (key-signature . (extra-space . 0.5))
590                         (right-edge . (extra-space . 0.5))
591                         (first-note . (fixed-space . 2.5))
592                         ))
593         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
594         (break-align-symbol . key-cancellation)
595         (break-visibility . ,begin-of-line-invisible)
596         (breakable . #t)
597         
598         (meta . ((interfaces . (key-signature-interface font-interface
599                                                         break-aligned-interface item-interface ))))
600         ))
601     (KeySignature
602      . (
603         (print-function . ,Key_signature_interface::print)
604         (space-alist . (
605                         (time-signature . (extra-space . 1.25))
606                         (staff-bar . (extra-space . 1.1))
607                         (right-edge . (extra-space . 0.5))
608                         (first-note . (fixed-space . 2.5))
609                         ))
610         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
611         (break-align-symbol . key-signature)
612         (break-visibility . ,begin-of-line-visible)
613         (breakable . #t)
614         
615         (meta . ((interfaces . (key-signature-interface font-interface
616                                                         break-aligned-interface item-interface ))))
617         ))
618     (LedgerLineSpanner
619      . (
620         (print-function . ,Ledger_line_spanner::print)
621         (X-extent-callback . #f)
622         (Y-extent-callback . #f)
623         (minimum-length-fraction . 0.25)
624         (length-fraction . 0.25)
625         (spacing-procedure . ,Ledger_line_spanner::set_spacing_rods)
626         (print-function . ,Ledger_line_spanner::print)
627         (layer . 0)
628         (meta . ((interfaces . (spanner-interface ledger-line-interface))))
629         ))
630
631     (LigatureBracket
632      . (
633         (ligature-primitive-callback . ,Note_head::print)
634         (direction . 1)
635         (gap . 0.0)
636         (padding . 2.0)
637         (thickness . 1.6)
638         (edge-height . (0.7 . 0.7))
639         (shorten-pair . (-0.2 . -0.2))
640         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
641         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
642         (print-function . ,Tuplet_bracket::print)
643         (meta . ((interfaces . (tuplet-bracket-interface line-interface spanner-interface))))
644         ))
645
646     (LyricHyphen
647      . (
648         (thickness . 1.3)
649         (height . 0.42)
650         (dash-period . 10.0)
651         (length . 0.66)
652         (minimum-length . 0.3)
653         (padding . 0.07)
654 ;       (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
655         (print-function . ,Hyphen_spanner::print)
656         (Y-extent . (0 . 0))
657         (meta . ((interfaces . (lyric-interface lyric-hyphen-interface
658                                                 spanner-interface))))
659         ))
660
661     (LyricExtender
662      . (
663         (print-function . ,Lyric_extender::print)
664         (thickness . 0.8) ; linethickness
665         (minimum-length . 1.5)
666         (Y-extent . (0 . 0))
667         (meta . ((interfaces . (lyric-interface
668                                 lyric-extender-interface spanner-interface))))
669         ))
670
671     (LyricText
672      . ((print-function . ,Text_interface::print)
673         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
674         (self-alignment-X . 0)
675         (word-space . 0.6)
676         (font-series . bold-narrow)
677         (font-size . 1.0)
678         (meta . ((interfaces . (rhythmic-grob-interface
679                                 lyric-syllable-interface
680                                 self-alignment-interface text-interface
681                                 font-interface item-interface ))))
682         ))
683
684     (MensuralLigature
685      . (
686         (thickness . 1.4)
687         (flexa-width . 2.0)
688         (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
689         (print-function . ,Mensural_ligature::print)
690         (meta . ((interfaces . (mensural-ligature-interface font-interface))))
691         ))
692
693     (RehearsalMark
694      . (
695         (print-function . ,Text_interface::print)
696         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
697         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
698         (after-line-breaking-callback . ,shift-right-at-line-begin)
699         (self-alignment-X . 0)
700         (direction . 1)
701         (breakable . #t)
702         (font-size . 2)
703         (baseline-skip . 2)
704         (break-visibility . ,end-of-line-invisible)
705         (padding . 0.8)
706         (meta . ((interfaces . (text-interface
707                                 side-position-interface font-interface mark-interface
708                                 self-alignment-interface item-interface ))))
709         ))
710      (MetronomeMark
711      . (
712         (print-function . ,Text_interface::print)
713         (Y-offset-callbacks . (,Side_position_interface::aligned_side)) 
714         (direction . 1)
715         (padding . 0.8)
716         (meta . ((interfaces . (text-interface
717                                 side-position-interface font-interface
718                                 metronome-mark-interface item-interface))))
719         ))
720     (MeasureGrouping
721      . (
722         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
723         (print-function . ,Measure_grouping::print)
724         (padding . 2)
725         (direction . 1)
726         (thickness . 1)
727         (height . 2.0)
728         (staff-padding . 3)
729         (meta . ((interfaces . (spanner-interface side-position-interface
730                                                   measure-grouping-interface))))
731         ))
732     (MultiMeasureRest
733      . (
734         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
735         (print-function . ,Multi_measure_rest::print)
736         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
737         (staff-position . 0)
738         (expand-limit . 10)
739         (thick-thickness . 6.6)
740         (hair-thickness . 2.0)
741         (padding . 1)
742         (meta . ((interfaces . (multi-measure-rest-interface
743                                 multi-measure-interface rest-interface
744                                 font-interface staff-symbol-referencer-interface))))
745         ))
746
747     (MultiMeasureRestNumber
748      . (
749         (print-function . ,Text_interface::print)
750         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
751                                ,Self_alignment_interface::centered_on_other_axis_parent))
752         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
753         (self-alignment-X . 0)
754         (direction . 1)
755         (padding . 0.4)
756         (staff-padding . 0.4)
757         (font-encoding . fetaNumber)
758         (meta . ((interfaces . (side-position-interface
759                                 multi-measure-interface self-alignment-interface
760                                 font-interface spanner-interface text-interface))))
761         ))
762     (MultiMeasureRestText
763      . (
764         (print-function . ,Text_interface::print)
765         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
766                                ,Self_alignment_interface::centered_on_other_axis_parent))
767         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
768         (self-alignment-X . 0)
769         (direction . 1)
770         (padding . 0.2)
771         (staff-padding . 0.25)
772         (meta . ((interfaces . (side-position-interface
773                                 multi-measure-interface self-alignment-interface font-interface
774                                 spanner-interface text-interface))))
775         ))
776
777     (NoteCollision
778      . (
779         (axes . (0 1))
780         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
781         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
782         (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
783         ))
784
785     (NoteColumn
786      . (
787         (axes . (0 1))
788         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
789         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
790         (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
791         ))
792
793     (NoteHead
794      . (
795         (style . default)
796         (print-function . ,Note_head::print)
797         (ligature-primitive-callback . ,Note_head::print)
798         (glyph-name-procedure . ,find-notehead-symbol)
799         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
800         (stem-attachment-function . ,note-head-style->attachment-coordinates)
801         (meta . ((interfaces . (rhythmic-grob-interface
802                                 rhythmic-head-interface font-interface note-head-interface
803                                 ledgered-interface
804                                 staff-symbol-referencer-interface item-interface ))))
805         ))
806
807     (NoteSpacing
808      . (
809         (stem-spacing-correction . 0.5)
810         (same-direction-correction . 0.25)
811         ;; Changed this from 0.75.
812         ;; If you ever change this back, please document! --hwn
813         (knee-spacing-correction . 1.0)
814         
815         (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
816         ))
817
818     (VoiceFollower
819      . (
820         (style . line)
821         (gap . 0.5)
822         (breakable . #t)
823         (X-extent-callback . #f)
824         (Y-extent-callback . #f)                        
825         (print-function . ,Line_spanner::print)
826         (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
827         (meta . ((interfaces . (line-spanner-interface line-interface spanner-interface))))
828         ))
829
830     (NoteName
831      . (
832         (print-function . ,Text_interface::print)
833         (meta . ((interfaces . (note-name-interface
834                                 text-interface font-interface item-interface ))))
835         ))
836
837     (OctavateEight
838      . (
839         (self-alignment-X . 0)
840         (break-visibility . ,begin-of-line-visible)
841         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
842         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
843         (print-function . ,Text_interface::print)
844
845         ;; no Y dimensions, because of lyrics under tenor clef.
846         (Y-extent . (0 . 0))
847         (font-shape . italic)
848         (padding . 0.6)
849         (staff-padding . 0.2)
850         (font-size . -4)
851         (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
852         ))
853
854     (PaperColumn
855      . (
856         (axes . (0))
857         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
858         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
859
860 ;               (print-function . ,Paper_column::print) (font-name . "ecrm8") (Y-extent-callback . #f)
861         (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
862         ))
863
864     (PhrasingSlur
865      . ((slur-details . ,default-slur-details)
866         (print-function . ,Slur::print)
867         (thickness . 1.1)               
868         (spacing-procedure . ,Spanner::set_spacing_rods)                
869         (minimum-length . 1.5)
870         (after-line-breaking-callback . ,Slur::after_line_breaking)
871         (Y-extent-callback . ,Slur::height)
872         (height-limit . 2.0)
873         (ratio . 0.333)
874         (meta . ((interfaces . (slur-interface spanner-interface))))
875         ))
876
877     (NonMusicalPaperColumn
878      . (
879         (axes . (0))
880         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
881         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
882         (breakable . #t)
883         ;; debugging stuff: print column number.
884 ;       (print-function . ,Paper_column::print) (font-name . "ecrm8")   (Y-extent-callback . #f)
885
886
887         (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
888         ))
889
890     (PercentRepeat
891      . (
892         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
893         (print-function . ,Multi_measure_rest::percent)
894         (slope . 1.0)
895         (thickness . 0.48)
896         (font-encoding . fetaMusic)
897         (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
898         ))
899
900     ;; an example of a text spanner
901     (PianoPedalBracket
902      . (
903         (print-function . ,Piano_pedal_bracket::print)
904         (style . line)
905         (bound-padding . 1.0)
906         (direction . -1)
907         (bracket-flare . (0.5 . 0.5))
908         (edge-height . (1.0 . 1.0))
909         (shorten-pair . (0.0 . 0.0))
910         (thickness .  1.0)
911         (meta . ((interfaces . (line-interface
912                                 piano-pedal-interface piano-pedal-bracket-interface spanner-interface))))
913         ))
914
915
916     (RemoveEmptyVerticalGroup
917      . (
918         (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
919         (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
920         (remove-first . #t)
921         (axes . (1))
922         (meta . ((interfaces . (axis-group-interface
923                                 vertically-spaceable-interface hara-kiri-group-interface
924                                 item-interface spanner-interface))))
925         ))
926
927     (RepeatSlash
928      . (
929         (print-function . ,Percent_repeat_item_interface::beat_slash)
930         (thickness . 0.48)
931         (slope . 1.7)
932         (meta . ((interfaces . (percent-repeat-interface item-interface ))))
933         ))
934     (Rest
935      . (
936         (after-line-breaking-callback . ,Rest::after_line_breaking)
937         (X-extent-callback . ,Rest::extent_callback)
938         (Y-extent-callback . ,Rest::extent_callback)            
939         (print-function . ,Rest::print)
940         (Y-offset-callbacks . (,Staff_symbol_referencer::callback
941                                ,Rest::polyphonic_offset_callback
942                                ))
943         (minimum-distance . 0.25)
944         (meta . (
945                  (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         (print-function . ,System_start_delimiter::print)
1202         (glyph . "bracket")
1203         (arch-height . 1.5)
1204         (arch-angle . 50.0)
1205         (arch-thick . 0.25)
1206         (arch-width . 1.5)
1207         (collapse-height . 1)
1208         (thickness . 0.25)
1209         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1210         ))
1211
1212     (SystemStartBar
1213      . (
1214         (Y-extent-callback . #f)
1215         (print-function . ,System_start_delimiter::print)
1216         (glyph . "bar-line")
1217         (thickness . 1.6)
1218         (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1219         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1220         ))
1221
1222     (TextScript
1223      . (
1224         (print-function . ,Text_interface::print)
1225         (no-spacing-rods . #t)
1226         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1227         (direction . -1)
1228
1229         ; sync with Fingering ?
1230         (padding . 0.5)
1231         (staff-padding . 0.5)
1232         (script-priority . 200)
1233         ;; todo: add X self alignment?
1234         (meta . ((interfaces . (text-script-interface
1235                                 text-interface side-position-interface font-interface
1236                                 item-interface ))))
1237         ))
1238     (CombineTextScript
1239      . (
1240         (print-function . ,Text_interface::print)
1241         (no-spacing-rods . #t)
1242         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1243         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1244         (direction . 1)
1245         (padding . 0.5)
1246         (staff-padding . 0.5)
1247         (script-priority . 200)
1248         ;; todo: add X self alignment?
1249         (baseline-skip . 2)
1250         (font-series . bold)
1251         (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1252         ))
1253     (TextSpanner
1254      . (
1255         (print-function . ,Text_spanner::print)
1256         (font-shape . italic)
1257         (style . dashed-line)
1258         (staff-padding . 0.1)
1259         (dash-fraction . 0.2)
1260         (dash-period . 3.0)
1261         (direction . 1)
1262         (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))             
1263         ))
1264     (TrillSpanner
1265      . (
1266         (print-function . ,Dynamic_text_spanner::print)
1267         (edge-text . ,(cons (make-musicglyph-markup "scripts.trill")
1268                             ""))
1269         (style . trill)
1270         (staff-padding . 1.0)
1271         (padding . 0.5)
1272         (direction . 1)
1273         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1274         (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))             
1275         ))
1276
1277     (OttavaBracket
1278      . (
1279         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1280         (print-function . ,Ottava_bracket::print)
1281         (font-shape . italic)
1282         (shorten-pair . (0.0 . -0.6))
1283         (staff-padding . 1.0)
1284         (padding . 0.5)
1285         (minimum-length . 1.0)
1286         (dash-fraction . 0.3)
1287         (edge-height . (0 . 1.2))
1288         (direction . 1)
1289         (meta . ((interfaces . (ottava-bracket-interface
1290                                 line-interface side-position-interface
1291                                 font-interface text-interface spanner-interface))))             
1292         ))
1293
1294     (TabNoteHead
1295      . (
1296         (style . default)
1297         (print-function . ,Text_interface::print)
1298         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1299         (stem-attachment-function . ,tablature-stem-attachment-function)
1300         (font-series . bold)
1301         (meta . ((interfaces
1302                   . (rhythmic-head-interface
1303                      font-interface
1304                      note-head-interface staff-symbol-referencer-interface
1305                      text-interface item-interface ))))
1306         ))
1307
1308
1309     (Tie
1310      . (
1311         (print-function . ,Tie::print)
1312         (spacing-procedure . ,Spanner::set_spacing_rods)
1313         (staffline-clearance . 0.35)
1314         (details . ((ratio . 0.333) (height-limit . 1.0)))
1315         (thickness . 1.0)
1316         (x-gap . -0.1)
1317         (y-offset . 0.6)
1318         (minimum-length . 2.5)
1319         (meta . ((interfaces . (tie-interface spanner-interface))))
1320         ))
1321
1322     (TieColumn
1323      . (
1324         (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1325         (before-line-breaking-callback . ,Tie_column::before_line_breaking)
1326         (X-extent-callback . #f)
1327         (Y-extent-callback . #f)        
1328         (meta . ((interfaces . (tie-column-interface spanner-interface))))
1329         ))
1330
1331     (TimeSignature
1332      . (
1333         (print-function . ,Time_signature::print)
1334 ;       (print-function . ,Text_interface::print)       
1335         (break-align-symbol . time-signature)
1336         (break-visibility . ,all-visible)
1337         (space-alist . (
1338                         (first-note . (fixed-space . 2.0))
1339                         (right-edge . (extra-space . 0.5))
1340                         (staff-bar . (minimum-space . 2.0))
1341                         ))
1342         (breakable . #t)
1343         (style . C)
1344 ;       (text . (,time-signature-glue-markup))
1345         (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1346         ))
1347
1348     (TupletBracket
1349      . (
1350         (padding . 1.1)
1351         (thickness . 1.6)
1352         (edge-height . (0.7 . 0.7))
1353         (shorten-pair . (-0.2 . -0.2))
1354         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1355         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1356         (print-function . ,Tuplet_bracket::print)
1357         (font-shape . italic)
1358 ;       (font-series . bold)
1359
1360         (font-size . -2)
1361         (meta . ((interfaces . (text-interface line-interface tuplet-bracket-interface font-interface spanner-interface))))
1362         ))
1363
1364     (UnaCordaPedal
1365      . (
1366         (print-function . ,Text_interface::print)
1367         (font-shape . italic)
1368         (no-spacing-rods . #t)
1369         (self-alignment-X . 0)
1370         (direction . 1)
1371         (padding . 0.0)  ;; padding relative to UnaCordaPedalLineSpanner
1372         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1373         (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1374         ))
1375
1376     (UnaCordaPedalLineSpanner
1377      . (
1378         (axes . (1))
1379         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1380         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1381         (padding . 1.2)
1382         (staff-padding . 1.2)
1383         (minimum-space . 1.0)
1384         (direction . -1)
1385         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1386         ))
1387
1388     (VaticanaLigature
1389      . (
1390         (thickness . 0.6)
1391         (flexa-width . 2.0)
1392         (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1393         (print-function . ,Vaticana_ligature::print)
1394         (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1395         ))
1396
1397     (VoltaBracket
1398      . (
1399         (print-function . ,Volta_bracket_interface::print)
1400         (direction . 1)
1401         (padding . 1)
1402         (font-encoding . fetaNumber)
1403         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1404         (thickness . 1.6)  ;;  linethickness
1405         (height . 2.0) ;; staffspace;
1406         (minimum-space . 5)
1407         (font-size . -4)
1408         (meta . ((interfaces . (volta-bracket-interface
1409                                 line-interface text-interface
1410                                 side-position-interface font-interface spanner-interface))))
1411         ))
1412
1413     (VerticalAlignment
1414      . (
1415         (axes . (1))
1416         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1417         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1418         (stacking-dir . -1)
1419         (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1420         ))
1421
1422     (VerticalAxisGroup
1423      . (
1424         (axes . (1))
1425         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1426         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1427         
1428         (meta . ((interfaces . (axis-group-interface
1429                                 vertically-spaceable-interface spanner-interface))))
1430         ))
1431    ))
1432
1433 (define (completize-grob-entry x)
1434   "transplant assoc key into 'name entry of 'meta of X
1435 "
1436   (let* ((name-sym  (car x))
1437          (grob-entry (cdr x))
1438          (metaentry (cdr (assoc 'meta grob-entry)))
1439          (ifaces-entry
1440           (cdr (assoc 'interfaces metaentry)))
1441
1442         )
1443     (set! metaentry (assoc-set! metaentry 'name name-sym))
1444     (set! metaentry (assoc-set! metaentry 'interfaces
1445                                 (cons 'grob-interface ifaces-entry)))
1446     (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1447     (cons name-sym grob-entry)))
1448
1449 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1450
1451
1452 ;;  (display (map pair? all-grob-descriptions))
1453
1454 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1455
1456 (map (lambda (x)
1457        ;; (display (car x)) (newline)
1458
1459        (set-object-property! (car x) 'translation-type? list?)
1460        (set-object-property! (car x) 'is-grob? #t))
1461      all-grob-descriptions)
1462
1463 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))