Pim Snel wrote:
Op donderdag 1 december 2005 03:14, schreef aaron@...749...:
Works great on WinXP! One little quirk I noticed is that if an image is included in the svg twice it gets into the archive twice. This isn't fatal because it still works, but could increase the size significantly. NSS can be removed from the script because I moved it to inkex. I can do this for you before I commit it. Does anyone think it would be useful to save the files in a directory inside of the archive so that they stick together when unarchiving? And what about an identical extension for plain SVG, since people have expressed concerns about distributing files with local paths?
Please make the improvements you think are needed. If we had an open zip extension we are complete.
Pim
Has anyone looked at the Inkjar code and how Inkview uses it? It has been in the code base for over a year, and seems to be very similar to other jar formats, like for Java or OpenDocument. Basically a zip of file + resources and a manifest. It would be great if Inkview could read the files that Inkscape makes.
src/inkjar/jar/cpp src/inkview.cpp
Also, if we are maybe (slowly) moving toward using URI's instead of file names, then there would be the JAR URL spec:
http://java.sun.com/j2se/1.5.0/docs/guide/jar/index.html (ignore the 'Java' part, it's a general-purpose format now)
...that we could use to specify URIs of resources within zips, the same as any other files. And xlink: paths would follow the rules for absolute or relative URIs.
bob