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