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