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