
khiraly wrote:
On p, 2008-01-18 at 19:09 -0800, Tom Davidson wrote:
This issue is in the tracker at https://bugs.launchpad.net/inkscape/+bug/168753. If anyone comes up with workarounds please post them there...
Yes the one part of the problem is written there.
But the biggest problem not. Inkscape does handle the unit in px despite is it specified in mm, and misinterpretes the file (L 20 40mm L 10 20 -> L 20 40 M 10 20) which is not only affect the size of the object, but actually modify it!
"L 20 40mm L 10 20" is invalid SVG. The <path /> d attribute IS specified in px (meaning svg user space units not pixels). Please confer with the grammar in the SVG specification:
http://www.w3.org/TR/SVG/paths.html#PathDataBNF
If you want to use another coordinate system for px you need to use one of the SVG methods for altering the coordinate system: transform or, more likely, viewBox. Please confer with the discussion of Coordinate Systems, Transformations and Units in the SVG spec for details:
http://www.w3.org/TR/SVG/coords.html
My understanding is that you must specify the width and height of your document in real world units and adjust the user space coordinate system to match. For example:
<svg width="20mm" height="45mm" viewBox="0 0 20 45" />
I don't know if you will be able to flip your coordinate system with the viewBox attribute (i.e. viewBox="0 45 20 0").
I'm sure altering Inkscape to work better with other coordinate systems would be welcome.
Someone please speak up if I've gotten this all wrong. :-)
Aaron Spike