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