W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2010

Gzipped svg files in the local filesystem

From: Erik Dahlstrom <ed@opera.com>
Date: Sun, 07 Nov 2010 16:58:39 +0100
To: "public-svg-wg@w3.org" <public-svg-wg@w3.org>
Message-ID: <op.vls5b1ecgeuyw5@anon-143-150.ipredate.net>
Hello svg-wg,

I've been looking at the 1.1 and 1.2T specifications for conformance  
criteria for svg viewer UA:s in particular when encountering an *.svgz  
file in the local filesystem. I can't find a requirement for such files to  
be displayed - surely the intention isn't that such files must cause an  
error message to appear in the UA?

Reading [1] it seems clear that *.svgz files don't fulfill the  
requirements for being a "conforming standalone svg stand-alone file".  
Should there be a similar conformance class for svgz files (along with  
clear requirements for displaying such files), or is wasting diskspace  
considered to be a good thing? Incidentally it would also mean that e.g  
Inkscape and Illustrator are not "Conforming SVG Generators".

Here's my proposed new wording (to be added to the confomance criteria  
appendix):

[[ Conforming Compressed SVG Stand-Alone Files

A file is a Conforming Compressed SVG Stand-Alone File if:
- the first bytes of the file are 0x1F8b (the fixed ID1 and ID2 fields  
 from the gzip file format header, as defined in RFC1952),
- the file extension is "svgz",
- the decompressed contents of the file fulfills all the requirements for  
"Conforming SVG Stand-Alone Files".
]]

and changing G.6 to be:

[[ Conforming SVG Generators

A Conforming SVG Generator is a program which:
- always creates at least one of Conforming SVG Document Fragments,  
Conforming Compressed SVG Stand-Alone Files or Conforming SVG Stand-Alone  
Files.
- does not create non-conforming SVG document fragments of any of the  
above types.
]]

Finally add a clause that requires either "Conforming SVG Interpreters" or  
"Conforming SVG Viewers" to support "Conforming Compressed SVG Stand-Alone  
Files".

Cheers
/Erik

[1] http://www.w3.org/TR/SVG11/conform.html#ConformingSVGStandAloneFiles

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Sunday, 7 November 2010 15:59:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 7 November 2010 15:59:17 GMT