On Tue, 2016-08-09 at 22:15 +0200, Andreas Schneider wrote:
> Thank you. I changed the scripts to
> 
> (ToggleDirective "chord" "prefix" (cons "ToggleStartLigature"  "(lig")
> "\\[ " )
> (d-DirectivePut-chord-override "ToggleStartLigature" DENEMO_OVERRIDE_AFFIX)
> 

It occurred to me after writing, I think you can pass the override in to
the ToggleDirective procedure, I would need to look up the definition
(in actions/denemo.scm or more likely actions/denemo-modules/xxx.scm)
but it would be something like

(ToggleDirective "chord" "prefix" (cons "ToggleStartLigature"  "(lig" 
DENEMO_OVERRIDE_AFFIX)

I think there's another optional parameter to say whether the cursor
should move right after executing it...

Richard



> and
> 
> (ToggleDirective "chord" "postfix" (cons "ToggleEndLigature"  "lig)") "
> \\]" )
> 
> Now everything seems to work, including for different note lengths
> (thanks for noting the need to test that).
> 
> Andreas
> 
> _______________________________________________
> Denemo-devel mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/denemo-devel



_______________________________________________
Denemo-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/denemo-devel

Reply via email to