lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Metadata in svg output


From: Stuart Pullinger
Subject: Re: Metadata in svg output
Date: Mon, 12 Mar 2007 18:23:21 +0000
User-agent: KMail/1.9.6

I apologise. This should have gone to the lilypond-devel list.
Please ignore.

Stuart

On Monday 12 March 2007 16:56:42 Stuart Pullinger wrote:
> Hi,
>
> I am writing an application to take the results of musical performance
> analysis and plot them above the score produced by Lilypond. I need to be
> able to trace which graphic elements in the svg file relate to which notes
> in the input file. Using svg also allows a certain amount of interactivity
> in the display which would be more difficult to achieve with ps/pdf.
>
> Would it be possible to add support for metadata tags in Lilypond's svg
> output? An example:
>
> % lilypond file
> {
> c' \svgmetadata {mynamespace notestarttime 0.12345}
> }
> % end
>
> <!-- xml snippet !-->
> <g
>     transform="translate(22.9263719527559, 18.8286614173228)">
>     <text
>         style="font-family:Emmentaler;
>             font-style:20;
>             font-size:4.0;
>             text-anchor:west;"
>         fill="currentColor">
>         <tspan>
>             <metadata>
>                 <mynamespace:notestarttime>
>                 0.12345
>                 </mynamespace:notestarttime>
>             </metadata>
>             &#xe127;
>         </tspan>
>     </text>
> </g>
>    
> NB: According to the w3c SVG 1.1 spec
> (http://www.w3.org/TR/SVG11/metadata.html):
> "The contents of the 'metadata' should be elements from other XML
> namespaces."
>
> Thanks,
> Stuart
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user






reply via email to

[Prev in Thread] Current Thread [Next in Thread]