- only set 'self-alignment-X from lyricMelismaAlignment if
ignoreMelismata isn't set.
--- /dev/null
+\version "2.13.2"
+
+\header {
+ texidoc = "If @code{ignoreMelismata} is set, lyrics should remain
+center-aligned.
+"
+}
+
+notes = \relative c' {
+ \time 2/4
+ \slurDashed
+ c8 e d( f)
+}
+
+lyricsI = \lyricmode {
+ \set ignoreMelismata = ##t
+ One two three four
+}
+
+lyricsII = \lyricmode {
+ One two Whee! __
+}
+
+<<
+ \new Voice = "melody" \notes
+ \new Lyrics \lyricsto "melody" \lyricsI
+ \new Lyrics \lyricsto "melody" \lyricsII
+>>
+
last_text_->set_property ("self-alignment-X", scm_from_int (LEFT));
}
else
last_text_->set_property ("self-alignment-X", scm_from_int (LEFT));
}
else
- {
- text_ = make_item ("LyricText", event_->self_scm ());
- }
+ text_ = make_item ("LyricText", event_->self_scm ());
if (scm_is_string (voice_name))
nm = ly_scm2string (voice_name);
else if (nm == "")
if (scm_is_string (voice_name))
nm = ly_scm2string (voice_name);
else if (nm == "")
else
{
ssize idx = nm.rfind ('-');
else
{
ssize idx = nm.rfind ('-');
programming_error ("busyGrobs invalid");
continue;
}
programming_error ("busyGrobs invalid");
continue;
}
if (end_mom->main_part_ > now.main_part_
&& dynamic_cast<Item *> (g)
&& Note_head::has_interface (g))
if (end_mom->main_part_ > now.main_part_
&& dynamic_cast<Item *> (g)
&& Note_head::has_interface (g))
if (text_)
{
Context *voice = get_voice_to_lyrics (context ());
if (text_)
{
Context *voice = get_voice_to_lyrics (context ());
if (voice)
{
Grob *head = get_current_note_head (voice);
if (voice)
{
Grob *head = get_current_note_head (voice);
if (head)
{
text_->set_parent (head, X_AXIS);
if (head)
{
text_->set_parent (head, X_AXIS);
- if (melisma_busy (voice))
- text_->set_property ("self-alignment-X", get_property("lyricMelismaAlignment"));
+ if (melisma_busy (voice)
+ && !to_boolean (get_property ("ignoreMelismata")))
+ text_->set_property ("self-alignment-X",
+ get_property("lyricMelismaAlignment"));
/* create */
"LyricText ",
/* create */
"LyricText ",
"lyricMelismaAlignment ",
/* write */
"lyricMelismaAlignment ",
/* write */