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