]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grob-interfaces.scm
Merge branch 'translation' into staging
[lilypond.git] / scm / define-grob-interfaces.scm
1 ;;;; This file is part of LilyPond, the GNU music typesetter.
2 ;;;;
3 ;;;; Copyright (C) 1998--2012  Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
5 ;;;;
6 ;;;; LilyPond is free software: you can redistribute it and/or modify
7 ;;;; it under the terms of the GNU General Public License as published by
8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version.
10 ;;;;
11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ;;;; GNU General Public License for more details.
15 ;;;;
16 ;;;; You should have received a copy of the GNU General Public License
17 ;;;; along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18
19
20 ;; The interfaces defined here generally have no code (e.g.,
21 ;; dynamic-interface), or have callbacks defined entirely in
22 ;; scheme.  Others interfaces are defined in lily/*.cc with the
23 ;; ADD_INTERFACE function.
24
25 ;; should include default value?
26
27
28 (ly:add-interface
29  'accidental-suggestion-interface
30  "An accidental, printed as a suggestion (typically: vertically over a
31 note)."
32  '())
33
34 (ly:add-interface
35  'ambitus-interface
36  "The line between note heads for a pitch range."
37  '(gap note-heads thickness))
38
39 (ly:add-interface
40  'bar-line-interface
41  "Print a special bar symbol.  It replaces the regular bar
42 symbol with a special symbol.  The argument @var{bartype}
43 is a string which specifies the kind of bar line to print.
44
45 The list of allowed glyphs and predefined bar lines can be
46 found in @file{scm/bar-line.scm}.
47
48 @code{gap} is used for the gaps in dashed bar lines."
49  '(allow-span-bar bar-extent gap glyph glyph-name has-span-bar
50    hair-thickness kern rounded thin-kern thick-thickness))
51
52 (ly:add-interface
53  'bass-figure-interface
54  "A bass figure text."
55  '(implicit))
56
57 (ly:add-interface
58  'bass-figure-alignment-interface
59  "Align a bass figure."
60  '())
61
62 (ly:add-interface
63  'bend-after-interface
64  "A doit or drop."
65  '(thickness delta-position))
66
67 (ly:add-interface
68  'dynamic-interface
69  "Any kind of loudness sign."
70  '())
71
72 (ly:add-interface
73  'dynamic-line-spanner-interface
74  "Dynamic line spanner."
75  '(avoid-slur))
76
77 (ly:add-interface
78  'dynamic-text-interface
79  "An absolute text dynamic."
80  '(right-padding))
81
82 (ly:add-interface
83  'dynamic-text-spanner-interface
84  "Dynamic text spanner."
85  '(text))
86
87 (ly:add-interface
88  'episema-interface
89  "An episema line."
90  '())
91
92 (ly:add-interface
93  'finger-interface
94  "A fingering instruction."
95  '())
96
97 (ly:add-interface
98  'footnote-interface
99  "Make a footnote."
100  '(automatically-numbered
101    footnote
102    footnote-text
103    numbering-assertion-function))
104
105 (ly:add-interface
106  'footnote-spanner-interface
107  "Make a footnote spanner."
108  '(footnote-text spanner-placement))
109
110 (ly:add-interface
111  'fret-diagram-interface
112  "A fret diagram"
113  '(align-dir fret-diagram-details size dot-placement-list
114    thickness))
115
116 (ly:add-interface
117   'glissando-interface
118   "A glissando."
119   '(glissando-index))
120
121 (ly:add-interface
122  'grace-spacing-interface
123  "Keep track of durations in a run of grace notes."
124  '(columns common-shortest-duration))
125
126 (ly:add-interface
127  'inline-accidental-interface
128  "An inlined accidental (i.e. normal accidentals, cautionary
129 accidentals)."
130  '())
131
132 (ly:add-interface
133  'instrument-specific-markup-interface
134  "Instrument-specific markup (like fret boards or harp pedal diagrams)."
135  '(fret-diagram-details graphical harp-pedal-details size thickness))
136
137 (ly:add-interface
138  'key-cancellation-interface
139  "A key cancellation."
140  '())
141
142 (ly:add-interface
143  'ligature-head-interface
144  "A note head that can become part of a ligature."
145  '())
146
147 (ly:add-interface
148  'ligature-bracket-interface
149  "A bracket indicating a ligature in the original edition."
150  '(width thickness height))
151
152 (ly:add-interface
153  'ligature-interface
154  "A ligature."
155  '())
156
157 (ly:add-interface
158  'lyric-interface
159  "Any object that is related to lyrics."
160  '())
161
162 (ly:add-interface
163  'lyric-syllable-interface
164  "A single piece of lyrics."
165  '())
166
167 (ly:add-interface
168  'mark-interface
169  "A rehearsal mark."
170  '())
171
172 (ly:add-interface
173  'metronome-mark-interface
174  "A metronome mark."
175  '())
176
177 (ly:add-interface
178  'multi-measure-interface
179  "Multi measure rest, and the text or number that is printed over it."
180  '(bound-padding))
181
182 (ly:add-interface
183  'note-name-interface
184  "Note names."
185  '())
186
187 (ly:add-interface
188  'octavate-eight-interface
189   "Interface that permits the nominal identification of the octavian
190 annotation that multiplies by two the freqency of the pitches present
191 in a given staff were they played on a clef that lacked said octavian
192 annotation."
193   '())
194
195 (ly:add-interface
196  'only-prebreak-interface
197  "Kill this grob after the line breaking process."
198  '())
199
200 (ly:add-interface
201  'parentheses-interface
202  "Parentheses for other objects."
203  '(padding stencils))
204
205 (ly:add-interface
206  'percent-repeat-interface
207  "Beat, Double and single measure repeats."
208  '(dot-negative-kern slash-negative-kern slope thickness))
209
210 (ly:add-interface
211  'piano-pedal-interface
212  "A piano pedal sign."
213  '())
214
215 (ly:add-interface
216  'piano-pedal-script-interface
217  "A piano pedal sign, fixed size."
218  '())
219
220 (ly:add-interface
221  'pitched-trill-interface
222  "A note head to indicate trill pitches."
223  '(accidental-grob))
224
225 (ly:add-interface
226  'rhythmic-grob-interface
227  "Any object with a duration.  Used to determine which grobs are
228 interesting enough to maintain a hara-kiri staff."
229  '())
230
231 (ly:add-interface
232  'spacing-options-interface
233  "Supports setting of spacing variables."
234  '(spacing-increment shortest-duration-space))
235
236 (ly:add-interface
237  'span-bar-interface
238  "A bar line that is spanned between other barlines.
239   This interface is used for bar lines that connect different
240   staves."
241  '(glyph-name elements pure-Y-common pure-relevant-grobs
242    pure-relevant-items pure-relevant-spanners))
243
244 (ly:add-interface
245  'stanza-number-interface
246  "A stanza number, to be put in from of a lyrics line."
247  '())
248
249 (ly:add-interface
250  'string-number-interface
251  "A string number instruction."
252  '())
253
254 (ly:add-interface
255  'stroke-finger-interface
256  "A right hand finger instruction."
257  '(digit-names))
258
259 (ly:add-interface
260  'system-start-text-interface
261  "Text in front of the system."
262  '(long-text self-alignment-X self-alignment-Y text))
263
264 (ly:add-interface
265  'tab-note-head-interface
266  "A note head in tablature."
267  '(details display-cautionary span-start))
268
269 (ly:add-interface
270  'trill-spanner-interface
271  "A trill spanner."
272  '())
273
274 (ly:add-interface
275  'trill-pitch-accidental-interface
276  "An accidental for trill pitch."
277  '())
278
279 (ly:add-interface
280  'unbreakable-spanner-interface
281  "A spanner that should not be broken across line breaks.  Override
282 with @code{breakable=##t}."
283  '(breakable))
284
285 (ly:add-interface
286  'volta-interface
287  "A volta repeat."
288  '())