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

Reply via email to