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