lilypond-user
[Top][All Lists]
Advanced

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

Re: overriding text alignment in stylesheet


From: Mats Bengtsson
Subject: Re: overriding text alignment in stylesheet
Date: Tue, 01 Apr 2008 17:25:09 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)



Kieren MacMillan wrote:

or
\set Staff.instrumentName = \markup{\column {Violoncello "e Basso" }}

That's what I'd prefer.
Then I don't understand your question. What's the problem you get when you
use this approach?
Actually, what I'd *really* prefer is

    \set Staff.instrumentName = "Violoncello e Basso"

and then have the stylesheet wrap the text automatically -- but that seems like it would likely be too difficult and error-prone.
It should be possible to write a few lines of Scheme code that do the equivalent
of \markup{\wordwrap ... } and then feed the result to
ly:system-start-text::print. Then, you can override the stencil property of
InstrumentName to use that function instead.

  /Mats

Cheers,
Kieren.

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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