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