Closed th-we closed 9 months ago
@ahankinson please have a look and merge.
It looks fine, but I can’t really find a description of how it’s supposed to be used?
@ahankinson Do you mean how to use the substitutions in Sibelius? If you edit this text block in the test file:
the editable text looks like this:
The actual Text
and TextWithFormattingAsString
properties do not include the part after the "=" sign, they look like this:
Text: Bold \$TITLE\ Italic \$Subtitle\ underlined \$dedication\
TextWithFormattingAsString: Bold \B\\$TITLE\\n\\b\Italic \I\\$Subtitle\\n\\i\\U\underlined \$dedication\
Editing the part after "=" will actually modify the referenced metadata propery.
Not sure if this answers your question.
Anything I should do on this PR?
Turns out that the text substitution syntax is case-insensitive, i.e. we can use any of
\$Title\
,\$TITLE\
,\$title\
,\$TiTlE\
and so on. I updated the test file to use different variants.