implement default bridge style
This commit was merged in pull request #1479.
This commit is contained in:
@@ -29,6 +29,11 @@
|
|||||||
(if (null? stanzanumbers)
|
(if (null? stanzanumbers)
|
||||||
refString
|
refString
|
||||||
(ly:format refStringWithNumbers (string-join (map (lambda (stanzanumber) (ly:format "~a" stanzanumber)) stanzanumbers) ", ")))))
|
(ly:format refStringWithNumbers (string-join (map (lambda (stanzanumber) (ly:format "~a" stanzanumber)) stanzanumbers) ", ")))))
|
||||||
|
bridgeMarkupFormatter = #(lambda (layout props stanzanumbers)
|
||||||
|
(interpret-markup layout props
|
||||||
|
(if (null? stanzanumbers)
|
||||||
|
bridgeString
|
||||||
|
(ly:format bridgeStringWithNumbers (string-join (map (lambda (stanzanumber) (ly:format "~a" stanzanumber)) stanzanumbers) ", ")))))
|
||||||
}
|
}
|
||||||
|
|
||||||
generalLayout = \layout {
|
generalLayout = \layout {
|
||||||
@@ -176,6 +181,23 @@ ref =
|
|||||||
#}
|
#}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
bridge =
|
||||||
|
#(define-music-function (stanzanumbers lyrics) ((number-list? (list)) ly:music?)
|
||||||
|
#{ \lyricmode {
|
||||||
|
\once \override StanzaNumber.details.custom-realstanza = ##t % set this to signal that there is a real stanza and no repeat signs
|
||||||
|
\applyContext
|
||||||
|
#(lambda (context)
|
||||||
|
(handle-stanza-numbers context stanzanumbers
|
||||||
|
(lambda (numbers)
|
||||||
|
(make-on-the-fly-markup
|
||||||
|
(lambda (layout props m)
|
||||||
|
((ly:output-def-lookup layout 'bridgeMarkupFormatter) layout props numbers))
|
||||||
|
(make-null-markup)))))
|
||||||
|
#lyrics
|
||||||
|
}
|
||||||
|
#}
|
||||||
|
)
|
||||||
|
|
||||||
% prints a repStart Sign as stanza if the tag 'repeats is kept.
|
% prints a repStart Sign as stanza if the tag 'repeats is kept.
|
||||||
% if there was a stanza already set by the stanza function with StanzaNumber.details.custom-realstanza = ##t we set that also as stanza.
|
% if there was a stanza already set by the stanza function with StanzaNumber.details.custom-realstanza = ##t we set that also as stanza.
|
||||||
repStartWithTag = \lyricmode {
|
repStartWithTag = \lyricmode {
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ lyricSize = 1.6
|
|||||||
stanzaFormat = "~a."
|
stanzaFormat = "~a."
|
||||||
refString = "Ref.:"
|
refString = "Ref.:"
|
||||||
refStringWithNumbers = "Ref. ~a:"
|
refStringWithNumbers = "Ref. ~a:"
|
||||||
|
bridgeString = "Bridge:"
|
||||||
|
bridgeStringWithNumbers = "Bridge ~a:"
|
||||||
% hübsche Wiederholungszeichen für den Liedtext
|
% hübsche Wiederholungszeichen für den Liedtext
|
||||||
repStart = "𝄆"
|
repStart = "𝄆"
|
||||||
repStop = "𝄇"
|
repStop = "𝄇"
|
||||||
|
|||||||
Reference in New Issue
Block a user