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