lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hspace behaviour


From: Javier Ruiz
Subject: Re: hspace behaviour
Date: Sun, 27 Jan 2013 20:48:18 -0800 (PST)

(no response requested)

Sample lilypond documentation referencing use of negative hspace:
http://lilypond.org/doc/v2.17/Documentation/snippets/expressive-marks#expressive-marks-creating-a-delayed-turn
Intrestingly...the case above continues to work in 2.16.1...maybe as there are no colliding objects?

However, another application I had to show fingering for trills no longer displays as it did in 2.14.2:
\markup{\finger{ \concat{ "2" \hspace #-0.5 \char ##x2040 \hspace #-0.5 "1"}}}
Characters are concatenated, but negative \hspace no longer causes the (desired) partial overlap.

Now using this alternative approximate the result:

#(define-markup-command (up-tied-lyric layout props a b)
  (markup? markup?)
  (let*
          ((tie-str (ly:wide-char->utf-8 #x2040))
           (joined  (list-join `(,a ,b) tie-str))
           (join-stencil (interpret-markup layout props tie-str))
           )

        (interpret-markup layout
                          (prepend-alist-chain
                           'word-space
                           (/ (interval-length (ly:stencil-extent join-stencil X)) -2.5)
                           props)
                          (make-line-markup joined))))
                              
\markup{\up-tied-lyric \finger 2 \finger 1}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]