[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Ligatures
From: |
Richard Shann |
Subject: |
Re: [Denemo-devel] Ligatures |
Date: |
Wed, 10 Aug 2016 16:36:59 +0100 |
On Tue, 2016-08-09 at 20:22 +0200, Andreas Schneider wrote:
> I have written the following simple scheme scripts to insert ligatures:
>
> ToggleStartLigature.scm:
> (ToggleDirective "chord" "prefix" (cons "Ligature" "(lig") "\\[ " )
> [...] What I want is
> \[ a'2( b' \]\AutoBarline
> c''2) a' \AutoEndMovementBarline
You might like to weigh up the benefits or drawbacks of using standalone
Denemo Directives instead. There is a convenience function for these as
well, something like:
(StandAloneDirectiveProto (cons "LigatureStart" "\\["))
Here is a complete example:
;;;LigatureEnd
(let ((tag "LigatureEnd"))
(StandAloneDirectiveProto (cons tag "\\] ") #f)
(d-DirectivePut-standalone-graphic tag "\n]\nDenemo\n40")
(d-DirectivePut-standalone-gy tag 10)
(d-RefreshDisplay)
(d-SetSaved #f))
I've used the graphic field to display a large (40pt) "]" character and
positioned it +10 in the y direction so that it sits on the staff
nicely.
I could put a pair of these in the Directives->Typesetter->Spanning
directory if you would like. Can you supply the "Help" text?
Richard