Archive for October, 2009

Inkscape and SVG

Monday, October 19th, 2009

So, being the non-artist that I am (and the rest of the ACM chapter here), I edit SVGs in vim. This makes me cringe whenever I see SVGs that have been saved with Inkscape. Inkscape likes to put weird namespaced attributes and such around the code basically duplicating whatever the standard attributes are. So the first thing I do when I get an Inkscape-generated SVG is strip the useless stuff out. Completely. I don’t know what this does for Inkscape, but seeing as it’s still standard SVG, everything should work just as intended.

Another gripe I have is that it puts everything down two levels of dereferencing. Shapes use a gradient, which is in the defs, that’s okay. But then that gradient references another gradient for its stops. Why this separation? I’ve also seen objects defined that aren’t referenced at all (I imagine gradients that were made then ditched later).

Inkscape also likes to export attributes that aren’t necessary. If the fill is none, the fill opacity, color, and rules mean nothing, so don’t bother writing it out. The id tags on objects are just numbers, making use of search necessary. Everything is put into style=”foo:bar;” instead of foo=”bar” format. I’m sure this makes parsing slightly faster, but it’s irrelevant since how many extra attributes are set (not to mention Inkscape-specific ones). It’s harder to read and edit since syntax highlighting tends to be “string blob” and not “string of key/value pairs”.

I’d like to see Inkscape have an “Export to SVG” menu option so that a nice, minimal SVG is output. Without the Inkscape-specific extensions, without the unneeded attributes, etc.

Maybe it’s just me, but anyone else do their drawings in a text editor (including, but not limited to, SVG, MetaPost, pic, TikZ)?

CPOSC Travel

Friday, October 16th, 2009

So it’s the day before CPOSC starts this year. I still have 6 hours of Greyhound travel ahead of me later today and I’m currently waiting on the dryers to finish up so that I can finish packing clothes for the weekend. Todd Zullinger and Jon Stanley will be there this year and there are plans to do a GPG signing BOF, so I’ll be expanding my WOT as well.

CPOSC 2009

Thursday, October 1st, 2009

So, I’ll be going to CPOSC 2009 this year (I was at 2008’s). I was wondering if any other Fedorans will be there. I know Yaakov Nemoy and Jon Stanley were there and I may have missed someone.