]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4974/3: edits to tests and changes.tely
authorPaul Morris <paulwmorris@gmail.com>
Tue, 4 Oct 2016 15:23:34 +0000 (11:23 -0400)
committerPaul Morris <paulwmorris@gmail.com>
Tue, 4 Oct 2016 15:23:34 +0000 (11:23 -0400)
Documentation/changes.tely
input/regression/id.ly
input/regression/output-attributes.ly [new file with mode: 0644]

index c9315d59da68d24aa633bbc5c0e0fa2c70039d3c..64707801d2c6cf9913948c66efe1b8c34956074d 100644 (file)
@@ -61,6 +61,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
index 7595621102681f613dd1181ab397beb47e229be9..ae1ac0c9580d49c84aa11ff141054fd1a81c7dba 100644 (file)
@@ -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 (file)
index 0000000..4068294
--- /dev/null
@@ -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
+}