|
From: | Witold Uchman |
Subject: | Global colour substitution for specific characters in lyrics |
Date: | Wed, 20 May 2020 08:41:11 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
Hello!
I am looking for a way to simplify input in a book of psalms,
namely to be able to simply put an *
in lyrics and
make the character in red.
I tried with #(add-text-replacements!
, but it only
performs simple character substitution, and I am afraid I am not
fluent enough in lilypond to create a function...
\language "deutsch"
transpozycja=c'
akordy={\chordmode{
}}
melodia={
\key d \minor
f8 g[ a] a\breve b8 a g a4\bar "|"
a\breve g8 f g[ a] g[( f e] d4)\bar "|."
}
tekst={\lyricmode{
Bo -- że, "mój Boże," szu -- kam Cie --
\markup{\concat{"bie " \with-color #(rgb-color 0.894 0.207
0.172) *}}
"i pragnie Ciebie" mo -- ja du -- sza.
_*
}}
\score { \transpose c' \transpozycja
<<
\chords { \akordy }
\relative c' { \cadenzaOn \autoBeamOff \melodia
}
\addlyrics { \set stanza = "1." \tekst }
>>
}
\layout {
\context { \Lyrics
\override LyricText.self-alignment-X =
#-1
\override StanzaNumber.font-series =
#'medium
\override StanzaNumber.color =
#(rgb-color 0.894 0.207 0.172)
\override StanzaNumber.font-size = #+1
}
\context { \ChordNames \germanChords
chordNameLowercaseMinor = ##t }
\context { \Lyrics \consists "Bar_engraver"
\consists
"Separating_line_group_engraver"
\hide BarLine }
}
Thanks for your help!
-- Witold Uchman
[Prev in Thread] | Current Thread | [Next in Thread] |