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