[cc-devel] Extracting Embedded Licenses
Jason Kivlighn
jkivlighn at gmail.com
Mon Jun 18 15:49:22 EDT 2007
Hi,
imagemagick: Uses 'convert filename xmp:-' to output an image's embedded
XMP. This works for at least JPEG and TIFF files. For JPEGs, however,
Imagemagick outputs the namespace and XMP, seperated by \0. I'm not
sure how I can handle this, without simply assuming that 'convert'
returned two null-terminated strings. Nevertheless, this extracts the
XMP from TIFF files.
msoffice: Extends the msoffice extractor to also parse the
DocumentSummeryInformation infile, which contains user-defined metadata,
along with license metadata embedded by the MSOffice Creative Commons Add-in
pdf: Extends the pdf extractor to read a PDF's metadata stream and parse
it as XMP. I'm still awaiting poppler extending the glib bindings to
allow reading the metadata stream. Until then, it will simply never
find the metadata stream and go on without error.
png: Adds a check for the XML:com:adobe:xmp iTXt field, and parses it as
XMP.
html: Adds a new html parser using libxml2. Parses the document,
checking for RDFa licenses. It also checks for other basic HTML
properties like title and author.
There's also several XML formats I'd like to parse for license data,
particularly SVG and SMIL. Would this be do-able, and if so, how should
I go about it? Write new extractors for each format or is this too much
overhead? These could use GMarkupParse, rather than bringing in libxml2
like the HTML parser.
Cheers,
Jason
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tracker-imagemagick-extract-xmp.patch
Url: http://lists.ibiblio.org/pipermail/cc-devel/attachments/20070618/6a83a38d/attachment.bat
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tracker-msoffice-extract-license.patch
Url: http://lists.ibiblio.org/pipermail/cc-devel/attachments/20070618/6a83a38d/attachment-0001.bat
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tracker-pdf-extract-xmp.patch
Url: http://lists.ibiblio.org/pipermail/cc-devel/attachments/20070618/6a83a38d/attachment-0002.bat
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tracker-png-extract-xmp.patch
Url: http://lists.ibiblio.org/pipermail/cc-devel/attachments/20070618/6a83a38d/attachment-0003.bat
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tracker-extract-html.patch
Url: http://lists.ibiblio.org/pipermail/cc-devel/attachments/20070618/6a83a38d/attachment-0004.bat
More information about the cc-devel
mailing list