lilypond-user
[Top][All Lists]
Advanced

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

Re: Force text on line without using \textLengthOn


From: Urs Liska
Subject: Re: Force text on line without using \textLengthOn
Date: Fri, 26 Oct 2018 15:59:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi Harm


Am 26.10.2018 um 13:58 schrieb Thomas Morley:
Hi Urs,

currently I've not the time to dive deeper in your code, maybe later
today or during the upcoming weekend.
For now only about:

Am Fr., 26. Okt. 2018 um 11:54 Uhr schrieb Urs Liska <address@hidden>:
Additionally (but this is already present
in your code) when using make-with-dimensions-markup (where is this
defined? I don't find this with git grep???)

Thank you for these explanations. Without *really* understanding everything I was able to create 'make-with-empty-x-markup' that produces a markup with an empty X and the original Y extent:

%%%
#(define-markup-command (with-empty-x layout props arg)(markup?)
   "Create a markup with empty X and native Y extent."
   (let*
    ((stencil (interpret-markup layout props arg))
     (y-extent (ly:stencil-extent stencil Y)))
    (ly:stencil-outline
     stencil
     (make-filled-box-stencil '(0 . 0) y-extent))))
%%%

and replace the call with (basically)

-\tweak bound-details.left.text #(make-with-empty-x-markup txt))

This makes the problem of the vertical alignment and extent go away, but of course not the horizontal aspects.

Best
Urs



reply via email to

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