diff options
-rw-r--r-- | Documentation/changes.tely | 8 | ||||
-rw-r--r-- | input/regression/id.ly | 6 | ||||
-rw-r--r-- | input/regression/output-attributes.ly | 15 |
3 files changed, 26 insertions, 3 deletions
diff --git a/Documentation/changes.tely b/Documentation/changes.tely index c9315d59da..64707801d2 100644 --- a/Documentation/changes.tely +++ b/Documentation/changes.tely @@ -62,6 +62,14 @@ which scares away people. @end ignore @item +A new @code{output-attributes} grob property is now used for svg output +instead of the @code{id} grob property. It allows multiple attributes +to be defined as an association list. For example, @code{#'((id . 123) +(class . foo) (data-whatever . @qq{bar}))} will produce the following +group tag in an SVG file: @code{<g id=@qq{123} class=@qq{foo} +data-whatever=@qq{bar}> @dots{} </g>}. + +@item Slurs and phrasing slurs may now be started from individual notes in a chord. Several simultanous slurs per @code{Voice} need to be distinguished by @code{spanner-id} setting. diff --git a/input/regression/id.ly b/input/regression/id.ly index 7595621102..ae1ac0c958 100644 --- a/input/regression/id.ly +++ b/input/regression/id.ly @@ -1,9 +1,9 @@ -\version "2.17.6" +\version "2.19.49" \header { texidoc = "Shows the id property of a grob being set. This should have -no effect in the PS backend. +no effect. " } -{ \override NoteHead.id = #"foo" c } +{ \override NoteHead.output-attributes.id = #"foo" c } diff --git a/input/regression/output-attributes.ly b/input/regression/output-attributes.ly new file mode 100644 index 0000000000..4068294066 --- /dev/null +++ b/input/regression/output-attributes.ly @@ -0,0 +1,15 @@ +\version "2.17.6" + +\header { + texidoc = "Shows the output-attributes property of a grob being set. +This should have no effect in the Postscript backend. In the SVG +backend these settings should produce this group tag: +@code{<g id=\"123\" class=\"foo\" data-whatever=\"bar\"> @dots{} </g>} +" +} + +{ + \override NoteHead.output-attributes = + #'((id . 123) (class . foo) (data-whatever . "bar")) + c +} |