lilypond-user
[Top][All Lists]
Advanced

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

Re: Box around multiple markups


From: David Nalesnik
Subject: Re: Box around multiple markups
Date: Fri, 25 Sep 2015 18:25:12 -0500

Hi,

On Fri, Sep 25, 2015 at 5:58 PM, Klaus Blum <address@hidden> wrote:
Hi Urs,

the only thing I can offer is to use HorizontalBracket and replace its
stencil by a box as shown in
http://lsr.di.unimi.it/LSR/Item?id=1000

You could adapt ("coopt") an existing engraver, or ...  (see below) 



Two drawbacks:
1. I don't know how to simulate dashed lines.

Dashed lines may now (as of 2.19.27) be created using the function ly:line-interface::line.  This takes a grob argument from which it extracts layout information.  So you'd just override the 'style property. Dashed lines would be the default.
 
To do what you want, it would be best of course to have a new grob.

Defining new grobs has no user interface at the moment.  There is a regression text, input/regression/scheme-text-spanner.ly which does define one in an LY file.

I modeled the attached after that.  I've got the dashed boxes.  I didn't tackle the bracket-with-inner-prong(s)--maybe someone would like to give it a go?

The two solid lines surrounding the single text might be done by overriding the TextScript stencil.  (Though perhaps you want the flexibility to group multiple texts?  Properties might be added to our new grob to hide faces of the box.)

Hope this helps...

David

P. S.  I notice the invocation of lilypond-book at the top.  This file will raise problems if it is run on a batch of files.  The only way to do this right is to define the grob in the orthodox way.  (Since I know you work with self-compiled master, you could extract the relevant info and stick it in the appropriate files. Let me know if you want more info.)

%%%%%%%%%%%%%%%%%%%%%%%%%%%

Attachment: dispo-satz-1.ly
Description: Text Data


reply via email to

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