denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Buttons & Scheme to enable middle of Measure split on


From: Richard Shann
Subject: Re: [Denemo-devel] Buttons & Scheme to enable middle of Measure split on print.
Date: Wed, 08 Feb 2017 15:35:09 +0000

On Wed, 2017-02-08 at 15:27 +0000, Richard Shann wrote:
> On Wed, 2017-02-08 at 14:53 +0000, Joe Wilkinson wrote:
> > 
> > On 08/02/2017 14:23, Richard Shann wrote:
> > > On Wed, 2017-02-08 at 13:55 +0000, Joe Wilkinson wrote:
> > >> Hi Richard.
> > >>
> > >> As suggested I have created a button in a MyPalette to inset both the
> > >> AllowLineBreak and LineBreak Directives to be inserted as one.
> > >>
> > >> Two issues, neither desperately important:
> > >>
> > >> 1 Is there any way of suppressing the window telling me that the Line
> > >> Break will not work (!)
> > > You need to insert the AllowLineBreak first, then the LineBreak does not
> > > complain (in fact, it does not complain if there is *any* directive at
> > > the cursor, since it cannot tell what that directive might do)
> > I did. The AllowLineBreak code was before the (single line) LineBreak code.
[...]
> > (d-DirectivePut-standalone-postfix "AllowLineBreak" "\\bar \"\"")
> > (d-RefreshDisplay)
> 
> 
> > (d-MoveCursorRight)
> 
> 
> this is your problem, it is moving the cursor right, off the
> AllowLineBreak directive. If you delete that all will be well.
> 
> > (d-LineBreak)

Having said that, I'm not sure how you got there - all you needed was to
record the two commands into the Scheme Window in the right order, and
you end up with this:


(d-AllowLineBreak)
(d-LineBreak)


And that does work, however as you noticed you have a lot of tedious
stuff asking about conditional behavior.
Once that enhancement is in you will be able to use

(d-AllowLineBreak 'noninteractive)
(d-LineBreak 'noninteractive)

to avoid the questions. You can use this form now, but it won't do
anything special yet.

Richard





reply via email to

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