Eduard Braun wrote
Are you saying that some users make drawings in mm and expect the SVG to internally store numbers in 1/96 inches? Personally I find this a "cryptic specification users should never have to care about", not the opposite. Anyway, if it's like this, the px template should fix everything. Do people need an A4_in_px template?
It's cryptic, but it works. The default SVG user unit is 1 px, so even if I use broken software it will work, so it is a workable compromise for me to use mm in UI but store px in the SVG.
Let me understand, I'm probably missing something because all you're speaking about is already possible: just create documents in px, then you can set whatever unit you want in the GUI to work with while storing numbers in px in the SVG. I ask again: is this just a template issue?
Otherwise, are you proposing to deliberately restrict the Inkscape's implementation of SVG specifications avoiding the use of viewBox to make others' broken software work? How would you manage opening a file with a viewBox, modifying it and saving? Would you automatically strip the viewBox forcing a conversion to px of the internal numbers so others' broken software can understand it? If this is really needed I think it deserves a specific function in the program and people who count on this should learn to use the option.
Eduard Braun wrote
As users should never be required to look *inside* the SVG they will not be affected by this at all.
I wouldn't have cared about how numbers were stored inside SVG files if I hadn't found problems in my drawings, like setting precise coordinates (in mm) with guides then saving and finding different numbers after reopening. I was affected by the conversion to px happening *inside* the SVG, so I had to look.
Luca
-- Sent from: http://inkscape.13.x6.nabble.com/Inkscape-Dev-f2781808.html