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