LilyPondFormatManager¶
-
class
abjad.system.LilyPondFormatManager.
LilyPondFormatManager
¶ Manages LilyPond formatting logic.
Attributes Summary
align_tags
Line-breaks string
and aligns tags starting a columnn
.bundle_format_contributions
Gets all format contributions for component
.format_lilypond_attribute
Formats LilyPond attribute according to Scheme formatting conventions. format_lilypond_context_setting_in_with_block
Formats LilyPond context setting name
withvalue
in LilyPond with-block.format_lilypond_context_setting_inline
Formats LilyPond context setting name
withvalue
incontext
.format_lilypond_value
Formats LilyPond argument
according to Scheme formatting conventions.indent
left_shift_tags
Left shifts tags in strings
and realigns to columnrealign
.make_lilypond_override_string
Makes Lilypond override string. make_lilypond_revert_string
Makes LilyPond revert string. make_lilypond_tweak_string
Makes Lilypond tweak string. report_spanner_format_contributions
Reports spanner format contributions for every leaf in spanner
.tag
Tags strings
withtag
.Special methods
-
(
AbjadObject
).__format__
(format_specification='')¶ Formats Abjad object.
Set
format_specification
to''
or'storage'
. Interprets''
equal to'storage'
.Returns string.
-
(
AbjadObject
).__repr__
()¶ Gets interpreter representation of Abjad object.
Returns string.
Class & static methods
Line-breaks
string
and aligns tags starting a columnn
.Return type: str
-
static
bundle_format_contributions
(component)¶ Gets all format contributions for
component
.Return type: LilyPondFormatBundle
-
static
format_lilypond_attribute
(attribute)¶ Formats LilyPond attribute according to Scheme formatting conventions.
Return type: str
-
static
format_lilypond_context_setting_in_with_block
(name, value)¶ Formats LilyPond context setting
name
withvalue
in LilyPond with-block.Return type: str
-
static
format_lilypond_context_setting_inline
(name, value, context=None)¶ Formats LilyPond context setting
name
withvalue
incontext
.Return type: str
-
static
format_lilypond_value
(argument)¶ Formats LilyPond
argument
according to Scheme formatting conventions.Return type: str
Left shifts tags in
strings
and realigns to columnrealign
.Return type: str
-
static
make_lilypond_override_string
(grob, attribute, value, context=None, once=False)¶ Makes Lilypond override string.
Return type: str
-
static
make_lilypond_revert_string
(grob, attribute, context=None)¶ Makes LilyPond revert string.
>>> abjad.LilyPondFormatManager.make_lilypond_revert_string( ... 'glissando', ... 'bound_details__right__arrow', ... ) '\\revert Glissando.bound-details.right.arrow'
Return type: str
-
static
make_lilypond_tweak_string
(attribute, value, directed=True, grob=None)¶ Makes Lilypond tweak string.
Returns string.
Return type: str
-
static
report_spanner_format_contributions
(spanner)¶ Reports spanner format contributions for every leaf in
spanner
.>>> staff = abjad.Staff("c8 d e f") >>> spanner = abjad.Beam() >>> abjad.attach(spanner, staff[:])
>>> manager = abjad.LilyPondFormatManager >>> print(manager.report_spanner_format_contributions(spanner)) c8 abjad.LilyPondFormatBundle( after=abjad.SlotContributions( spanner_starts=['['], ), ) d8 abjad.LilyPondFormatBundle() e8 abjad.LilyPondFormatBundle() f8 abjad.LilyPondFormatBundle( after=abjad.SlotContributions( spanner_stops=[']'], ), )
Returns string or none.
Return type: str
-