]> git.donarmstrong.com Git - lilypond.git/blob - scm/grob-description.scm
''
[lilypond.git] / scm / grob-description.scm
1 ;;;; grob-description.scm -- part of generated backend documentation
2 ;;;;
3 ;;;;  source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c) 1998--20.301  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
13 ;; TODO: junk the meta field in favor of something more compact?
14 (define all-grob-descriptions
15   `(
16     (Accidentals
17      . (
18         (molecule-callback . ,Local_key_item::brew_molecule)
19         (X-offset-callbacks . (,Side_position_interface::aligned_side))
20         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))     
21         (after-line-breaking-callback . ,Local_key_item::after_line_breaking)
22         (direction . -1)
23         (left-padding . 0.2)
24         (right-padding . 0.5)
25         (paren-cautionaries . #t)
26         (font-family . music)
27         (meta . ((interfaces . (accidentals-interface staff-symbol-referencer-interface font-interface side-position-interface))))
28         ))
29     (Accidental
30      . (
31         (molecule-callback . ,Accidental_interface::brew_molecule)
32         (font-family . music)
33         (cautionary-style . smaller)
34         (after-line-breaking-callback . ,Accidental_interface::after_line_breaking)             (meta . ((interfaces . (accidental-interface font-interface))))
35         ))
36     (AccidentalPlacement
37      . (
38         (X-extent-callback . ,Accidental_placement::extent_callback)
39         (left-padding . 0.3)
40         (right-padding . 0.3)
41         (meta . ((interfaces . (accidental-placement-interface))))
42         ))
43
44     (Arpeggio
45      . (
46         (X-extent-callback . ,Arpeggio::width_callback)
47         (Y-extent-callback . #f)               
48         (molecule-callback . ,Arpeggio::brew_molecule)
49         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
50         (X-offset-callbacks . (,Side_position_interface::aligned_side))
51         (direction . -1)
52         (staff-position . 0.0)
53         (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface font-interface))))
54         ))
55
56     (BarLine
57      . (
58         (break-align-symbol . staff-bar)
59         (glyph . "|")
60         (break-glyph-function . ,default-break-barline)
61         (bar-size-procedure . ,Bar_line::get_staff_bar_size)
62         (molecule-callback . ,Bar_line::brew_molecule)     
63         (visibility-lambda . ,all-visible)
64         (breakable . #t)
65         (before-line-breaking-callback . ,Bar_line::before_line_breaking)
66         (space-alist . (
67                         (time-signature . (extra-space . 0.75)) 
68                         (custos . (minimum-space . 2.0))
69                         (clef .   (minimum-space . 1.0))
70                         (first-note . (extra-space . 1.3))
71                         ))
72
73         ;;
74         ;; Ross. page 151 lists other values, we opt for a leaner look
75         ;; 
76         (kern . 3.0)
77         (thin-kern . 3.0)
78         (hair-thickness . 1.6)
79         (thick-thickness . 6.0)
80         (meta . ((interfaces . (bar-line-interface  break-aligned-interface font-interface))))
81         ))
82
83     
84     (BarNumber
85      . (
86         (molecule-callback . ,Text_item::brew_molecule)
87         (breakable . #t)
88         (visibility-lambda . ,begin-of-line-visible)
89         (padding . 1.0)
90         (direction . 1)
91         (font-family . roman)
92         (font-relative-size . -1)
93         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
94         (meta .
95               ((interfaces . (side-position-interface
96                               text-interface
97                               font-interface break-aligned-interface))))
98
99              ))
100
101     (BassFigure
102      . (
103         (molecule-callback . ,brew-bass-figure)
104         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
105         (direction . 0)
106         (font-family . number)
107         (font-relative-size . -1)
108         (padding . 0.1)
109         (kern . 0.2)
110         (thickness . 1.0)
111         (meta . ((interfaces . (text-interface bass-figure-interface self-alignment-interface font-interface))))
112         ))
113     (Beam
114      . (
115         ;; todo: clean this up a bit: the list is getting
116         ;; rather long.
117         (molecule-callback . ,Beam::brew_molecule)
118         (concaveness-gap . 2.0)
119         (concaveness-threshold . 0.08)
120         (positions . (#f . #f))
121         (position-callbacks . (,Beam::least_squares
122                                ,Beam::check_concave
123                                ,Beam::slope_damping
124                                ,Beam::quanting
125                               ))
126
127         ;; TODO: should be in SLT.
128         (thickness . 0.48) ; in staff-space
129         (before-line-breaking-callback . ,Beam::before_line_breaking)
130         (after-line-breaking-callback . ,Beam::after_line_breaking)
131         (neutral-direction . -1)
132         (dir-function . ,beam-dir-majority-median)
133         (beamed-stem-shorten . (1.0 0.5))
134         (outer-stem-length-limit . 0.2)
135         (slope-limit . 0.2)
136         (flag-width-function . ,default-beam-flag-width-function)
137         (damping . 1)
138         (auto-knee-gap . 7)
139         (font-name . "cmr10")
140         (space-function . ,Beam::space_function)
141         (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface))))
142         ))
143
144     (BreakAlignment
145      . (
146         (breakable . #t)
147         (stacking-dir . 1)
148         (axes . (0))
149         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
150         (meta . ((interfaces . (break-alignment-interface axis-group-interface)))))
151         )
152
153     (BreakAlignGroup
154      . (
155         (axes  . (0))
156         (X-offset-callbacks . (,Break_align_interface::alignment_callback))
157         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
158         (meta . ((interfaces . (break-aligned-interface axis-group-interface))))
159         ))
160
161     (BreathingSign
162      . (
163         (break-align-symbol . breathing-sign)
164         (breakable . #t)
165         (space-alist . (
166                         (key-signature . (minimum-space . 1.5))
167                         (staff-bar . (minimum-space . 1.5))
168                         (clef . (minimum-space . 2.0))
169                         (first-note . (minimum-space . 1.0))
170                         ))
171         (molecule-callback . ,Text_item::brew_molecule)
172         (lookup . name)
173         (font-family . music)
174         (text . "scripts-rcomma")
175         (Y-offset-callbacks . (,Breathing_sign::offset_callback))
176         (visibility-lambda . ,begin-of-line-invisible)
177         (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface))))
178         ))
179
180     (Clef
181      . (
182         (molecule-callback . ,Clef::brew_molecule)
183         (before-line-breaking-callback . ,Clef::before_line_breaking)
184         (breakable . #t)
185         (font-family . music)      
186         (break-align-symbol . clef)
187         (visibility-lambda . ,begin-of-line-visible)
188         (space-alist . (
189                         (staff-bar . (minimum-space .  3.7))
190                         (key-signature . (minimum-space . 4.0))
191                         (time-signature . (minimum-space . 4.2))
192                         (first-note . (minimum-space . 5.0))
193                         (next-note . (extra-space . 0.5))                       
194                         ))
195         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback)) 
196         (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface))))
197         ))
198
199     (ChordName
200      . (
201         (molecule-callback . ,Chord_name::brew_molecule)
202         (after-line-breaking-callback . ,Chord_name::after_line_breaking)
203         (chord-name-function . ,default-chord-name-function)
204         (font-family . roman)
205         (meta . ((interfaces . (font-interface text-interface chord-name-interface))))
206         ))
207
208     (Custos
209      . (
210         (break-align-symbol . custos)
211         (breakable . #t)
212         (molecule-callback . ,Custos::brew_molecule)
213         (visibility-lambda . ,end-of-line-visible)
214         (style . vaticana)
215         (neutral-position . 0)
216         (neutral-direction . -1)
217         (adjust-if-on-staffline . #t)
218         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
219         (font-family . music)
220         (space-alist . (
221                         (first-note . (minimum-space . 0.0))
222                         ))
223         (meta . ((interfaces . (custos-interface staff-symbol-referencer-interface break-aligned-interface))))
224         ))
225
226
227     (DotColumn
228      . (
229         (axes . (0))
230         (direction . 1)
231         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
232         (X-offset-callbacks . (,Dot_column::side_position))
233         (meta . ((interfaces . (dot-column-interface axis-group-interface))))
234         ))
235
236     (Dots
237      . (
238         (molecule-callback . ,Dots::brew_molecule)
239         (dot-count . 1)
240         (Y-offset-callbacks  . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
241         (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface))))
242         ))
243
244     (DoublePercentRepeat .
245                          (
246                           (molecule-callback . ,Percent_repeat_item_interface::double_percent)
247                           (breakable . #t)
248                           (slope . 1.0)
249                           (font-family . music)
250                           (width . 2.0)
251                           (thickness . 0.48)
252                           (break-align-symbol . staff-bar)
253                           (visibility-lambda . ,begin-of-line-invisible)
254                           (meta . ((interfaces . (font-interface percent-repeat-interface))))
255                          ))
256
257     (DynamicText
258      . (
259         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
260         (molecule-callback . ,Text_item::brew_molecule)
261         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
262                                ,Self_alignment_interface::centered_on_parent))
263         (self-alignment-X . 0)
264         (no-spacing-rods . #t)
265         (script-priority . 100)
266         (font-series . bold)
267         (font-family . dynamic)
268         (font-shape . italic)
269         (self-alignment-Y . 0)
270         (meta . ((interfaces . (font-interface text-interface self-alignment-interface  dynamic-interface))))
271         ))
272
273     (DynamicLineSpanner
274      . (
275         (axes . (1))
276         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
277         
278         (padding . 0.6)
279         (minimum-space . 1.2)
280         (direction . -1)
281         (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface))))
282         ))
283
284     (LeftEdge
285      . (
286         (break-align-symbol . left-edge)
287         (X-offset-callbacks . (,Break_align_interface::alignment_callback))
288         (X-extent-callback . ,Grob::point_dimension_callback)
289         (breakable . #t)
290         (space-alist . (
291                         (time-signature . (extra-space . 0.0)) 
292                         (staff-bar . (extra-space . 0.0))
293                         (breathing-sign . (minimum-space  . 0.0))
294                         (clef . (extra-space . 1.0))
295                         (first-note . (extra-space . 0.0))
296                         (key-signature . (extra-space . 0.0))
297                         ))
298         (meta . ((interfaces . (break-aligned-interface))))
299         ))
300
301     (Fingering
302      . (
303         (molecule-callback . ,Text_item::brew_molecule)
304         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
305                                ,Self_alignment_interface::aligned_on_self))
306         (padding . 0.6)
307                                         ;               (direction . -1)
308         (self-alignment-X . 0)
309         (self-alignment-Y . 0)
310         (font-family . number)
311         (font-relative-size . -3)
312         (font-shape . upright)
313         (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface))))
314         ))
315
316
317     (HaraKiriVerticalGroup
318      . (
319         (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
320         (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
321         (axes . (1))
322         (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface))))
323         ))
324
325     (Hairpin
326      . (
327         (molecule-callback . ,Hairpin::brew_molecule)
328         (thickness . 1.0)
329         (height . 0.6666)
330         (spacing-procedure . ,Spanner::set_spacing_rods)
331         (minimum-length . 2.0)
332         (if-text-padding . 1.0)
333         (width-correct . -1.0)
334
335         (dash-thickness . 1.2)
336         (dash-length . 4.0)
337         (self-alignment-Y . 0)
338         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
339         (meta . ((interfaces . (hairpin-interface self-alignment-interface dynamic-interface))))
340         ))
341
342     (InstrumentName
343      . (
344         (breakable . #t)
345         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
346                                ,Side_position_interface::aligned_on_support_refpoints))
347         ;; huh? what's this for?
348         (direction . 0)
349         (space-alist . (
350                         (left-edge . (extra-space . 1.0))
351                         ))
352
353         (self-alignment-Y . 0)
354         (molecule-callback . ,Text_item::brew_molecule)         
355         (break-align-symbol . instrument-name)
356         (visibility-lambda . ,begin-of-line-visible)
357         (baseline-skip . 2)
358         (font-family . roman)
359         (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface))))
360         ))
361
362     (KeySignature
363      . (
364         (molecule-callback . ,Key_signature_interface::brew_molecule)
365         (space-alist . (
366                         (time-signature . (extra-space . 1.25))
367                         (staff-bar .  (extra-space . 1.1))
368                         (first-note . (extra-space . 2.5))
369                         ))
370         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
371         (break-align-symbol . key-signature)
372         (visibility-lambda . ,begin-of-line-visible)
373         (breakable . #t)
374         (meta . ((interfaces . (key-signature-interface  font-interface  break-aligned-interface))))
375         ))
376
377     (Ligature
378      . (
379         (molecule-callback . ,Ligature_bracket::brew_molecule)
380         (meta . ((interfaces . (ligature-interface))))
381         ))
382
383     (LigatureBracket
384      . (
385         (width . 0.75)
386         (height . 0.5)
387         (ligature-primitive-callback . ,Note_head::brew_molecule)
388         (molecule-callback . ,Ligature_bracket::brew_molecule)
389         (meta . ((interfaces . (ligature-bracket-interface))))
390         ))
391
392     (LigatureHead
393      . (
394         (ligature-primitive-callback . ,Note_head::brew_molecule)
395         (molecule-callback . ,Ligature_head::brew_molecule)
396         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
397         (stem-attachment-function . ,note-head-style->attachment-coordinates)
398         (font-family . ancient)
399         (style . mensural)
400         (meta . ((interfaces . (ligature-head-interface rhythmic-head-interface note-head-interface staff-symbol-referencer-interface))))
401         ))
402
403     (LyricHyphen
404      . (
405         (thickness . 1.0)
406         (height . 0.4)
407         (minimum-length .  0.5) 
408         (maximum-length .  100)
409         (molecule-callback . ,Hyphen_spanner::brew_molecule)
410         (Y-extent-callback . ,Grob::point_dimension_callback)
411         (meta . ((interfaces . (lyric-hyphen-interface))))
412         ))
413
414     (LyricExtender
415      . (
416         (molecule-callback . ,Lyric_extender::brew_molecule)
417         (height . 0.8) ; stafflinethickness;
418         (right-trim-amount . 0.5)
419         (Y-extent-callback . ,Grob::point_dimension_callback)
420         (meta . ((interfaces . (lyric-extender-interface))))
421         ))
422
423     (LyricText
424      . (
425         (molecule-callback . ,Text_item::brew_molecule)
426         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
427         (self-alignment-X . 0)
428         (word-space . 0.6)
429         (ignore-length-mismatch . #f)
430         (begin-alignment . 4)
431         (end-alignment . 2)
432         (font-family . roman)
433         (font-shape . upright)
434         ;; duh, side-position-interface?
435         (meta . ((interfaces . (lyric-syllable-interface self-alignment-interface text-interface font-interface))))
436         ))
437
438     (MensuralLigature
439      . (
440         (thickness . 1.4)
441         (flexa-width . 2.0)
442         (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
443         (molecule-callback . ,Mensural_ligature::brew_molecule)
444         (font-family . ancient)
445         (meta . ((interfaces . (mensural-ligature-interface))))
446         ))
447
448     (Porrectus
449      . (
450         (style . mensural)
451         (auto-properties . #f)
452         (solid . #f)
453         (width . 2.4)
454         (thickness . 1.0)
455         (add-stem . #t)
456         (direction . 1)
457         (molecule-callback . ,Porrectus::brew_molecule)
458         (meta . ((interfaces . (porrectus-interface))))
459         ))
460
461     (RehearsalMark
462      . (
463         (molecule-callback . ,Text_item::brew_molecule)
464         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
465         (Y-offset-callbacks . (,Side_position_interface::aligned_side)) 
466         (self-alignment-X . 0)
467
468         (direction . 1)
469         (breakable . #t)
470         (visibility-lambda . ,end-of-line-invisible)
471         (padding . 0.8)
472         (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface))))
473         ))
474
475     (MultiMeasureRest
476      . (
477         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
478         (molecule-callback . ,Multi_measure_rest::brew_molecule)
479         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
480         (staff-position . 0)
481         (expand-limit . 10)
482         (number-threshold . 1)
483         (padding . 1)
484         (thickness . 6.6)
485         (font-family . number)
486         (padding . 1)
487         (meta . ((interfaces . (multi-measure-rest-interface rest-interface font-interface staff-symbol-referencer-interface))))
488         ))
489
490     (NoteCollision
491      . (
492         (axes . (0 1))
493         ;; Ugh, should not be hard-coded. 
494         (note-width . 1.321)
495         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
496         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
497         (meta . ((interfaces . (note-collision-interface axis-group-interface))))
498         ))
499
500     (NoteColumn
501      . (
502         (axes . (0 1))
503         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
504         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
505         (meta . ((interfaces . (axis-group-interface note-column-interface))))
506         ))
507
508     (NoteHead
509      . (
510         (style . default)
511         (molecule-callback . ,Note_head::brew_molecule)
512         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
513         (stem-attachment-function . ,note-head-style->attachment-coordinates)
514         (meta . ((interfaces . (rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface))))
515         ))
516
517     (Glissando
518      . (
519         (type . line)
520         (gap . 0.5)
521         (breakable . #t)
522         (X-extent-callback . #f)
523         (Y-extent-callback . #f)                         
524         (molecule-callback . ,Line_spanner::brew_molecule)
525         (meta . ((interfaces . (line-spanner-interface))))
526         ))
527
528     (VoiceFollower
529      . (
530         (type . line)
531         (gap . 0.5)
532         (breakable . #t)
533         (X-extent-callback . #f)
534         (Y-extent-callback . #f)                         
535         (molecule-callback . ,Line_spanner::brew_molecule)
536         (meta . ((interfaces . (line-spanner-interface))))
537         ))
538
539     (NoteName
540      . (
541         (molecule-callback . ,Text_item::brew_molecule)
542         (font-family . roman)
543         (meta . ((interfaces . (note-name-interface text-interface font-interface))))
544         ))
545
546     (OctavateEight
547      . (
548         (self-alignment-X . 0)
549         (text . "8")
550         (visibility-lambda . ,begin-of-line-visible)
551         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
552         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
553         (molecule-callback . ,Text_item::brew_molecule)
554         (font-shape . italic)
555         (font-family . roman)
556         (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface))))
557         ))
558
559     (PaperColumn
560      . (
561         (axes . (0))
562         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
563
564 ;               (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
565         (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface))))
566         ))
567
568     (PhrasingSlur
569      . (
570         (molecule-callback . ,Slur::brew_molecule)
571         (thickness . 1.2)               
572         (spacing-procedure . ,Spanner::set_spacing_rods)                
573         (minimum-length . 1.5)
574         (after-line-breaking-callback . ,Slur::after_line_breaking)
575         (extremity-rules . ,default-slur-extremity-rules)
576         (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
577         (de-uglify-parameters . (1.5  0.8  -2.0))
578         (Y-extent-callback . ,Slur::height)
579         (details . ((height-limit . 2.0) (ratio . 0.333) (force-blowfit . 0.5)
580                     (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
581                     (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
582                     (bezier-area-steps . 1.0)))
583         (beautiful . 0.5)
584         (y-free . 0.75)
585         (attachment . (#f . #f))
586         (attachment-offset . ((0 . 0) . (0 . 0)))
587         (slope-limit . 0.8)
588         (meta . ((interfaces . (slur-interface))))
589         ))
590
591     (NonMusicalPaperColumn
592      . (
593         (axes . (0))
594         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
595
596         ;; debugging stuff: print column number.
597 ;       (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
598
599
600         (meta .  ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface))))
601         ))
602
603     (PercentRepeat
604      . (
605         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
606         (molecule-callback . ,Multi_measure_rest::percent)
607         (slope . 1.0)
608         (thickness . 0.48)
609         (minimum-width . 12.5) ; staffspace
610         (font-family . music)
611         (meta . ((interfaces . (multi-measure-rest-interface  font-interface percent-repeat-interface))))
612         ))
613
614     (PianoPedalBracket   ;; an example of a text spanner
615      . (
616         (molecule-callback . ,Text_spanner::brew_molecule)
617         (font-family . roman)
618         (type . line)
619         (if-text-padding . 1.0)
620         (width-correct . 0)
621         (outer . #t)
622         (direction . -1)
623         (edge-width . (0.5 . 0.5))
624         (edge-height . (1.0 . 1.0))
625         (shorten-pair . (0.0 . 0.0))
626         (thickness .  1.0)
627         (meta . ((interfaces . (text-spanner-interface piano-pedal-interface))))
628         ))
629
630     (RepeatSlash
631      . (
632         (molecule-callback . , Percent_repeat_item_interface::beat_slash)
633         (thickness . 0.48)
634         (slope . 1.7)
635         (meta . ((interfaces . (percent-repeat-interface))))
636         ))
637     (Rest
638      . (
639         (after-line-breaking-callback . ,Rest::after_line_breaking)
640         (X-extent-callback . ,Rest::extent_callback)
641         (Y-extent-callback . ,Rest::extent_callback)            
642         (molecule-callback . ,Rest::brew_molecule)
643         (Y-offset-callbacks . (,Staff_symbol_referencer::callback)) 
644         (minimum-beam-collision-distance . 1.5)
645         (meta . (
646                  (interfaces . (font-interface
647                                 rhythmic-head-interface
648                                 staff-symbol-referencer-interface
649                                 rest-interface))
650                 ))))
651
652     (RestCollision
653      . (
654         (minimum-distance . 0.75)
655         (meta . ((interfaces . (rest-collision-interface))))
656         ))
657
658     (Script
659      . (
660         ;; don't set direction here: it breaks staccato.
661         (molecule-callback . ,Script_interface::brew_molecule)
662
663         ;; This value is sensitive: if too large, staccato dots will move a
664         ;; space a away.
665         (padding . 0.25) 
666         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
667         (before-line-breaking-callback . ,Script_interface::before_line_breaking)
668         (font-family . music)
669         (meta . ((interfaces . (script-interface side-position-interface font-interface))))
670         ))
671
672     (ScriptColumn
673      . (
674         (before-line-breaking-callback . ,Script_column::before_line_breaking)
675         (meta . ((interfaces . (script-column-interface))))
676         ))
677
678     (Slur
679      . (
680         (molecule-callback . ,Slur::brew_molecule)
681         (thickness . 1.2)               
682         (spacing-procedure . ,Spanner::set_spacing_rods)                
683         (minimum-length . 1.5)
684         (after-line-breaking-callback . ,Slur::after_line_breaking)
685         (extremity-rules . ,default-slur-extremity-rules)
686         (extremity-offset-alist . ,default-slur-extremity-offset-alist)
687         (de-uglify-parameters . (1.5  0.8  -2.0))
688         (Y-extent-callback . ,Slur::height)
689         (details . ((height-limit . 2.0) (ratio . 0.333) (force-blowfit . 0.5)
690                     (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
691                     (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
692                     (bezier-area-steps . 1.0)))
693         (beautiful . 0.5)
694         (y-free . 0.75)
695         (attachment . (#f . #f))
696         (attachment-offset . ((0 . 0) . (0 . 0)))
697         (slope-limit . 0.8)
698         (meta . ((interfaces . (slur-interface))))
699         ))
700
701     (SpacingSpanner
702      . (
703         (spacing-procedure .  ,Spacing_spanner::set_springs)
704         (grace-space-factor . 0.6)
705         (shortest-duration-space . 2.0)
706         (spacing-increment . 1.2)
707         (meta . ((interfaces . (spacing-spanner-interface))))
708         ))
709
710     (SpanBar
711      . (
712         (break-align-symbol . staff-bar)
713         (bar-size-procedure . ,Span_bar::get_bar_size) 
714         (molecule-callback . ,Span_bar::brew_molecule)
715         (visibility-lambda . ,begin-of-line-invisible)
716         (X-extent-callback . ,Span_bar::width_callback)
717         (Y-extent-callback . ())
718         (breakable . #t)
719         (glyph . "|")
720         (before-line-breaking-callback . ,Span_bar::before_line_breaking)
721         ;; ugh duplication! 
722
723         ;;
724         ;; Ross. page 151 lists other values, we opt for a leaner look
725         ;; 
726         (kern . 3.0)
727         (thin-kern . 3.0)
728         (hair-thickness . 1.6)
729         (thick-thickness . 6.0)
730         (meta . ((interfaces . (span-bar-interface bar-line-interface))))
731         ))
732
733     (StanzaNumber
734      . (
735         (breakable . #t)
736         (molecule-callback . ,Text_item::brew_molecule)         
737         (break-align-symbol . clef)
738         (visibility-lambda . ,begin-of-line-visible)
739         (font-family . roman)
740         (meta . ((interfaces . (break-aligned-interface text-interface font-interface))))               
741         ))
742
743     (StaffSpacing
744      . (
745         (breakable . #t)
746         (stem-spacing-correction . 0.4)
747         (meta . ((interfaces . (staff-spacing-interface))))
748         ))
749     (NoteSpacing
750      . (
751         (stem-spacing-correction . 0.5)
752         (meta . ((interfaces . (note-spacing-interface))))
753         ))
754
755     (StaffSymbol
756      . (
757         (molecule-callback . ,Staff_symbol::brew_molecule)
758         (line-count . 5)
759         (ragged-right . #f)
760         (layer . 0)
761         (meta . ((interfaces . (staff-symbol-interface))))
762         ))
763
764     (SostenutoPedal
765      . (
766         (molecule-callback . ,Text_item::brew_molecule)
767         (direction . 1)
768         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
769         (no-spacing-rods . #t)
770         (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
771         (pedal-type . mixed)
772         (font-family . roman)
773         (font-shape . italic)
774         (self-alignment-X . 0)
775         (meta . ((interfaces . (text-interface  self-alignment-interface font-interface))))
776         ))
777
778     (SostenutoPedalLineSpanner 
779      . (
780         (axes . (1))
781         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
782
783         (padding . 1.2)
784         (minimum-space . 1.0)
785         (direction . -1)
786         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface))))
787         ))
788         
789     (Stem
790      . (
791         (before-line-breaking-callback . ,Stem::before_line_breaking)
792         (molecule-callback . ,Stem::brew_molecule)
793         (thickness . 1.3)
794         (beamed-lengths . (0.0 2.5 2.0 1.5))
795         (beamed-minimum-lengths . (0.0 1.5 1.25 1.0))
796
797         ;;  Stems in unnatural (forced) direction should be shortened,
798         ;;  according to [Roush & Gourlay].  Their suggestion to knock off
799         ;;  a whole staffspace seems a bit drastical: we'll do half.
800
801         (lengths . (3.5 3.5 3.5 4.5 5.0))
802         (stem-shorten . (1.0 0.5))
803                                         ; if stem is on middle line, choose this direction.
804         (neutral-direction . -1)
805         (X-offset-callbacks . (,Stem::off_callback))
806         (X-extent-callback . ,Stem::dim_callback)       
807         (Y-extent-callback . ,Stem::height)
808         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
809         (adjust-if-on-staffline . #t)
810         (font-family . music)      
811         (meta . ((interfaces . (stem-interface  font-interface))))
812         ))
813
814     (StemTremolo
815      . (
816         (molecule-callback . ,Stem_tremolo::brew_molecule)
817         (Y-extent-callback . ,Stem_tremolo::height)
818         (X-extent-callback . #f)
819
820         (beam-width . 2.0) ; staff-space
821         (beam-thickness . 0.48) ; staff-space
822         (meta . ((interfaces . (stem-tremolo-interface))))
823         ))
824
825     (SeparationItem
826      . (
827         (meta . ((interfaces . (separation-item-interface))))
828         ))
829
830     (SeparatingGroupSpanner
831      . (
832         (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
833         (meta . ((interfaces . (separation-spanner-interface))))
834         ))
835
836     (SustainPedal
837      . (
838         (no-spacing-rods . #t)
839         (molecule-callback . ,Sustain_pedal::brew_molecule)
840         (self-alignment-X . 0)
841         (direction . 1)
842         (padding . 0.0)  ;; padding relative to SustainPedalLineSpanner
843         (pedal-type . text)
844         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
845         (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface))))
846         ))
847
848     (SustainPedalLineSpanner 
849      . (
850         (axes . (1))
851         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
852         
853         (padding . 1.2)
854         (minimum-space . 1.0)
855         (direction . -1)
856         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface))))
857         ))
858
859     (System
860      . (
861         (axes . (0 1))
862         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
863         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
864         (meta . ((interfaces . (system-interface axis-group-interface))))
865         ))
866
867     (SystemStartBrace
868      . (
869         (glyph . "brace")
870         (molecule-callback . ,System_start_delimiter::brew_molecule)
871         (collapse-height . 5.0)
872         (font-family . braces)
873         (Y-extent-callback . #f)
874         (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
875         ))
876
877     (SystemStartBracket
878      . (
879         (Y-extent-callback . #f)
880         (molecule-callback . ,System_start_delimiter::brew_molecule)
881         (glyph . "bracket")
882         (arch-height . 1.5)
883         (arch-angle . 50.0)
884         (arch-thick . 0.25)
885         (arch-width . 1.5)
886         (bracket-collapse-height . 1)
887         (thickness . 0.25)
888         (meta . ((interfaces . (system-start-delimiter-interface))))
889         ))
890
891     (SystemStartBar
892      . (
893         (Y-extent-callback . #f)
894         (molecule-callback . ,System_start_delimiter::brew_molecule)
895         (glyph . "bar-line")
896         (thickness . 1.6)
897         (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
898         (meta . ((interfaces . (system-start-delimiter-interface))))
899         ))
900
901     (TextScript
902      . (
903         (molecule-callback . ,Text_item::brew_molecule)
904         (no-spacing-rods . #t)
905         (direction . -1)
906         (padding . 0.5)
907         ;; todo: add X self alignment?
908         (baseline-skip . 2)
909         (font-family . roman)
910         (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface))))
911         ))
912
913     (TextSpanner
914      . (
915         (molecule-callback . ,Text_spanner::brew_molecule)
916         (font-family . roman)
917         (type . line)
918
919         ;; urg, only for (de)cresc. text spanners
920         (if-text-padding . 1.0)
921         (width-correct . -1)
922
923         (direction . 1)
924         (meta . ((interfaces . (text-spanner-interface  font-interface))))              
925         ))
926
927     (Tie
928      . (
929         (molecule-callback . ,Tie::brew_molecule)
930         (spacing-procedure . ,Spanner::set_spacing_rods)
931         (staffline-clearance . 0.35)
932         (details . ((ratio . 0.333) (height-limit . 1.0)))
933         (thickness . 1.2)
934         (x-gap . 0.2)
935         (y-offset . 0.6)
936         (minimum-length  . 2.5)
937         (meta . ((interfaces . (tie-interface))))
938         ))
939
940     (TieColumn
941      . (
942         (after-line-breaking-callback . ,Tie_column::after_line_breaking)
943         (X-extent-callback . ())
944         (Yoo-extent-callback . ())      
945         (meta . ((interfaces . (tie-column-interface))))
946         ))
947
948     (TimeSignature
949      . (
950         (molecule-callback . ,Time_signature::brew_molecule)
951         (break-align-symbol . time-signature)
952         (visibility-lambda . ,all-visible)
953         (space-alist . (
954                         (first-note . (extra-space . 2.0))
955                         (staff-bar .  (minimum-space . 2.0))
956                         ))
957         (breakable . #t)
958         (style . C)
959         (font-family . number)
960         (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface))))
961         ))
962
963     (TupletBracket
964      . (
965         (gap . 2.0)
966         (padding . 0.9)
967         (thickness . 1.6)
968         (edge-width . (0.0 . 0.0))
969         (edge-height . (0.7 . 0.7))
970         (shorten-pair . (0.0 . 0.0))
971         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
972         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
973         (molecule-callback . ,Tuplet_bracket::brew_molecule)
974         (font-family . roman)
975         (font-shape . italic)
976
977         (font-relative-size . -1)
978         (meta .  ((interfaces . (text-interface tuplet-bracket-interface font-interface))))
979         ))
980
981     (UnaCordaPedal
982      . (
983         (molecule-callback . ,Text_item::brew_molecule)
984         (font-family . roman)
985         (font-shape . italic)
986         (no-spacing-rods . #t)
987         (self-alignment-X . 0)
988         (direction . 1)
989         (pedal-type . text)
990         (padding . 0.0)  ;; padding relative to UnaCordaPedalLineSpanner
991         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
992         (meta . ((interfaces . (text-interface self-alignment-interface font-interface))))
993         ))
994
995     (UnaCordaPedalLineSpanner 
996      . (
997         (axes . (1))
998         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
999         (padding . 1.2)
1000         (minimum-space . 1.0)
1001         (direction . -1)
1002         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface))))
1003         ))
1004
1005     (VoltaBracket
1006      . (
1007         (molecule-callback . ,Volta_bracket_interface::brew_molecule)
1008         (direction . 1)
1009         (padding . 1)
1010         (font-style . volta)
1011         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1012         (thickness . 1.6)  ;  stafflinethickness
1013         (height . 2.0) ; staffspace;
1014         (minimum-space . 5)
1015         (font-family . number)
1016         (font-relative-size . -2)
1017         (meta . ((interfaces . (volta-bracket-interface text-interface side-position-interface font-interface))))
1018         ))
1019     
1020     (VerticalAlignment
1021      . (
1022         (axes . (1))
1023         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1024         (stacking-dir . -1)
1025         (meta . ((interfaces . (align-interface axis-group-interface))))
1026         ))
1027
1028     (VerticalAxisGroup
1029      . (
1030         (axes . (1))
1031         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1032         
1033         (meta . ((interfaces . (axis-group-interface))))
1034         ))
1035    )
1036  )
1037
1038
1039
1040
1041 (define (completize-grob-entry x)
1042   "transplant assoc key into 'name entry of 'meta of X
1043 "
1044
1045   (let* ((name-sym  (car x))
1046          (grob-entry (cdr x))
1047          (metaentry (cdr (assoc 'meta grob-entry)))
1048          (ifaces-entry
1049           (cdr (assoc 'interfaces metaentry)))
1050
1051         )
1052     (set! metaentry (assoc-set! metaentry 'name name-sym))
1053     (set! metaentry (assoc-set! metaentry 'interfaces
1054                                 (cons 'grob-interface ifaces-entry)))
1055     (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1056     (cons name-sym grob-entry)))
1057
1058 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1059
1060
1061
1062                                         ;  (display  (map pair? all-grob-descriptions))
1063
1064
1065 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1066
1067 (map (lambda (x)
1068                                         ; (display (car x)) (newline)
1069
1070        (set-object-property! (car x) 'translation-type? list?))
1071      all-grob-descriptions)
1072