]> git.donarmstrong.com Git - lilypond.git/blob - scm/backend-property.scm
release: 1.3.112
[lilypond.git] / scm / backend-property.scm
1 (define all-backend-properties '())
2
3 (define (elt-property-description symbol type? description)
4   (set-object-property! symbol 'backend-type? type?)
5   (set-object-property! symbol 'backend-doc description)
6   (set! all-backend-properties (cons symbol all-backend-properties))
7   )
8
9
10   
11 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
13 (elt-property-description 'X-extent-callback procedure? "procedure taking an element and axis argument, returning a number-pair. The return value is the extent of the element.")
14 (elt-property-description 'X-offset-callbacks list? "list of functions, each taking an element and axis argument. The function determine the position relative to this element's parent. The last one in the list is called first")
15 (elt-property-description 'Y-extent-callback procedure? "see @code{X-extent-callback}")
16 (elt-property-description 'Y-offset-callbacks list? "see @code{X-offset-callbacks}")
17 (elt-property-description 'after-line-breaking-callback procedure? "Procedure taking graphical element as argument.
18 This procedure is called (using dependency resolution) after line breaking. Return value is ignored")
19 (elt-property-description 'align number? "the alignment of the text, 0 is horizontal, 1 is vertical")
20 (elt-property-description 'align-dir dir? "Which side to align? -1: left side, 0: around center of width, 1: right side")
21 (elt-property-description 'alignment-done boolean? "boolean to administrate whether we've done the alignment already (to ensure that the process is done only once)")
22 (elt-property-description 'all-elements list? "list of all score elements in this line. Needed for protecting elements from GC.")
23 (elt-property-description 'arch-angle number? "")
24 (elt-property-description 'arch-height number? "")
25 (elt-property-description 'arch-thick number? "")
26 (elt-property-description 'arch-width number? "")
27 (elt-property-description 'arithmetic-basicspace number? "")
28 (elt-property-description 'arithmetic-multiplier number? "see arithmetic-basicspace")
29 (elt-property-description 'attachment pair? "cons of symbols, '(LEFT-TYPE . RIGHT-TYPE), where both types may be alongside-stem, stem, head or loose-end")
30 (elt-property-description 'attachment-offset pair? "cons of offsets, '(LEFT-offset . RIGHT-offset).  This offset is added to the attachments to prevent ugly slurs.")
31 (elt-property-description 'axes list? "list of axis numbers. Should contain only one number.")
32 (elt-property-description 'axes list? "list of axis (number) in which this group works")
33 (elt-property-description 'bar-size number? "")
34 (elt-property-description 'bars list? "list of barline ptrs.")
35 (elt-property-description 'barsize-procedure procedure? "how to compute the size of a bar line")
36 (elt-property-description 'bass list? " musical-pitch, optional")
37 (elt-property-description 'beam ly-grob? "pointer to the beam, if applicable")
38 (elt-property-description 'beam-space-function procedure? "function returning space given multiplicity")
39 (elt-property-description 'beam-space-function procedure? "function returning space given multiplicity")
40 (elt-property-description 'beam-thickness number? "thickness, measured in staffspace")
41 (elt-property-description 'beam-thickness number? "thickness, measured in staffspace")
42 (elt-property-description 'beam-width number? "width of the tremolo sign")
43 (elt-property-description 'beam-width number? "width of the tremolo sign")
44 (elt-property-description 'beamed-lengths list? "list of stem lengths given beam multiplicity ")
45 (elt-property-description 'beamed-minimum-lengths list? "list of minimum stem lengths given beam multiplicity")
46 (elt-property-description 'beamed-stem-shorten number? "shorten beamed stems in forced direction")
47 (elt-property-description 'beaming number-pair? "number of beams extending to left and right")
48 (elt-property-description 'beams list? "list of beam ptrs.")
49 (elt-property-description '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.")
50 (elt-property-description 'before-grace-spacing-factor number? " stretch space this much if there are grace notes before the column")
51 (elt-property-description 'before-line-breaking-callback procedure? "Procedure taking graphical element as argument.
52 This procedure is called (using dependency resolution) before line breaking, but after generating discretionary items. Return value is ignored")
53 (elt-property-description 'before-musical-spacing-factor number? "space before musical columns (eg. taken by accidentals) get this much
54 stretched when they follow a musical column, in absence of grace
55 notes.  0.0 means no extra space (accidentals are ignored)")
56 (elt-property-description 'between-system-string string? "string
57  to dump between two systems. Useful for forcing pagebreaks")
58 (elt-property-description 'bounded-by-me list? "list of spanners that have this
59 column as start/begin point. Only columns that have elements or act as bounds are spaced.")
60 (elt-property-description 'bracket-thick number? "")
61 (elt-property-description 'bracket-width number? "")
62 (elt-property-description 'break-align-symbol symbol? "the index in the spacing table (symbol) of the to be aligned item.")
63 (elt-property-description 'break-glyph-function procedure? "function taking glyph and break-direction, returning the glyph at a line break")
64 (elt-property-description 'breakable boolean? "boolean indicating if this is a breakable item (clef, barline, key sig, etc.)")
65 (elt-property-description 'c0-position integer? "integer indicating the position of central C")
66
67 (elt-property-description 'center-element ly-grob? "element which will
68 be at the center of the group after aligning (when using
69 Align_interface::center_on_element). ")
70
71 (elt-property-description 'collapse-height number? "")
72 (elt-property-description 'column-space-strength number? "relative strength of space following breakable columns (eg. prefatory matter)")
73 (elt-property-description 'columns list? "list of paper-columns")
74 (elt-property-description 'columns list? " list of note-columns.")
75 (elt-property-description 'columns list? "list of all paper columns")
76 (elt-property-description 'contains-grace boolean? "Used to widen entries for grace notes.")
77 (elt-property-description 'control-points list? "List of 4 offsets (number-pairs) controlling the tie shape")
78 (elt-property-description 'control-points list? "[internal] control points of bezier curve")
79 (elt-property-description 'damping integer? "amount of beam slope damping should beam slope be damped? 0: no, 1: yes, 100000: horizontal beams ")
80 (elt-property-description 'damping number? "damping factor.")
81 (elt-property-description 'dash-length number? "the length of a dash")
82 (elt-property-description 'dash-period number? "the length of one dash + white space")
83 (elt-property-description 'dashed number? "[FIXME: use dash-period/dash length; see text-spanner] number representing the length of the dashes.")
84 (elt-property-description 'de-uglify-parameters list? "list of 3 real constants. They define the valid areas for the middle control points. Used in de_uglyfy. They are a bit empirical.")
85 (elt-property-description 'default-neutral-direction dir? "Where to go if we're in the middle of the staff")
86 (elt-property-description 'default-neutral-direction dir? "which
87 direction to choose if we're in the middle of the staff ")
88 (elt-property-description 'delta-y number? "amount of ascension")
89 (elt-property-description 'dependencies list? "list of score-element pointers that indicate who to compute first for certain global passes")
90 (elt-property-description 'details list? "alist of parameters for the curve shape")
91 (elt-property-description 'details list? "alist containing contaning a few magic constants.")
92 (elt-property-description 'dir-forced boolean? "set if direction has been forced; read by Beam.")
93 (elt-property-description 'dir-function procedure? "function of type (count total)->direction.  Default value: beam-dir-majority, also available: beam-dir-mean, beam-dir-median.")
94 (elt-property-description 'dir-list list? "list of stem directions, needed for optical spacing correction.")
95 (elt-property-description 'direction dir? "up or down, left or right?")
96 (elt-property-description 'direction-source ly-grob? "in case side-relative-direction is set, which element  to get the direction from ")
97 (elt-property-description 'dot ly-grob? "reference to Dots object.")
98 (elt-property-description 'dot-count integer? "number of dots")
99 (elt-property-description 'duration-log integer? "2-log of the notehead duration")
100 (elt-property-description 'duration-log integer? "log of the duration, ie. 0=whole note, 1 = half note, etc.")
101 (elt-property-description 'edge-height pair? "a cons that specifies the heights of the vertical egdes '(LEFT-height . RIGHT-height)")
102 (elt-property-description 'edge-text pair? "a cons that specifies the texts to be set at the edges '(LEFT-text . RIGHT-text)")
103 (elt-property-description 'elements list? " -- list of items.")
104 (elt-property-description 'elements list? "list of elements (NoteColumn,
105 generally) participating in the collision. The
106 @code{rest-collision} property in @code{elements} is set
107 to a pointer to the collision")
108 (elt-property-description 'elements list? "to be aligned elements ")
109 (elt-property-description 'expand-limit integer? "maximum number of measures expanded in church rests")
110 (elt-property-description 'extra-extent-X number-pair? "enlarge in X dimension by this much, measured in staff space")
111 (elt-property-description 'extra-extent-Y number-pair? "see @code{extra-extent-Y}")
112 (elt-property-description 'extra-offset number-pair? "pair of reals (a cons) forcing an extra offset   before outputting")
113 (elt-property-description 'extra-space number-pair? "pair of distances")
114 (elt-property-description 'extra-space number-pair? "(cons LEFT RIGHT)")
115 (elt-property-description 'extremity-offset-alist list? "an alist (attachment stem-dir*dir slur-dir*dir) -> offset.  The offset adds to the centre of the notehead, or stem.")
116
117 (elt-property-description 'extremity-rules list? "an alist (procedure
118 slur dir) -> attachment to determine the attachment (see above).  If
119 procedure returns #t, attachment is used.  Otherwise, the next
120 procedure is tried.")
121 (elt-property-description 'flag-style string? "")
122 (elt-property-description 'flag-width-function procedure? "")
123 (elt-property-description 'font-family symbol? "partial font
124 definition: music roman braces dynamic math ...")
125 (elt-property-description 'font-name symbol? "partial font definition:
126 base name of font file FIXME: should override other partials")
127 (elt-property-description 'font-point-size number? "partial font definition: exact font size in points FIXME: should override font-relative-size")
128 (elt-property-description 'font-relative-size number? "partial font definition: the relative size, 0 is style-sheet's normal size, -1 is smaller, +1 is bigger")
129 (elt-property-description 'font-relative-size integer? "")
130 (elt-property-description 'font-series symbol? "partial font definition: medium, bold")
131 (elt-property-description 'font-shape symbol? "partial font definition: upright or italic")
132
133 (elt-property-description 'font-style symbol? "a precooked set of font
134 definitions, eg. finger volta timesig mark script large Large
135 dynamic")
136
137 (elt-property-description 'force-hshift number? "amount of
138 collision_note_width that overides automatic collision settings. This
139 is used by @ref{note-collision-interface}")
140
141 (elt-property-description 'fraction number-pair? "")
142 (elt-property-description 'full-size-change boolean? "if set, don't make a change clef smaller.")
143
144 (elt-property-description 'glyph symbol? "a string determining what (style) of  glyph is typeset. Valid choices depend on the function that is reading this property. ")
145 (elt-property-description 'glyph-name string? "a name of character within font")
146
147 (elt-property-description 'grow-direction dir? "crescendo or decrescendo?")
148 (elt-property-description 'hair-thickness number? "thickness, measured in stafflinethickness")
149 (elt-property-description 'heads pair? "pair of element pointers, pointing to the two heads of the  tie. ")
150 (elt-property-description 'heads list? "list of note heads")
151 (elt-property-description 'height number? "in staffspace ")
152 (elt-property-description 'height-quants procedure? "function of type (beam staff-line-thickness) -> list of quants.  Default value: default-beam-dy-quants.
153 ")
154 (elt-property-description 'horizontal-shift integer? "integer that identifies ranking of note-column for horizontal shifting. This is used by @ref{note-collision-interface}")
155 (elt-property-description 'horizontal-space number? "amount of space to add after a note (in staff-space)")
156 (elt-property-description 'ideal-distances list? "(OBJ . (DIST . STRENGTH)) pairs")
157 (elt-property-description 'interfaces list? "list of symbols indicating the interfaces supported by this object. Is initialized from the @code{meta} field.")
158 (elt-property-description 'inversion list? " musical-pitch, optional")
159 (elt-property-description 'items-worth-living list? "list of interesting items. If empty in a particular system, clear that system.")
160 (elt-property-description 'kern number? "amount of extra white space to add before text.  This is `relative'(?) to the current alignment.")
161 (elt-property-description 'kern number? "space after a thick line")
162 (elt-property-description 'left-padding number? "space left of accs")
163 (elt-property-description 'lengths list? "Stem length given multiplicity of flag")
164 (elt-property-description 'line-count integer? "Number of staff lines")
165 (elt-property-description 'line-thickness number? "the thickness[stafflinethickness] of the line")
166 (elt-property-description 'lookup symbol? "lookup method: 'value for plain text, 'name for character-name")
167 (elt-property-description 'magnify number? "the magnification factor.  FIXME: doesn't work for feta fonts")
168 (elt-property-description 'maximum-duration-for-spacing moment? "space as if a duration of this type is available in this measure.")
169 (elt-property-description 'maximum-rest-count integer? "kill off rests so we don't more than this number left.")
170 (elt-property-description 'merge-differently-dotted boolean? " Merge noteheads in collisions, even if they have a different number of dots. This normal notation for some types of polyphonic music. The value of this setting is used by @ref{note-collision-interface} ")
171 (elt-property-description 'minimum-distance number? "minimum distance between notes and rests.")
172 (elt-property-description 'minimum-distances list? "list of rods (ie. (OBJ . DIST) pairs)")
173 (elt-property-description 'minimum-extent-X number-pair? "minimum size in X dimension, measured in staff space")
174 (elt-property-description 'minimum-extent-Y number-pair? "see @code{minimum-extent-Y}")
175 (elt-property-description 'minimum-length number? "minimum length in staffspace")
176
177 (elt-property-description 'minimum-length number? "try to make the
178 hyphens at least this long. Also works as a scaling parameter for the
179 length")
180
181 ;; FIXME.
182 (elt-property-description 'minimum-space number-pair? "(cons LEFT RIGHT)")
183 (elt-property-description 'minimum-space number? "minimum distance that the victim should move (after padding)")
184
185
186 (elt-property-description 'minimum-width number? "minimum-width of rest symbol, in staffspace")
187 (elt-property-description 'molecule-callback procedure? "Function taking graphical element as argument, returning a Scheme encoded Molecule.")
188 (elt-property-description 'new-accidentals list? "list of (pitch, accidental) pairs")
189 (elt-property-description 'no-spacing-rods boolean? "read from elements: boolean that makes Separation_item ignore this item (MOVE ME TO ITEM)")
190 (elt-property-description 'non-default boolean? "not set because of existence of a bar?")
191 (elt-property-description 'note-width 'number? "unit for horizontal translation, measured in staff-space.")
192 (elt-property-description 'number-gap number? "")
193 (elt-property-description 'old-accidentals list? "list of (pitch, accidental) pairs")
194 (elt-property-description 'origin ly-input-location? "location in input file of the definition")
195 (elt-property-description 'outer-stem-length-limit number? "catch
196 suspect beam slopes, set slope to zero if outer stem is lengthened
197 more than this (in staffspace)")
198
199 (elt-property-description 'padding number? "add this much extra space between objects that are next to each other")
200
201 (elt-property-description 'parallel-beam boolean? "internal: true if there is a beam just as wide as the bracket ")
202 (elt-property-description 'pitches list? "list of musical-pitch")
203 (elt-property-description 'raise number? "height for text to be raised (a negative value lowers the text")
204 (elt-property-description 'right-padding number? "space right of accs")
205 (elt-property-description 'right-trim-amount number? "")
206 (elt-property-description 'script-priority number? "A sorting key that determines in what order a script is within a stack of scripts")
207 (elt-property-description 'self-alignment-X number? "real number: -1 =
208 left aligned, 0 = center, 1 right-aligned in X direction.
209
210  Set to an element pointer, if you want that element to be the center.
211 In this case, the center element should have this object as a
212 reference point.
213 ")
214 (elt-property-description 'self-alignment-Y number? "like self-alignment-X but for Y axis")
215 (elt-property-description 'shortest-playing-duration moment? "duration of the shortest playing in that column.")
216 (elt-property-description 'shortest-starter-duration moment? "duration of the shortest notes that starts exactly in this column.")
217 (elt-property-description 'side-relative-direction dir? "if set: get the direction from a different object, and multiply by this.")
218 (elt-property-description 'side-support list? "the support, a list of score elements")
219 (elt-property-description 'slope-limit number? "set slope to zero if slope is running away steeper than this.")
220 (elt-property-description 'space-function procedure? "function of type multiplicity -> real (in staffspace)")
221 (elt-property-description 'spacing-procedure procedure? "procedure
222 taking graphical element as argument. This is called after
223 before-line-breaking-callback, but before the actual line breaking
224 itself.  Return value is ignored")
225 (elt-property-description 'stacking-dir dir? "stack contents of elements in which direction ?")
226 (elt-property-description 'staff-space number? "Amount of line leading relative to global staffspace")
227 (elt-property-description 'staffline-clearance number? "don't get closer than this to stafflines.")
228 (elt-property-description 'stem ly-grob? "pointer to the stem object.")
229 (elt-property-description 'stem ly-grob? "pointer to Stem object")
230 (elt-property-description 'stem-centered boolean? "Center stems on note heads. Useful for mensural notation")
231 (elt-property-description 'stem-end-position number? "Where does the stem end (the end is opposite to the support-head")
232 (elt-property-description 'stem-length number? "length of stem")
233 (elt-property-description 'stem-shorten list? "shorten stems in forced directions given flag multiplicity")
234 (elt-property-description 'stem-spacing-correction number? "optical correction amount.")
235 (elt-property-description 'stems list? "list of stem objects, corresponding to the notes that the arpeggio has to be before.")
236 (elt-property-description 'stretch-distance number-pair? "pair of distances")
237 (elt-property-description 'style symbol? "a string determining what style of  glyph is typeset. Valid choices depend on the function that is reading this property. ")
238 (elt-property-description 'support-head ly-grob? "the note head at
239 one end of the stem")
240 (elt-property-description 'text markup? "
241 Scheme markup text.  It is defined as follows:
242
243 @example
244
245 TEXT : STRING | (MARKUP SENTENCE)
246 MARKUP: PROPERTY | ABBREV
247 SENTENCE: TEXT | SENTENCE TEXT
248 PROPERTY: (key . value)
249 ABBREV: rows lines roman music bold italic named super sub text, or any font-style
250
251 @end example
252
253 So, TEXT is either a string, or a list of which the CAR is a MARKUP.
254 MARKUP is either a CONS: an element property '(key . value) or a symbol:
255 a predefined abbreviation for a list of element properties.
256
257
258 The following abbreviations are currently defined:
259 @table @samp
260 @item rows
261 horizontal mode: set all text on one line (default)
262 @item lines
263  vertical mode: set every text on new line
264 @item roman
265  select roman font
266 @item music
267  select feta font
268 @item bold
269  select bold series
270 @item italic
271  select italic shape
272 @item named
273  lookup by character name
274 @item text
275  plain text lookup (by character value)
276 @item super
277  superscript
278 @item sub
279  subscript
280 @item any font-style
281  finger volta timesig mmrest mark script large Large dynamic
282 @end table
283 ")
284 (elt-property-description 'thick number? "thickness, in stafflinethickness")
285 (elt-property-description 'thick-thickness number? "thickness, measured in stafflinethickness")
286 (elt-property-description 'thickness number? "thickness, measured in stafflinethickness")
287 (elt-property-description 'thin-kern number? "space after a hair-line")
288 (elt-property-description 'threshold number-pair? "(cons MIN MAX), where MIN and MAX are dimensions in staffspace")
289 (elt-property-description 'transparent boolean? "This is almost the
290 same as setting molecule-callback to #f, but this retains the
291 dimensions of this element, which means that you can erase elements
292 individually. ")
293 (elt-property-description 'tuplet-bracket-visibility boolean-or-symbol? "
294 This controls the visibility of the tuplet bracket.
295 Setting it to false will prevent printing of the
296 bracket. Setting the property to #'if-no-beam will make it
297 print only if there is no beam associated with this tuplet bracket.")
298 (elt-property-description 'tuplet-number-visibility boolean-or-symbol? "
299 Like @code{tuplet-bracket-visibility}, but for the number.")
300 (elt-property-description 'type symbol? "one of: line, dashed-line or dotted-line")
301 (elt-property-description 'vertical-position-quant-function procedure? "
302 function of type (beam multiplicity dy staff-line-thickness) -> real.  Default value: default-beam-y-quants, also available: beam-traditional-y-quants.
303 ")
304 (elt-property-description 'visibility-lambda procedure? "a function that takes the break direction and returns a  cons of booleans containing (TRANSPARENT . EMPTY)")
305 (elt-property-description 'when moment? "when does this column happen?")
306 (elt-property-description 'word-space number? "elongate left by this much (FIXME: cumbersome semantics)")
307 (elt-property-description 'x-gap number? "horizontal gap between notehead and tie")
308 (elt-property-description 'y-free number? "minimal vertical gap between slur and noteheads or stems")
309 (elt-property-description 'y-position number? "position of left edge")