padding for stop tags and refactoring
This commit is contained in:
@@ -222,7 +222,7 @@ repStopWithTag = \lyricmode {
|
|||||||
\tag #'repeats {
|
\tag #'repeats {
|
||||||
\once \override StanzaNumber.font-series = #'normal
|
\once \override StanzaNumber.font-series = #'normal
|
||||||
\once \override StanzaNumber.direction = 1
|
\once \override StanzaNumber.direction = 1
|
||||||
\set stanza = \markup { \repStop }
|
\set stanza = \markup { \pad-x-right #1 \repStop }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -203,23 +203,9 @@
|
|||||||
|
|
||||||
#(define-markup-command (pad-left layout props amount arg)
|
#(define-markup-command (pad-left layout props amount arg)
|
||||||
(number? markup?)
|
(number? markup?)
|
||||||
(let* ((m (interpret-markup layout props arg))
|
|
||||||
(x (ly:stencil-extent m X))
|
|
||||||
(y (ly:stencil-extent m Y)))
|
|
||||||
(ly:stencil-translate
|
(ly:stencil-translate
|
||||||
(ly:make-stencil (ly:stencil-expr m)
|
(interpret-markup layout props (make-pad-x-left-markup amount arg))
|
||||||
(cons (- (car x) amount) (cdr x))
|
`(,amount . 0)))
|
||||||
y)
|
|
||||||
`(,amount . 0))))
|
|
||||||
|
|
||||||
#(define-markup-command (pad-right layout props amount arg)
|
|
||||||
(number? markup?)
|
|
||||||
(let* ((m (interpret-markup layout props arg))
|
|
||||||
(x (ly:stencil-extent m X))
|
|
||||||
(y (ly:stencil-extent m Y)))
|
|
||||||
(ly:make-stencil (ly:stencil-expr m)
|
|
||||||
(cons (car x) (+ (cdr x) amount))
|
|
||||||
y)))
|
|
||||||
|
|
||||||
#(define-markup-command (score-equal-height-with-indents layout props lines)
|
#(define-markup-command (score-equal-height-with-indents layout props lines)
|
||||||
(markup-list?)
|
(markup-list?)
|
||||||
@@ -250,7 +236,7 @@
|
|||||||
(let ((text (ly:grob-property grob 'text)))
|
(let ((text (ly:grob-property grob 'text)))
|
||||||
|
|
||||||
(grob-interpret-markup grob (if (string? text)
|
(grob-interpret-markup grob (if (string? text)
|
||||||
(make-pad-right-markup -0.1 (make-tied-lyric-markup text))
|
(make-pad-x-right-markup -0.1 (make-tied-lyric-markup text))
|
||||||
text))))
|
text))))
|
||||||
|
|
||||||
Chord_lyrics_spacing_engraver =
|
Chord_lyrics_spacing_engraver =
|
||||||
|
|||||||
Reference in New Issue
Block a user