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