GNOME Bugzilla – Bug 354103
Most SVG files are not valid
Last modified: 2007-08-03 00:49:52 UTC
Please describe the problem: Most of the .svg files in the theme have problems that cause them not to be conforming SVG documents. The three main problems I found were: 1. A strange version="1" attribute on the root 'svg' element, instead of version="1.0". 2. Namespace well-formedness issues (mostly due to Adobe Illustrator metadata). 3. CSS values specified using scientific notation, which is not allowed. These problems cause the files to be unusable in certain SVG processors, such as Batik. Steps to reproduce: 1. Open gnome-themes-extras/Amaranth/icons/scalable/apps/abiword_48.svg in Batik. Actual results: 1. Invalid SVG element "sfw" error occurs. Expected results: 1. The SVG document to be rendered properly. Does this happen every time? Yes. Other information:
Created attachment 72127 [details] [review] Patch to fix problems with the .svg files. This patch fixes all problems with the .svg files, except for mimetypes/gnome-mime-image-xcf.svg, which has invalid paint server references. I am not sure what the document is meant to look like, so I can't fix this one up. I also noticed that devices/gnome-dev-removable.svg is the same as devices/gnome-dev-cdwriter.svg, which is probably not intentional.
Incidentally, the way I fixed up the namespace issues was to remove any of the Adobe Illustrator metadata elements if they would have required me looking up what namespace they should have been in. Lots of the files still have a bunch of the metadata elements (such as a:midPointStop and ns:variableSets elements and some RDF subtrees) which could be safely removed.
Created attachment 72128 [details] [review] Patch to fix problems with the .svg files Sorry, previous patch was reversed. This one should be good.
Closed because of the new rework of gnome-themes-extras