|
NAMEsvg_annotate - Adds RDF metadata to an SVG file. This script scans files and directories for SVG files and if they lack embedded RDF metadata, inserts it.SYNOPSISsvg_annotate [OPTIONS] [file1[, file2]] [subdir1[, subdir2...]]-V, --version Displays version info for the script -h, --help This help screen -D, --debug=N Reports debugging info (1=sparse, 3=tons) -a, --author=s Name of the author to use in the RDF -o, --owner=s Name of the owner to use in the RDF -l, --license=s License URL to use in the RDF -t, --title=s Title string to use in the RDF --delete Removes the RDF section(s) from the SVG file(s) DESCRIPTIONThis script uses SVG::Metadata to annotate RDF metadata to one or more SVG files. It checks to be sure the file does not already contain an RDF section (in which case it skips the file), and if not, places an RDF section at the end of the file, just before the closing </svg> tag.The purpose of this script is to enable artists with large collections of images to quickly and easily annotate entire trees of files with metadata. The main aim of this is to assist the artists of the Open Clip Art Library (http://www.openclipart.org). EXAMPLESAnnotate all the items in or under the current directory, with da Vinci as the artist. By default, license is Public Domain, and for 'my_file.svg', title is set to "Leonardo da Vinci - my_file":svg_annotate -a 'Leonardo da Vinci' . Add RDF with specified author, license, and title for the SVG files in the current directory: svg_annotate *.svg \ -a 'Leonardo da Vinci' \ -l 'http://creativecommons.org/licenses/GPL/2.0/' \ -t 'Mona Lisa (<FILENAME>)' svg_annotate allows several fill-ins to be used in the title field: <FILENAME> - the full filename of the file <FILEBASE> - the basename of the filename (the part before the extension) <FILEEXT> - the extension of the filename (usually always svg) <DIR> - the directory path to the file <AUTHOR> - the name of the author of the file <OWNER> - the name of the owner of the file <KEYWORDS> - the keywords for the file <LOCALTIME> - the current date and time <GMTIME> - the current date and time in Coordinated Universal Time (UTC) format It is also possible to delete the RDF from one or more files, using the "--delete" flag. For instance: svg_annotate --delete *.svg This will work recursively into any directories specified on the commandline, working on any *.svg files it finds in the indicated directory tree. E.g.: svg_annotate --delete my_svg_files/ OPTIONS
PREREQUISITESPod::Usage, Getopt::Long, File::Basename, File::Copy, File::Find, File::Path, File::Spec, XML::Twig, SVG::MetadataCOREQUISITESNoneSCRIPT CATEGORIESText Processing::Filters UtilitiesBUGSFor licenses other than Public Domain, it screws up the Rights section.SEE ALSOSVG::Metadata, inkscape, XML::TwigAUTHORBryce Harrington <bryce@bryceharrington.org><http://www.bryceharrington.org/> COPYRIGHTCopyright (C) 2004 Bryce Harrington. All Rights Reserved.This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |