[Clipart] Problems with svg_annotate

Bryce Harrington bryce at bryceharrington.com
Tue Sep 28 13:04:20 PDT 2004


On Tue, 28 Sep 2004, Nicu Buculei wrote:
> Christian Fredrik Kalager Schaller wrote:
> > I have been trying to test the svg_annotate script by running the
> > following command:
> > svg_annotate --title=Canada_Yukon yukon.svg
> > Processing file 'yukon.svg'
> > 
> > Problem is that it seems to have no effect, I can't find the title
> > inside the SVG and running ls -la shows me nothing happened to the file:
> > 
> > ls -la yukon.svg*
> > -rw-rw-r--  1 cschalle cschalle 54567 Sep 28 10:57 yukon.svg
> > -rw-rw-r--  1 cschalle cschalle 54567 Sep 27 20:03 yukon.svg.orig
> > 
> > Any suggestions?
> 
> can you check if the file already contain a metadata section?
> 
> i can reproduce your problem with a file newly created in Inkscape 0.40 
> (which contains some metadata by default).
> after deleting manually metadata, svg_annotate will work.
> 
> also, using svg_annotate --delete (which is supposed to remove metadata) 
> does not produce anything
> 
> probably is a bug in SVG::Metadata.
> Bryce?

Dunno, I haven't had time to look at SVG::Metadata in a while...  i've
got a couple patches submitted against it (thanks!) but I don't think
they address that issue.  

What we really need is an editing capability, but this'll be different
because different programs produce svg metadata in different ways.  I
think we'll need to parse the full SVG XML into a tree and then do some
smart searching to extract, change, and re-save the metadata from the
tree.  (Currently it has an svg metadata template that it prints into the
file, but that's only really useful if the svg has no metadata already.)

Bryce



More information about the clipart mailing list