On 3-12-2012 21:11, Martin Owens wrote:
On Mon, 2012-12-03 at 20:52 +0100, Johan Engelen wrote:
Hmm, this might bug. One example I can think of: paths with only one point do get markers rendered; does a path inherit style from its parent? Perhaps it is better to add an Inkscape-specific connector attribute?
Interestingly the SVG draft spec says that markers are desirable; although direction was a concern.
Using a different element, like the point elements from the draft, wouldn't be a problem. It's the same solution with a distinctive name.
But using a connector attribute is not good. They break the distinction between on-canvas 'things' and the properties of those things. As well as being out of scope for transformations, styles and other desirable features such as canvas points.
I actually don't understand your last paragraph, but ok :) Somehow it seems problematic to use an svg path to store Inkscape-editor data. Why not change the "<p ..." into "<inkscape:conn_point...". True it is more verbose, and you will have to add code to handle transformations etc, but it results in a cleaner SVG I think.
I guess you can move the single-point paths with the nodetool. Is that a desired feature, or a nuisance?
-Johan