From: Han-Wen Nienhuys Date: Sun, 29 Jul 2007 17:30:36 +0000 (-0700) Subject: add lyricMelismaAlignment property for softcoding syllable alignment X-Git-Tag: release/2.11.30-1~15^2~1^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f2c4fc35bd651d25bbaca77f32f30807fd7e03ba;p=lilypond.git add lyricMelismaAlignment property for softcoding syllable alignment on melisma starts. --- diff --git a/lily/lyric-engraver.cc b/lily/lyric-engraver.cc index ae0464f97d..88b954f4fa 100644 --- a/lily/lyric-engraver.cc +++ b/lily/lyric-engraver.cc @@ -151,7 +151,7 @@ Lyric_engraver::stop_translation_timestep () { text_->set_parent (head, X_AXIS); if (melisma_busy (voice)) - text_->set_property ("self-alignment-X", scm_from_int (LEFT)); + text_->set_property ("self-alignment-X", get_property("lyricMelismaAlignment")); } else { @@ -169,5 +169,5 @@ Lyric_engraver::stop_translation_timestep () ADD_TRANSLATOR (Lyric_engraver, /* doc */ "", /* create */ "LyricText", - /* read */ "", + /* read */ "lyricMelismaAlignment", /* write */ ""); diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly index e99697a4d4..58ce25960a 100644 --- a/ly/engraver-init.ly +++ b/ly/engraver-init.ly @@ -537,6 +537,7 @@ automatically when an output definition (a @code{\score} or stringNumberOrientations = #'(up down) strokeFingerOrientations = #'(right) + lyricMelismaAlignment = #LEFT markFormatter = #format-mark-letters rehearsalMark = #1 subdivideBeams = ##f diff --git a/scm/define-context-properties.scm b/scm/define-context-properties.scm index fd840c0457..a2069f65fb 100644 --- a/scm/define-context-properties.scm +++ b/scm/define-context-properties.scm @@ -279,6 +279,7 @@ containing @code{(@var{step} . @var{alter})} or @code{((@var{octave} . 0 to@tie{}6 and @var{alter} a fraction, denoting alteration. For alterations, use symbols, e.g. @code{keySignature = #`((6 . ,FLAT))}.") + (lyricMelismaAlignment ,ly:dir? "Alignment to use for a melisma syllable.") (majorSevenSymbol ,markup? "How should the major 7th be formatted in a chord name?")