fix updown to only modify first character
This commit is contained in:
@@ -194,12 +194,14 @@ alt =
|
|||||||
|
|
||||||
updown =
|
updown =
|
||||||
#(define-music-function (parser location word) (string?)
|
#(define-music-function (parser location word) (string?)
|
||||||
|
(let ((first-char (string-take word 1))
|
||||||
|
(rest (substring word 1 (string-length word))))
|
||||||
#{
|
#{
|
||||||
\lyricmode {
|
\lyricmode {
|
||||||
\tag #'up { \markup { #(string-capitalize word) } }
|
\tag #'up { \markup { #(string-append (string-capitalize first-char) rest) } }
|
||||||
\tag #'down { \markup { #(string-downcase word) } }
|
\tag #'down { \markup { #(string-append (string-downcase first-char) rest) } }
|
||||||
}
|
}
|
||||||
#})
|
#}))
|
||||||
|
|
||||||
dottedExtender = {
|
dottedExtender = {
|
||||||
\override LyricExtender.style = #'dotted-line
|
\override LyricExtender.style = #'dotted-line
|
||||||
|
Reference in New Issue
Block a user