diff options
author | Paul Morris <paulwmorris@gmail.com> | 2016-10-04 11:23:34 -0400 |
---|---|---|
committer | Paul Morris <paulwmorris@gmail.com> | 2016-10-04 11:23:34 -0400 |
commit | 03d47798d39bd9ce2a87376ea1585f1f31c1b81b (patch) | |
tree | e42c6ef6ca9c259f5746a09cc0cc9ab748cd5f96 | |
parent | 274e03cfc718e0eb7c4e1b1f58547dab65822e02 (diff) |
Issue 4974/3: edits to tests and changes.tely
-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 +} |