Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: scm/define-context-properties.scm

Issue 6814080: Applies scheme indentation according to the GNU guidelines (Closed) Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Patch Set: Created 12 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 ;;;; This file is part of LilyPond, the GNU music typesetter. 1 ;;;; This file is part of LilyPond, the GNU music typesetter.
2 ;;;; 2 ;;;;
3 ;;;; Copyright (C) 1998--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> 3 ;;;; Copyright (C) 1998--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;; Jan Nieuwenhuizen <janneke@gnu.org> 4 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
5 ;;;; 5 ;;;;
6 ;;;; LilyPond is free software: you can redistribute it and/or modify 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 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 8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version. 9 ;;;; (at your option) any later version.
10 ;;;; 10 ;;;;
11 ;;;; LilyPond is distributed in the hope that it will be useful, 11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of 12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;;; GNU General Public License for more details. 14 ;;;; GNU General Public License for more details.
15 ;;;; 15 ;;;;
16 ;;;; You should have received a copy of the GNU General Public License 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/>. 17 ;;;; along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
18 18
19 19
20 (define-public all-translation-properties '()) 20 (define-public all-translation-properties '())
21 21
22 (define (translator-property-description symbol type? description) 22 (define (translator-property-description symbol type? description)
23 (if (not (and 23 (if (not (and
24 » (symbol? symbol) 24 (symbol? symbol)
25 » (procedure? type?) 25 (procedure? type?)
26 » (string? description))) 26 (string? description)))
27 (throw 'init-format-error)) 27 (throw 'init-format-error))
28 28
29 29
30 (if (not (equal? #f (object-property symbol 'translation-doc))) 30 (if (not (equal? #f (object-property symbol 'translation-doc)))
31 (ly:error (_ "symbol ~S redefined" symbol))) 31 (ly:error (_ "symbol ~S redefined" symbol)))
32 32
33 (set-object-property! symbol 'translation-type? type?) 33 (set-object-property! symbol 'translation-type? type?)
34 (set-object-property! symbol 'translation-doc description) 34 (set-object-property! symbol 'translation-doc description)
35 (set! all-translation-properties (cons symbol all-translation-properties)) 35 (set! all-translation-properties (cons symbol all-translation-properties))
36 symbol) 36 symbol)
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 at this point.") 270 at this point.")
271 (forceClef ,boolean? "Show clef symbol, even if it has not 271 (forceClef ,boolean? "Show clef symbol, even if it has not
272 changed. Only active for the first clef after the property is set, not 272 changed. Only active for the first clef after the property is set, not
273 for the full staff.") 273 for the full staff.")
274 (fretLabels ,list? "A list of strings or Scheme-formatted markups 274 (fretLabels ,list? "A list of strings or Scheme-formatted markups
275 containing, in the correct order, the labels to be used for lettered 275 containing, in the correct order, the labels to be used for lettered
276 frets in tablature.") 276 frets in tablature.")
277 277
278 278
279 (glissandoMap ,list? "A map in the form of '((source1 . target1) 279 (glissandoMap ,list? "A map in the form of '((source1 . target1)
280 (source2 . target2) (sourcen . targetn)) showing the glissandi to 280 (source2 . target2) (sourcen . targetn)) showing the glissandi to
281 be drawn for note columns. The value '() will default to '((0 . 0) 281 be drawn for note columns. The value '() will default to '((0 . 0)
282 (1 . 1) (n . n)), where n is the minimal number of note-heads in 282 (1 . 1) (n . n)), wh ere n is the minimal number of note-heads in
283 the two note columns between which the glissandi occur.") 283 the two note columns between which the glissandi occur.")
284 (gridInterval ,ly:moment? "Interval for which to generate 284 (gridInterval ,ly:moment? "Interval for which to generate
285 @code{GridPoint}s.") 285 @code{GridPoint}s.")
286 286
287 287
288 (handleNegativeFrets ,symbol? "How the automatic fret calculator 288 (handleNegativeFrets ,symbol? "How the automatic fret calculator
289 should handle calculated negative frets. Values include @code{'ignore}, 289 should handle calculated negative frets. Values include @code{'ignore},
290 to leave them out of the diagram completely, @code{'include}, to include 290 to leave them out of the diagram completely, @code{'include}, to include
291 them as calculated, and @code{'recalculate}, to ignore the specified 291 them as calculated, and @code{'recalculate}, to ignore the specified
292 string and find a string where they will fit with a positive fret number.") 292 string and find a string where they will fit with a positive fret number.")
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 (internalBarNumber ,integer? "Contains the current barnumber. 325 (internalBarNumber ,integer? "Contains the current barnumber.
326 This property is used for internal timekeeping, among others by the 326 This property is used for internal timekeeping, among others by the
327 @code{Accidental_engraver}.") 327 @code{Accidental_engraver}.")
328 328
329 329
330 (keepAliveInterfaces ,list? "A list of symbols, signifying grob 330 (keepAliveInterfaces ,list? "A list of symbols, signifying grob
331 interfaces that are worth keeping a staff with @code{remove-empty} set 331 interfaces that are worth keeping a staff with @code{remove-empty} set
332 around for.") 332 around for.")
333 (keyAlterationOrder ,list? "An alist that defines in what order 333 (keyAlterationOrder ,list? "An alist that defines in what order
334 alterations should be printed. The format is @code{(@var{step} 334 alterations should be printed. The format is @code{(@var{step}
335 . @var{alter})}, where @var{step} is a number from 0 to@tie{}6 and 335 . @var{alter})}, where @var{step} is a number from 0 to@tie{}6 and
336 @var{alter} from -2 (sharp) to 2 (flat).") 336 @var{alter} from -2 (sharp) to 2 (flat).")
337 (keySignature ,list? "The current key signature. This is an alist 337 (keySignature ,list? "The current key signature. This is an alist
338 containing @code{(@var{step} . @var{alter})} or @code{((@var{octave} . 338 containing @code{(@var{step} . @var{alter})} or @code{((@var{octave} .
339 @var{step}) . @var{alter})}, where @var{step} is a number in the range 339 @var{step}) . @var{a lter})}, where @var{step} is a number in the range
340 0 to@tie{}6 and @var{alter} a fraction, denoting alteration. For 340 0 to@tie{}6 and @var{alter} a fraction, denoting alteration. For
341 alterations, use symbols, e.g. @code{keySignature = #`((6 . ,FLAT))}.") 341 alterations, use symbols, e.g. @code{keySignature = #`((6 . ,FLAT))}.")
342 342
343 343
344 (lyricMelismaAlignment ,number? "Alignment to use for a melisma syllable.") 344 (lyricMelismaAlignment ,number? "Alignment to use for a melisma syllable.")
345 345
346 346
347 (majorSevenSymbol ,markup? "How should the major 7th be formatted 347 (majorSevenSymbol ,markup? "How should the major 7th be formatted
348 in a chord name?") 348 in a chord name?")
349 (markFormatter ,procedure? "A procedure taking as arguments the 349 (markFormatter ,procedure? "A procedure taking as arguments the
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 (skipBars ,boolean? "If set to true, then skip the empty bars 460 (skipBars ,boolean? "If set to true, then skip the empty bars
461 that are produced by multimeasure notes and rests. These bars will 461 that are produced by multimeasure notes and rests. These bars will
462 not appear on the printed output. If not set (the default), 462 not appear on the printed output. If not set (the default),
463 multimeasure notes and rests expand into their full length, printing 463 multimeasure notes and rests expand into their full length, printing
464 the appropriate number of empty bars so that synchronization with other 464 the appropriate number of empty bars so that synchronization with other
465 voices is preserved. 465 voices is preserved.
466 466
467 @example 467 @example
468 @{ 468 @{
469 r1 r1*3 R1*3 469 r1 r1*3 R1*3
470 \\set Score.skipBars= ##t 470 \\set Score.skipBars= ##t
471 r1*3 R1*3 471 r1*3 R1*3
472 @} 472 @}
473 @end example") 473 @end example")
474 (skipTypesetting ,boolean? "If true, no typesetting is done, 474 (skipTypesetting ,boolean? "If true, no typesetting is done,
475 speeding up the interpretation phase. Useful for debugging large 475 speeding up the interpretation phase. Useful for debugging large
476 scores.") 476 scores.")
477 (soloIIText ,markup? "The text for the start of a solo for 477 (soloIIText ,markup? "The text for the start of a solo for
478 voice @q{two} when part-combining.") 478 voice @q{two} when part-combining.")
479 (soloText ,markup? "The text for the start of a solo when 479 (soloText ,markup? "The text for the start of a solo when
480 part-combining.") 480 part-combining.")
481 (squashedPosition ,integer? "Vertical position of squashing for 481 (squashedPosition ,integer? "Vertical position of squashing for
482 @rinternals{Pitch_squash_engraver}.") 482 @rinternals{Pitch_squash_engraver}.")
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 and subscripts. See @file{scm/@/script.scm} for more information.") 659 and subscripts. See @file{scm/@/script.scm} for more information.")
660 (slurMelismaBusy ,boolean? "Signal if a slur is present.") 660 (slurMelismaBusy ,boolean? "Signal if a slur is present.")
661 (stavesFound ,grob-list? "A list of all staff-symbols found.") 661 (stavesFound ,grob-list? "A list of all staff-symbols found.")
662 662
663 663
664 (tieMelismaBusy ,boolean? "Signal whether a tie is present.") 664 (tieMelismaBusy ,boolean? "Signal whether a tie is present.")
665 ))) 665 )))
666 666
667 (define-public all-translation-properties 667 (define-public all-translation-properties
668 (append all-user-translation-properties 668 (append all-user-translation-properties
669 » all-internal-translation-properties)) 669 all-internal-translation-properties))
670 670
671 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 671 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
672 672
673 (define-public default-melisma-properties 673 (define-public default-melisma-properties
674 '(melismaBusy slurMelismaBusy tieMelismaBusy beamMelismaBusy completionBusy)) 674 '(melismaBusy slurMelismaBusy tieMelismaBusy beamMelismaBusy completionBusy))
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b