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

Side by Side Diff: ly/engraver-init.ly

Issue 7261: * Allow for nested contexts of any depth. (Closed)
Patch Set: Created 15 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
« lily/context-def.cc ('K') | « lily/include/context-def.hh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 \version "2.10.0" 1 \version "2.10.0"
2 2
3 \context { 3 \context {
4 \name "Global" 4 \name "Global"
5 5
6 \accepts "Score" 6 \accepts "Score"
7 7
8 \defaultchild "Score" 8 \defaultchild "Score"
9 \description "Hard coded entry point for LilyPond. Cannot be tuned." 9 \description "Hard coded entry point for LilyPond. Cannot be tuned."
10 \grobdescriptions #all-grob-descriptions 10 \grobdescriptions #all-grob-descriptions
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 \defaultchild "DrumVoice" 99 \defaultchild "DrumVoice"
100 100
101 clefGlyph = #"clefs.percussion" 101 clefGlyph = #"clefs.percussion"
102 clefPosition = #0 102 clefPosition = #0
103 \override Script #'staff-padding = #0.75· 103 \override Script #'staff-padding = #0.75·
104 } 104 }
105 105
106 106
107 \context { 107 \context {
108 \type "Engraver_group" 108 \type "Engraver_group"
109 \name "InnerChoirStaff" 109 \name "ChoirStaff"
hanwenn 2008/10/08 03:40:33 make convert rule for this too.
110 \consists "System_start_delimiter_engraver" 110 \consists "System_start_delimiter_engraver"
111 systemStartDelimiter = #'SystemStartBracket 111 systemStartDelimiter = #'SystemStartBracket
112 vocalName = #'() 112 vocalName = #'()
113 shortVocalName = #'() 113 shortVocalName = #'()
114 114
115 \accepts "Staff" 115 \accepts "Staff"
116 \accepts "DrumStaff" 116 \accepts "DrumStaff"
117 \accepts "RhythmicStaff" 117 \accepts "RhythmicStaff"
118 \accepts "GrandStaff" 118 \accepts "GrandStaff"
119 \accepts "PianoStaff" 119 \accepts "PianoStaff"
120 \accepts "Lyrics" 120 \accepts "Lyrics"
121 \accepts "ChordNames" 121 \accepts "ChordNames"
122 \accepts "ChoirStaff"
123 \accepts "StaffGroup"
122 \defaultchild "Staff" 124 \defaultchild "Staff"
123 }
124
125 \context {
126 \InnerChoirStaff
127 \name ChoirStaff
128 ··
129 \defaultchild "Staff"
130 \accepts "InnerChoirStaff"
131 \accepts "InnerStaffGroup"
132 \description "Identical to @code{StaffGroup} except that the 125 \description "Identical to @code{StaffGroup} except that the
133 contained staves are not connected vertically." 126 contained staves are not connected vertically."
134
135 } 127 }
136 128
137 \context{ 129 \context{
138 \type "Engraver_group" 130 \type "Engraver_group"
139 ·· 131 ··
140 \override VerticalAxisGroup #'minimum-Y-extent = ##f 132 \override VerticalAxisGroup #'minimum-Y-extent = ##f
141 localKeySignature = #'() 133 localKeySignature = #'()
142 createSpacing = ##t 134 createSpacing = ##t
143 135
144 squashedPosition = #0 136 squashedPosition = #0
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 instrument names at the start of each system." 299 instrument names at the start of each system."
308 300
309 \consists "Instrument_name_engraver" 301 \consists "Instrument_name_engraver"
310 ·· 302 ··
311 instrumentName = #'() 303 instrumentName = #'()
312 shortInstrumentName = #'() 304 shortInstrumentName = #'()
313 } 305 }
314 306
315 \context { 307 \context {
316 \type "Engraver_group" 308 \type "Engraver_group"
317 \name InnerStaffGroup 309 \name "StaffGroup"
318 310
319 \consists "Span_bar_engraver" 311 \consists "Span_bar_engraver"
320 \consists "Span_arpeggio_engraver" 312 \consists "Span_arpeggio_engraver"
321 \consists "Output_property_engraver"·· 313 \consists "Output_property_engraver"··
322 systemStartDelimiter = #'SystemStartBracket 314 systemStartDelimiter = #'SystemStartBracket
323 315
324 \consists "System_start_delimiter_engraver" 316 \consists "System_start_delimiter_engraver"
325 317
326 \defaultchild "Staff" 318 \defaultchild "Staff"
327 \accepts "Staff" 319 \accepts "Staff"
328 \accepts "RhythmicStaff" 320 \accepts "RhythmicStaff"
329 \accepts "DrumStaff" 321 \accepts "DrumStaff"
330 \accepts "GrandStaff" 322 \accepts "GrandStaff"
331 \accepts "PianoStaff" 323 \accepts "PianoStaff"
332 \accepts "TabStaff"··· 324 \accepts "TabStaff"···
333 \accepts "Lyrics" 325 \accepts "Lyrics"
334 \accepts "ChordNames" 326 \accepts "ChordNames"
335 } 327 \accepts "FiguredBass"
336 328 \accepts "ChoirStaff"
337 \context { 329 \accepts "StaffGroup"
338 \InnerStaffGroup
339 \name StaffGroup
340 ·· 330 ··
341 \description "Groups staves while adding a bracket on the left 331 \description "Groups staves while adding a bracket on the left
342 side, grouping the staves together. The bar lines of the contained 332 side, grouping the staves together. The bar lines of the contained
343 staves are connected vertically. @code{StaffGroup} only consists of 333 staves are connected vertically. @code{StaffGroup} only consists of
344 a collection of staves, with a bracket in front and spanning bar lines." 334 a collection of staves, with a bracket in front and spanning bar lines."
345 ··
346 \accepts "InnerChoirStaff"
347 \accepts "ChoirStaff"
348 \accepts "InnerStaffGroup"
349 \accepts "FiguredBass"
350 } 335 }
351 336
352
353 \context{ 337 \context{
354 \type "Engraver_group" 338 \type "Engraver_group"
355 \override VerticalAxisGroup #'minimum-Y-extent = #'(-0.75 . 2.0) 339 \override VerticalAxisGroup #'minimum-Y-extent = #'(-0.75 . 2.0)
356 340
357 \description "Corresponds to a voice with lyrics. Handles the 341 \description "Corresponds to a voice with lyrics. Handles the
358 printing of a single line of lyrics." 342 printing of a single line of lyrics."
359 ·· 343 ··
360 \name "Lyrics" 344 \name "Lyrics"
361 instrumentName = #'() 345 instrumentName = #'()
362 shortInstrumentName = #'() 346 shortInstrumentName = #'()
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 printKeyCancellation = ##f 897 printKeyCancellation = ##f
914 } 898 }
915 899
916 900
917 RemoveEmptyRhythmicStaffContext= \context { 901 RemoveEmptyRhythmicStaffContext= \context {
918 \RhythmicStaff 902 \RhythmicStaff
919 \remove "Axis_group_engraver" 903 \remove "Axis_group_engraver"
920 \override VerticalAxisGroup #'remove-empty = ##t 904 \override VerticalAxisGroup #'remove-empty = ##t
921 \consists "Hara_kiri_engraver" 905 \consists "Hara_kiri_engraver"
922 } 906 }
OLDNEW
« lily/context-def.cc ('K') | « lily/include/context-def.hh ('k') | no next file » | no next file with comments »

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