Don't center on X-parent when there is no notehead. Fixes weird
spacing with wide Paper Columns due to long textscripts.
--- /dev/null
+\header {
+ texidoc ="lyric syllables without note attachment are
+not centered; Centering may cause unintended effects when
+the papercolumn is very wide."
+ }
+
+\layout{
+ ragged-right = ##t
+}
+
+\version "2.10.7"
+<<
+ \new Staff \relative c' {
+ \key aes \major
+ \context Voice = "1" {
+ f8 f
+ \emptyText
+
+ f^"xxxxxxxxxxxxxxxxxxxxxxxxxx" f
+ }
+ }
+ \new Lyrics \lyricmode {
+ \skip 8
+ \skip 8
+ x8
+ x8
+ }
+>>
#include "context.hh"
#include "engraver.hh"
-#include "font-metric.hh"
#include "item.hh"
-#include "multi-measure-rest.hh"
#include "note-head.hh"
-#include "rest.hh"
#include "stream-event.hh"
+#include "international.hh"
#include "translator.icc"
if (melisma_busy (voice))
text_->set_property ("self-alignment-X", scm_from_int (LEFT));
}
+ else
+ {
+ text_->warning (_ ("Lyric syllable does not have note. Use \\lyricsto or associatedVoice."));
+ text_->set_property ("X-offset", scm_from_int (0));
+ }
}
last_text_ = text_;