Skip to content

dataset export to SVG #2871

Answered by lpugin
craigsapp asked this question in Q&A
Discussion options

You must be logged in to vote

SvgDeviceContext::AppendAdditionalAttributes is for passing --svg-additional-attribute * <s>.

See in https://book.verovio.org/toolkit-reference/toolkit-options.html?q=attribute#input-and-page-layout-options:

  • Add additional attribute for graphical elements in SVG as "data-*", for example, "note@pname" would add a "data-pname" to all note elements

If you want something added to @class, then you can use the MEI @type attribute. As far as I remember, that one is always added to the SVG. The SvgDeviceContext::AppendIdAndClass is internal.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by craigsapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants