From 03d47798d39bd9ce2a87376ea1585f1f31c1b81b Mon Sep 17 00:00:00 2001 From: Paul Morris Date: Tue, 4 Oct 2016 11:23:34 -0400 Subject: [PATCH] Issue 4974/3: edits to tests and changes.tely --- Documentation/changes.tely | 8 ++++++++ input/regression/id.ly | 6 +++--- input/regression/output-attributes.ly | 15 +++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 input/regression/output-attributes.ly diff --git a/Documentation/changes.tely b/Documentation/changes.tely index c9315d59da..64707801d2 100644 --- a/Documentation/changes.tely +++ b/Documentation/changes.tely @@ -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{ @dots{} }. + @item Slurs and phrasing slurs may now be started from individual notes in a chord. Several simultanous slurs per @code{Voice} need to be 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{ @dots{} } +" +} + +{ + \override NoteHead.output-attributes = + #'((id . 123) (class . foo) (data-whatever . "bar")) + c +} -- 2.39.2