fix updown to only modify first character

This commit is contained in:
2025-08-10 18:46:25 +02:00
parent 9fb2d96765
commit 45e751fa24

View File

@@ -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