I have written the following simple scheme scripts to insert ligatures:

ToggleStartLigature.scm:
(ToggleDirective "chord" "prefix" (cons "Ligature"  "(lig") "\\[ " )

ToggleEndLigature.scm:
(ToggleDirective "chord" "postfix" (cons "Ligature"  "lig)") " \\]" )

However, they do not work as desired. In the attachment, you find a
sample file for the use. I get the Lilypond code
 a'\[ 2( b' \]\AutoBarline
 c''2) a' \AutoEndMovementBarline
which gives an error. What I want is
 \[ a'2( b' \]\AutoBarline
 c''2) a' \AutoEndMovementBarline
which compiles correctly. What is the correct version of the scripts?

Andreas

Attachment: test.denemo.bz2
Description: application/bzip

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

Reply via email to