lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color of hyphens when LyricText color is changed with override comma


From: David Kastrup
Subject: Re: Color of hyphens when LyricText color is changed with override command
Date: Sun, 18 Sep 2016 14:48:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Colin Tennyson <address@hidden> writes:

> In a score that I am preparing I have used the following command to change
> the color of the LyricText element:
>
> \override Lyrics.LyricText.color = #grey  
>
> I noticed that the hyphens in the LyricText were still black.
>
> It occurred to me that maybe the color of the hyphens has to be set
> separately. I started typing '\override Lyrics.Hyphen.color'  but
> Frescobaldi's syntax highlighting didn't process that, so I skipped trying
> to compilie that, and I tried:
>
> \override Lyrics.LyricText.LyricHyphen.color = #grey
>
> Frescobaldi syntax highlighting did process that, and sure enough that
> command was accepted by the Lilypond score compiler. Yay!   
> (And hurray for Frescobaldi!)
>
>
> My question is out of sheer curiosity:
> How did this situation come about?
> Surely the hyphens in the lyrics are part of the LyricText. 

No?

> Why is the color of the hyphens a separate override?

Because lyric hyphens are a different type of grob?  They are variable
in size and can shrink to nothing, and they are not considered part of a
syllable with regard to aligning to notes.

Since their behavior differs from that of LyricText, they are
implemented as a separate grob.  An override changes the actual defaults
with which grobs are created.  Those defaults are not really stored in a
database consulted independently (full disclosure: LilyPond code
actually _does_ contain this sort of database lookup independently from
actual grob creation for the grob types "System", "Beam", "SpanBarStub"
but those are very much the exception rather than the rule) but only as
defaults in the process of grob creation.

Different grob type, different override.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]