2013/3/21 Johan Engelen <jbc.engelen@...2592...>:
On 21-3-2013 16:40, Tavmjong Bah wrote:
Would this be a good GSOC project?
Oof, to me this sounds like the worst GSoC project imaginable! ;-)
+1
I increasingly think the whole model of separate SP and XML trees might need a rework. The main result of the current approach is that higher-level code still manipulates XML directly and listens to XML change notifications (bad thing).
Maybe the correct solution is to - make the SP tree objects implement the XML tree interfaces, preferably via protected inheritance to prevent higher-level code from mucking with them. - provide enough information about SVG structure to the XML tree that it can be type-aware (e.g. CSS information would be stored as parsed CSS, not as strings; images embedded in data URIs would be stored as decoded PNG / JPEG data, not as a base64 encoded string)
The loss of precision mentioned by Jasper is actually something we need to keep, because otherwise the document would change slightly when reloaded. (Either that or always write out numbers with full precision.)
Regards, Krzysztof