[Clipart] Re: SVG::Metadata and inkscape

Alberto Simões hashashin at gmail.com
Wed Aug 4 01:52:54 PDT 2004


> > 2. it would be nice to save the svg file after adding a keyword (or
> > other metadata)
> 
> Not certain what you mean here...?

I mean, I would like to say:

$svg = new SVG::Metadata;
$svg->parse("file.svg");

$svg->addkeyword("foo");
$svg->save;

And, get the file.svg file modified with that new keyword.


> > 3. tried to use inkscape to add metadata... how do I add more than one
> > keyword? Tried 'transport, roadtravel' but then, SVG::Metadata says:
> > Can't use string ("transport, roadtravel") as a HASH ref while "strict
> > refs" in use at /usr/lib/perl5/site_perl/5.8.5/SVG/Metadata.pm line
> > 310.
> 
> Yeah, the proper way to add keywords is as 'bags' rather as
> comma-separated lists.  Send an email to kees at outflux dot net about
> this; it's something that'll take a bit more work.

OK, sending :)
> 
> > To help me adding keywords on all OCAL svg files, it would be nice to
> > have '2' or '3' working :-) I would prefer '2', but I don't know if it
> > is harder or not.
> 
> If what you need is an example, here is one:
> 
> <dc:subject>
>   <rdf:Bag>
>     <rdf:li>transport</rdf:li>
>     <rdf:li>roadtravel</rdf:li>
>   </rdf:Bag>
> </dc:subject>
> 

Ok, an example can help me. But to have a save method on SVG::metadata
would be cool :)


Hugs
Alberto

> Bryce
> 


-- 
Alberto Simões



More information about the clipart mailing list