bug-lilypond
[Top][All Lists]

 From: Alexander Kobel Subject: Re: Add prefix to lyrics Date: Thu, 02 Sep 2010 14:06:54 +0200 User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6

[cross-posted from -user to bug-, see footnote]

On 2010-09-02 13:51, Kieren MacMillan wrote:
Wouldn't this be easier? [...]
<<
\relative { g'2 f }
\addlyrics { \override LyricText #'self-alignment-X = #0.75 "Pro - phe" --
tan }

Well, yes, but it doesn't really give the expected output, since the LyricHyphen does not use the glyph of the LyricText font, but instead a custom line markup. I never managed to understand this rationale in the first place, and there even is a note in the sources to change this behaviour. [1]

But for what is implemented now, I don't see how to do this without excessive ugly Scheme-hacking, like Neil proposed. Once I also tried to exchange the LyricHyphen stencil to mimic LyricText, but to no avail - AFAICS, the alignment of the hyphens is more or less hard-coded in the C++ part.

@ Robert:
In summary, I don't think there is an easier way. I might be wrong, though.

Cheers,
Alexander

[1]
lily/lyric-hyphen.cc: (line 555-556)
"TODO: should extract hyphen dimensions or hyphen glyph from the font."

I could not find it in the bug tracker, though, thus my cross-post to the bug- list.