]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grob-properties.scm
release commit
[lilypond.git] / scm / define-grob-properties.scm
1 ;;;; grob-property-description.scm -- part of generated backend documentation
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
9
10 (define (define-grob-property symbol type? description)
11   (if (not (equal? (object-property symbol 'backend-doc) #f))
12       (begin
13         (ly:warn (string-append "Redefining " (symbol->string symbol) "\n"))
14         (exit 2)
15       ))
16   
17   (set-object-property! symbol 'backend-type? type?)
18   (set-object-property! symbol 'backend-doc description)
19   symbol
20   )
21
22 ;; put this in an alist?
23 (define-public
24   all-user-grob-properties
25
26   (map
27    (lambda (x)
28      (apply define-grob-property x))
29
30    `(
31      (X-extent-callback ,procedure? "Procedure taking a grob and axis
32 argument, returning a number-pair. The return value is the extent of
33 the grob. If this value is set to @code{#f}, the object is empty in
34 the X direction.")
35
36      (X-offset-callbacks ,list? "list of functions, each taking an grob and
37 axis argument. The function determine the position relative to this
38 grob's parent. The last one in the list is called first.")
39
40      (Y-extent-callback ,procedure? "see @code{X-extent-callback}.")
41      (Y-offset-callbacks ,list? "see @code{X-offset-callbacks}.")
42
43      (accidentals ,list? "List of alteration numbers.")
44
45      
46      (align-dir ,ly:dir? "Which side to ,align? -1: left side, 0: around center of width, 1: right side.")
47      (arch-angle ,number? "turning angle of the hook of a system brace" )
48      (arch-height ,ly:dimension? "height of the hook of a system brace.")
49      (arch-thick ,number? "thickness of the hook of system brace.")
50      (arch-width ,ly:dimension? "width of the hook of a system brace.")
51      (arpeggio-direction ,ly:dir? "If set, put an
52 arrow on the arpeggio squiggly line.")
53      (attachment ,pair? "cons of symbols
54 indicating how a slur should be attached at the ends. The format is
55 '(LEFT-TYPE . RIGHT-TYPE), where both TYPEs are symbols. The values of
56 these symbols may be alongside-stem, stem, head or loose-end.")
57      (attachment-offset ,pair? "cons of offsets,
58 '(@var{left-offset} . @var{right-offset}).  This offset is added to
59 the attachments to prevent ugly slurs.  [fixme: we need more
60 documentation here].")
61
62      ;; ancient notation
63
64      ;;;;;;; TODO:
65      ;; there are too many properties for ancient notation
66      ;; probably neume-types (a list of symbols) would also work.
67      
68      (auctum ,boolean? "is this neume augmented?")
69      (ascendens ,boolean? "is this neume of an ascending?")
70      (add-cauda ,boolean? "does this flexa require an additional cauda on the left side?")
71      (add-join ,boolean? "is this ligature head joined with the next one by a vertical line?")
72      (cavum ,boolean? "is this neume outlined?")
73      (descendens ,boolean? "is this neume of a descendent type?")
74      (deminutum ,boolean? "is this neume deminished?")
75      (flexa-height ,ly:dimension? "height of a flexa shape in a ligature grob in staff_space.")
76      (flexa-width ,ly:dimension? "width of a flexa shape in a ligature grob in staff_space.")
77      (join-heads ,boolean? "Whether to join the noteheads of an ambitus grob with a vertical line.")
78      (linea ,boolean? "attach vertical lines to this neume?")
79   
80  
81      (add-stem ,boolean? "is this ligature head a virga and therefore needs an additional stem on the right side?")
82      (adjust-if-on-staffline ,boolean? "If this grob is on a staff line, adjust its appearance, so that it better fits into the staff.  E.g., if set true on stem grobs, flares of mensural flags will always be aligned with the staff lines, regardless if the associated note head is printed on a staff line or inbetween.")
83      (join-left ,boolean? "is this ligature head joined with the previous one by a vertical line?")
84      (context-info ,integer? "")
85      (inclinatum ,boolean? "is this neume an inclinatum?")
86      (note-head-style ,string? "name of the font character to be used as note heads in the ambitus grob.")
87      (oriscus ,boolean? "is this neume an oriscus?")
88      (quilisma ,boolean? "is this neume a quilisma?")
89      (pes-or-flexa ,boolean? "shall this neume be joined with the previous head?")
90      ;; DOCME
91      (prefix-set ,number? "")
92      (stropha ,boolean? "is this neume a stropha?")
93      (virga ,boolean? "is this neume a virga?")
94
95
96      ;; end ancient notation
97      
98
99      (auto-knee-gap ,ly:dimension? "If a gap is found between noteheads
100 where a  horizontal beam fits that is larger than this number,  make a kneed beam.")
101      (axes ,list? "list of axis numbers.
102 In the case of alignment grobs, this should contain only one number.")
103
104      (balloon-text ,markup? "Text to add to help balloon")
105      (balloon-text-props ,list? "Font properties
106 for balloon text.")
107      (balloon-text-offset ,number-pair?
108                           "Where to put text relative to balloon.")
109      (balloon-padding ,ly:dimension? "Text to add to help balloon")
110      (balloon-original-callback ,procedure? "The
111 original stencil drawer to draw the balloon around.")
112
113
114      (bar-size ,ly:dimension? "size of a bar line.")
115      (bar-size-procedure ,procedure? "Procedure that computes the size of a bar line.")
116      (base-shortest-duration ,ly:moment?
117                              "Spacing is based on the shortest notes in a piece. Normally, pieces are spaced as if notes at least as short as this are present.")
118      (baseline-skip ,ly:dimension? "Distance between base lines of
119  multiple lines of text.")
120      (beam-thickness ,ly:dimension? "thickness, measured in staffspace.")
121      (beam-width ,ly:dimension? "width of the tremolo sign.")
122      (beamed-lengths ,list? "list of stem lengths given beam multiplicity .")
123      (beamed-minimum-free-lengths ,list? "list of normal minimum free stem lengths (chord to beams) given beam multiplicity.")
124      (beamed-extreme-minimum-free-lengths ,list? "list of extreme minimum free stem lengths (chord to beams) given beam multiplicity.")
125
126      (beamed-stem-shorten ,list? "shorten beamed stems in forced direction.")
127      (beaming ,pair?
128               "Pair of number lists. Each number list
129 specifies which beams to make. 0 is the central beam, 1 is the next
130 beam toward the note etc. This information is used to determine how to
131 connect the beaming patterns from stem to stem inside a beam.")
132
133
134      (beautiful ,number? "number that dictates when a slur should be de-uglyfied.  It correlates with the enclosed area between noteheads and slurs.  A value of 0.1 yields only undisturbed slurs, a value of 5 will tolerate quite high blown slurs.")
135      (before-line-breaking-callback ,procedure? "Procedure taking grob as argument.
136 This procedure is called (using dependency resolution) before line breaking, but after generating discretionary items. Return value is ignored.")
137      (between-cols ,pair? "Where to attach a loose column to")
138      (between-system-string ,string? "string
139  to dump between two systems. Useful for forcing pagebreaks.")
140      (bracket-thick ,number? "width of a system start bracket.")
141      (break-align-symbol ,symbol? "the index in the spacing table (symbol) of the to be aligned item.")
142      (break-glyph-function ,procedure? "function taking glyph and break-direction, returning the glyph at a line break.")
143      (breakable ,boolean? "Is this is a breakable item (e.g. clef, barline)?")
144      (c0-position ,integer? "integer indicating the position of central C.")
145      (cautionary-style ,symbol? "style  of cautionary accidentals. Choices are 'smaller (one size smaller) or 'parentheses.")
146      (cautionary ,boolean? "is this a cautionary accidentals.?")
147      (concaveness-gap ,ly:dimension? "A beam is
148 considered to be concave if the distance of an inner notehead to the
149 line between two outer noteheads is bigger than this gap.")
150      (concaveness-threshold ,number? "A beam is
151 considered to be concave is concaveness is bigger than this threshold.
152 Concaveness is calculated as the sum of the vertical distances of
153 inner noteheads that fall outside the interval of the two outer
154 noteheads, to the vertically nearest outer notehead, divided by the
155 square of the inner notes involved.")
156      (collapse-height ,ly:dimension? "Minimum height of system start delimiter.  If equal or smaller, the bracket is removed.")
157
158      ;;DOCME
159
160      (control-points ,list? "List of 4 offsets (number-pairs) that form control points for the  tie/slur shape.")
161
162      (damping ,integer? "Amount of beam slope damping. 0: no, 1: yes, 100000: horizontal beams .")
163      (dash-period ,number? "the length of one dash + white space. If
164 negative, no line is drawn at all.")
165      
166      (dash-fraction ,number? "Size of the dashes, relative to
167 dash-period. Should be between 0.0 (no line) and 1.0 (continuous
168 line).")
169
170      ;; [FIXME: use dash-period/dash length; see text-spanner]
171      (dashed ,number? " number representing the length of the dashes.")
172      
173      (neutral-direction ,ly:dir? "Where to go if we're on the neutral
174 position of the staff.")
175
176      ;; todo: why is this tunable?
177      (neutral-position ,number? "Position (in half staff spaces) where
178 to flip the direction of stems: by default, custodes above this
179 position get their stems downwards; custodes below this position get
180 their stems upwards.  A value of 0 designates the center of the staff.
181 Use property neutral-direction to control the behaviour of stems on
182 the neutral position itself.  (Note: currently, neutral-position is
183 supported only for custodes; for stems of note heads, neutral-position
184 is currently fixed to 0, i.e. the middle of the staff.)")
185      (dir-function ,procedure? "function of type (count total)->direction.  Default value: beam-dir-majority, also available: beam-dir-mean, beam-dir-median.
186
187 The ways to calculate the direction of a beam work as follows:
188 @table @code
189 @item majority
190 number count of up or down notes
191 @item mean
192 mean center distance of all notes
193 @item median
194 mean centre distance weighted per note
195 @end table
196
197 ")
198      (direction ,ly:dir? "Up or down, left or right?")
199      (dot-count ,integer? "number of dots.")
200      (duration-log ,integer? "2-log of the notehead duration, i.e. 0=whole note, 1 = half note, etc.")
201      (edge-height ,pair? "a cons that specifies the heights of the vertical edges '(LEFT-height . RIGHT-height).")
202      (bracket-flare ,number-pair? "a pair that specifies how much
203 edges of brackets should slant outward.  Value 0.0 means straight
204 edges")
205
206      (edge-text ,pair? "a cons that specifies the texts to be set at the edges '(LEFT-text . RIGHT-text).")
207      (expand-limit ,integer? "maximum number of measures expanded in church rests.")
208
209      ;; remove me? 
210      (extra-X-extent ,number-pair? "enlarge in X dimension by this much, measured in staff space.")
211      (extra-Y-extent ,number-pair? "see @code{extra-Y-extent}.")
212
213      
214      (X-extent ,number-pair? "Store extent. internal use only. ")
215      (Y-extent ,number-pair? "Store extent. internal use only. ")
216
217      (extra-offset ,number-pair? "A pair representing an offset. This
218 offset is added just before `printing' the grob, so the typesetting
219 engine is completely oblivious to it.")
220
221      (extremity-offset-alist ,list? "an alist (attachment stem-dir*dir
222 slur-dir*dir) -> offset.  The offset adds to the centre of the
223 notehead, or stem.")
224
225      (extremity-rules ,list? "an alist (procedure
226 slur dir) -> attachment to determine the attachment (see above).  If
227 procedure returns #t, attachment is used.  Otherwise, the next
228 procedure is tried.")
229      
230      (flag-style ,symbol?
231                  "a string determining what style of glyph is typeset on a Stem. Valid
232 options include undefined and mensural.  Additionally, @code{no-flag}
233 switches off the flag.")
234      (stroke-style ,string? "set to \"grace\" to turn stroke through flag on.")
235      (flag-width-function ,procedure? "Procedure that computes the width of a half-beam (a non-connecting beam.).")
236      (font-family ,symbol? "partial font
237 definition: music roman braces dynamic math ..")
238      (font-name ,string? "file name for the font to load.
239 Overrides all other font-X qualifiers.")
240      (font-magnification ,number? "Magnification
241   of the font. If undefined, the default is @code{1.0}.")
242
243      (font-size ,number? "font definition: the relative size compared
244 the `normal' size.  0 is style-sheet's normal size, -1 is smaller, +1
245 is bigger.  Each step of 1 is approximately 12% larger, 6 steps are
246 exactly a factor 2 larger. Fractional values are allowed.")
247
248      (font-series ,symbol? "partial font definition: medium, bold.")
249      (font-shape ,symbol? "partial font definition: upright or italic.")
250
251      (force-hshift ,number? "amount of collision_note_width that
252 overides automatic collision settings. This is used by
253 @internalsref{note-collision-interface}.")
254
255      (fraction ,number-pair? "fraction of a time signature.")
256      (french-beaming ,boolean? "Use French
257 beaming style: stems stop at innermost beams.")
258      (full-size-change ,boolean? "if set, don't make a change clef smaller.")
259
260      (glyph ,string? "a string determining what (style) of glyph is
261 typeset. Valid choices depend on the function that is reading this
262 property.")
263
264      (glyph-name ,string? "a name of character within font.")
265      (glyph-name-procedure ,procedure? "Return
266 name of character within font.")
267
268      (gap ,ly:dimension? "Size of a gap in a variable symbol.")
269      (gap-count ,integer? "Number of gapped beams for tremolo.")
270      (grace-space-factor ,number? "space grace at this fraction of the increment.")
271
272      (grow-direction ,ly:dir? "crescendo or decrescendo?")
273      (hair-thickness ,number? "thickness, measured in linethickness.")
274      (height ,ly:dimension? "in staffspace.")
275
276      (height-limit ,ly:dimension? "Maximum slur height: the longer the
277 slur, the closer it is to this height.")
278
279      (horizontal-shift ,integer? "integer that identifies ranking of
280 note-column for horizontal shifting. This is used by
281 @internalsref{note-collision-interface}.")
282      (interfaces ,list? "list of symbols indicating the interfaces supported by this object. Is initialized from the @code{meta} field.")
283      (kern ,ly:dimension? "amount of extra white
284 space to add. For barline, space after a thick line.")
285      (knee ,boolean? "Is this beam a knee?")
286      (knee-spacing-correction ,number? "optical correction amount for knees. 0: no correction; 1: full correction.")
287      (layer ,number? "The output layer [0..2].  The default is 1.")
288
289      (ledger-line-thickness ,number-pair?
290                             "The thickness of ledger lines: it is the
291 sum of 2 numbers.  The car is the factor for linethickness, and the
292 cdr for staff space. Both contributions are added.")
293      
294      (left-position ,number? "position of left part of spanner.")
295      (left-padding ,ly:dimension? "space left of accs.")
296
297      (length ,ly:dimension? "Stem length for unbeamed stems, only for user override.")
298      (lengths ,list? "Stem length given
299 multiplicity of flag.  The Nth element of the list gives the stem
300 length of a note with N flags.
301 ")
302      (line-count ,integer? "Number of staff
303 lines.  If you want to override this for staffs individually, you must
304 use @code{\\outputproperty}. @code{\\property .. \\override} will not
305 work: @code{\\override} is processed after the StaffSymbol is created,
306 and will have no effect.
307 ")
308      (maximum-rest-count ,integer? "kill off rests so we don't more than this number left.")
309      (measure-length ,ly:moment? "Length of a
310 measure. Used in some spacing situations.")
311      (measure-count ,integer? "number of measures for a multimeasure rest.")
312
313      (merge-differently-headed ,boolean? "Merge
314 noteheads in collisions, even if they have different note heads. The
315 smaller of the two heads will be rendered invisible. This used
316 polyphonic guitar notation. The value of this setting is used by
317 @internalsref{note-collision-interface} .")
318
319      (merge-differently-dotted ,boolean? " Merge
320 noteheads in collisions, even if they have a different number of
321 dots. This normal notation for some types of polyphonic music. The
322 value of this setting is used by @internalsref{note-collision-interface} .")
323
324      (minimum-distance ,ly:dimension? "Minimum distance between rest and notes or beam.")
325      (minimum-X-extent ,number-pair? "minimum size in X dimension, measured in staff space.")
326      (minimum-Y-extent ,number-pair? "see @code{minimum-Y-extent}.")
327      (minimum-length ,ly:dimension? "try to make a spanner at least
328 this long. This requires a routine setting rods in @code{spacing-procedure} property.")
329      (minimum-space ,ly:dimension? "minimum distance that the victim should move (after padding).")
330      (print-function ,procedure? "Function taking grob as argument,
331 returning a Molecule object.")
332
333      (new-accidentals ,list? "list of (pitch, accidental) pairs.")
334      (no-spacing-rods ,boolean? "Items with this property do not cause
335 spacing constraints.")
336      (no-stem-extend ,boolean? "prevent stem from extending to middle
337 staff line?")
338      (non-default ,boolean? "set for manually specified clefs.")
339      (old-accidentals ,list? "list of (pitch, accidental) pairs.")
340
341      (enclose-bounds ,number?
342                      "How much of the bound a spanner should enclose:
343 +1 = completely, 0 = center, -1 not at all.")
344
345      (padding ,ly:dimension? "add this much extra space between
346 objects that are next to each other.")
347      (penalty ,number? "Penalty for breaking at
348 this column. 10000 or more means forbid linebreak, -10000 or less
349 means force linebreak.  Other values influence linebreaking decisions
350 as a real penalty.")
351      (pitch-max ,ly:pitch? "FIXME, JUNKME")
352      (pitch-min ,ly:pitch? "FIXME, JUNKME")
353      (positions ,pair?
354
355                 "cons of staff coordinates (@var{left} . @var{right}),
356 where both @var{left} and @var{right} are in the staff-space unit of
357 the current staff.")
358
359      (ratio ,number? "Parameter for slur shape. The higher this number, the
360 quicker the slur attains it @code{height-limit}.")
361      (remove-first ,boolean? "Remove the first staff of a orchestral score?")
362      (right-padding ,ly:dimension? "space right of accs.")
363      (right-position ,number? "position of right part of spanner.")
364      (script-priority ,number? "A sorting key that determines in what
365 order a script is within a stack of scripts.")
366
367      ;; TODO: revise typing
368      (self-alignment-X ,number-or-grob? "real number: -1 =
369 left aligned, 0 = center, 1 right-aligned in X direction.
370
371  Set to an grob pointer, if you want that grob to be the center.
372 In this case, the center grob should have this object as a
373 reference point.
374
375 .")
376      (self-alignment-Y ,number? "like self-alignment-X but for Y axis.")
377
378      ;; DOCME
379      (shorten ,ly:dimension? "the amount of space that a stem should be shortened ")
380      (shorten-pair ,number-pair? "the length on each side to shorten a text-spanner, for example a pedal bracket")
381      (common-shortest-duration ,ly:moment?
382                                "The most common shortest note length.
383 This is used in spacing. Making this larger will make the score tighter.")
384      (shortest-duration-space ,ly:dimension? "Start
385 with this much space for the shortest duration. This is explessed in @code{spacing-increment} as unit. See also
386 @internalsref{spacing-spanner-interface}.")
387      (shortest-playing-duration ,ly:moment? "duration of the shortest playing in that column.")
388      (shortest-starter-duration ,ly:moment? "duration of the shortest notes that starts exactly in this column.")
389      (side-relative-direction ,ly:dir? "if set: get the direction from a different object, and multiply by this.")
390      (slope ,number? "some kind of slope")
391      (slope-limit ,number? "set slope to zero if slope is running away steeper than this.")
392
393      (space-alist ,list? "Alist of break align
394 spacing tuples: format = (SYMBOL . (TYPE . DISTANCE)), where TYPE can be
395 minimum-space or extra-space.")
396      (space-function ,procedure? "return interbeam space given Beam grob and multiplicity.")
397
398      (spacing-increment ,number? "Add this much space for a doubled
399 duration. Typically, the width of a note head. See also
400 @internalsref{spacing-spanner-interface}.")
401
402      (spacing-procedure ,procedure? "procedure taking grob as
403 argument. This is called after before-line-breaking-callback, but
404 before the actual line breaking itself.  Return value is ignored.")
405      
406      (stacking-dir ,ly:dir? "stack contents of grobs in which direction ?")
407      (staff-space ,ly:dimension? "Amount of line leading relative to global staffspace.")
408      (staff-position ,number? "vertical position in staff spaces, counted from the middle line.")
409
410      (staffline-clearance ,ly:dimension? "don't get closer than this to stafflines.")
411
412      (stem-attachment-function ,procedure? "Where
413 does the stem attach to the ,notehead? Function takes grob and axis as
414 arguments. It returns a (X . Y) pair, specifying location in terms of
415 note head bounding box.")
416
417      (stem-end-position ,number? "Where does the stem end (the end is opposite to the support-head.")
418
419      (stem-shorten ,list? "shorten stems in forced directions given flag multiplicity:
420 the Nth element of the list gives the amount stem shortening of a note with N flags.
421 ")
422      ;;[TODO: doco]
423      (stem-spacing-correction ,number? "optical correction amount.   ")
424      (style ,symbol? "a string determining what style of  glyph is typeset. Valid choices depend on the function that is reading this property.")
425      (text-repeat-if-broken ,boolean?
426                             "Repeat text on broken ,text-spanner?")
427      (text ,markup? "Text markup.  See the
428 notation manual for more information.")
429      (thick-thickness ,number? "thickness, measured in linethickness.")
430      (thickness ,number? "thickness, measured in linethickness.")
431      (thin-kern ,number? "space after a hair-line.")
432      (forced-distance ,ly:dimension? "forced distance for an alignment.")
433
434      (threshold ,number-pair? "(cons MIN MAX), where MIN and MAX are dimensions in staffspace.")
435      (transparent ,boolean? "This is almost the
436 same as setting print-function to #f, but this retains the
437 dimensions of this grob, which means that you can erase grobs
438 individually.")
439      (bracket-visibility ,boolean-or-symbol? " This controls the
440 visibility of the tuplet bracket.  Setting it to false will prevent
441 printing of the bracket. Setting the property to #'if-no-beam will
442 make it print only if there is no beam associated with this tuplet
443 bracket.")
444      
445      (number-visibility ,boolean-or-symbol? " Like
446 @code{bracket-visibility}, but for the number.")
447
448      ;; FIXME.
449      (break-visibility ,procedure? "a function that takes the break
450 direction and returns a cons of booleans containing (@var{transparent}
451 . @var{empty}).  The following variables are predefined:
452 @code{all-visible}, @code{begin-of-line-visible},
453 @code{end-of-line-visible}, @code{begin-of-line-invisible},
454 @code{end-of-line-invisible}, @code{all-invisible}.
455 ")
456      (flag-count ,number? "Number of tremolo beams.")
457
458      (when ,ly:moment? "when does this column happen?")
459      (word-space ,ly:dimension? "space to insert between lyrics or
460 words in texts.")
461      (width ,ly:dimension? "width of a grob measured in staff space.")
462      (x-gap ,ly:dimension? "horizontal gap between notehead and tie.")
463      (x-offset ,ly:dimension? "extra horizontal offset for ligature heads.")
464      (y-free ,ly:dimension? "minimal vertical gap between slur and noteheads or stems.")
465      (y-offset ,ly:dimension? "extra vertical offset
466 for ties away from the center line.")
467      (zigzag-length ,ly:dimension? "The length of the
468 lines of a zigzag - relative to zigzag-width. a value of 1
469 gives 60-degree zigzags.")
470      (zigzag-width ,ly:dimension? "the width of one
471 zigzag-squiggle, measured in staff space. The width will be adjusted
472 so that the line can be constructed from a whole number of squiggles.")
473
474
475      (avoid-note-head ,boolean? "if set, the stem of a chord does not pass through all note head, but start at the last note head. Used by tablature.")
476      (staff-padding ,ly:dimension?
477                     "Maintain this much space between reference points
478 and the staff.  Its effect is to align objects of differing sizes (like the dynamic @b{p} and @b{f})  on their baselines.")
479      (use-breve-rest ,boolean? "boolean that tells multi-measure-rest
480 to use a breve rest to represent the duration of 1 measure instead of
481 whole rest.  It defaults to false.  It is set to true when the
482 duration of a measure is a breve or longer.")
483
484      )))
485
486
487 ;;;;;;;;;;;;;;;;
488 ;;   INTERNAL
489
490
491 (define (define-internal-grob-property symbol type? description)
492   (define-grob-property symbol type? description)
493   (set-object-property! symbol 'backend-internal #t)
494   symbol
495   )
496
497
498 (define-public all-internal-grob-properties
499   (map
500    (lambda (x)
501      (apply define-internal-grob-property x))
502    
503    `(
504      (accidental-grobs ,list? "Alis with (NOTENAME . GROBLIST) entries")
505      (after-line-breaking-callback ,procedure? "This procedure is called after line breaking. Its return value is ignored.")     
506      (all-elements ,grob-list? "list of all grobs in this line. Its
507 function is to protect objects from being garbage collected.")
508      (arpeggio ,ly:grob? "pointer to arpeggio object.")
509      (beam ,ly:grob? "pointer to the beam, if applicable.")
510      (center-element ,ly:grob? "grob which will be at the center of
511 the group after aligning (when using
512 Align_interface::center_on_element).")
513      (direction-source ,ly:grob? "in case side-relative-direction is
514 set, which grob to get the direction from .")
515      (dot ,ly:grob? "reference to Dots object.")
516      (pedal-text ,ly:grob? "Pointer to the text of a mixed-style piano pedal.")
517      (stem ,ly:grob? "pointer to Stem object.")
518      (tremolo-flag ,ly:grob? "The tremolo object on a stem.")
519      (tie ,ly:grob? "")
520      (staff-symbol ,ly:grob? "the staff symbol grob that we're in.")
521      (rest ,ly:grob? "the staff symbol grob that we're in.")
522      (rest-collision ,ly:grob? "rest collision that a rest is in.")
523      (accidental-grob ,ly:grob? "Accidental for this note.")
524      (bars ,grob-list? "list of barline pointers.")
525      (bounded-by-me ,grob-list? "list of spanners that have this
526 column as start/begin point. Only columns that have grobs or act as bounds are spaced.")
527      (columns ,grob-list? "list of grobs, typically containing
528 paper-columns or note-column objects.")
529      (conditional-elements ,grob-list? "Internal use only")
530      (dependencies ,grob-list? "list of score-grob pointers that indicate who to compute first for certain global passes.")
531      (elements ,grob-list? "list of grobs, type depending on the Grob where this is set in.")
532      (heads ,grob-list? "List of note heads.")
533      (items-worth-living ,grob-list? "list of interesting items. If empty in a particular system, clear that system.")
534      (details ,list? "alist of parameters for detailed grob behavior.")
535      (note-heads ,grob-list? "List of note head grobs")
536      (side-support-elements ,grob-list? "the support, a list of grobs.")
537      (spacing-wishes ,grob-list? "List of note spacing or staff spacing objects.")
538      (stems ,grob-list? "list of stem objects, corresponding to the notes that the arpeggio has to be before.")
539
540
541      (left-neighbors ,grob-list? " List of
542 spacing-wish grobs that are close to the current column.
543
544 The closest spacing-wishes determine the actual distances between the
545 columns.
546 ")
547      (right-neighbors ,grob-list? "see left-neighbors")
548      (left-items ,grob-list? "")
549      (right-items ,grob-list? "")
550      (cause ,scheme? "Any kind of causation objects (i.e. music, or perhaps translator) that was the cause for this grob.  ")
551      (font ,ly:font-metric? "Cached font metric object")
552
553      (positioning-done ,boolean?
554                        "Used to signal that a positioning element
555 did it's job. This ensures that a positioning is only done once.")
556
557
558      (script-stencil ,pair? "Index code for script -- internal, see script.cc.")
559
560      (meta ,list? "Contains meta information. It is an alist with the
561 entries @code{name} and @code{interfaces}.")
562
563
564      ;; TODO: use interface for this!
565      (chord-tremolo ,boolean? "if set, this beam is a tremolo. ")
566      (begin-of-line-visible ,boolean? "Used for marking ChordNames that should only show changes.")
567      (head-pair ,pair? "Pair of grob pointers, pointing to the two heads of the tie.")
568      (quant-score ,number? "Beam quanting score -- can be stored for
569 debugging")
570      (least-squares-dy ,number? 
571                        "ideal beam slope, without damping.")
572      (ligature-primitive-callback ,procedure? "callback that brews ligature head.")
573      (stem-info ,pair? "caching of stem parameters")
574      (note-columns ,pair? "list of NoteColumn grobs.")
575
576      (if-text-padding ,number? "padding in case texts are there.")
577      (position-callbacks ,list? "list of
578 functions set spanner positions.")
579
580 ;;; Junk me, replace it by add-join.
581      (join-left-amount ,number? "")
582
583      (delta-pitch ,number? "the interval between this and the next note, or, more precisely, their vertical distance; this is used in ligatures for calculation of the height of vertical joins flexa shapes")
584      (head-width ,ly:dimension? "width of this ligature head")
585
586      ;; [TODO: change this]
587      (primitive ,integer? "Pointer to a ligature primitive, i.e. an item similar to a note head that is part of a ligature. ")
588      (stencil ,ly:stencil? "Cached output of the print-function.")
589      (de-uglify-parameters ,list? "list of 3 real constants. They
590 define the valid areas for the middle control points.  They are
591 empirical.")
592      (ideal-distances ,list? "(@var{obj} . (@var{dist} . @var{strength})) pairs.")
593      (minimum-distances ,list? "list of rods, that have the format (@var{obj} . @var{dist}).")
594
595
596      
597      )))
598
599 (define-public all-backend-properties
600   (append
601    all-internal-grob-properties
602    all-user-grob-properties))
603