On Tue, 2014-10-07 at 17:09 +0200, su_v wrote:
On 2014-10-07 15:56 , Tavmjong Bah wrote:
On Tue, 2014-10-07 at 06:51 -0700, alvinpenner wrote:
Hi, not sure how come you need to change the id, is the default
<sodipodi:namedview id="base">
not acceptable?
That is not the issue... that was simply a test. I want to change other things such as inkscape:document-units, inkscape:cx, etc.
Changing namedview attributes seems to fail for others too - see e.g. comment here: https://code.google.com/p/eggbotcode/source/browse/trunk/inkscape_contribute...
Changing current layer via namedview attribute has been implemented (not without regressions): https://bugs.launchpad.net/inkscape/+bug/789122 but I can't find other reports about modifying namedview attributes via extension scripts in the bug tracker. I vaguley recall having seen questions about this before (apart from the eggbot maze extension) - a quick web search e.g. turns up this one: http://www.inkscapeforum.com/viewtopic.php?f=34&t=16505 (no reply or solution though)
I've reached my maximum limit of debugging frustration. Deleting sodipodi:namedview as is done for all other elements results in crashes at various places. The code to skip deleting namedview predates the move to bzr. Why is sodipodi:namedview special?
For the moment, I changed the code to simply copy the attributes in namedview.
Code checked into 'experimental' branch. I also updated empty_page.py to generate proper 'viewBox' attributes as well as 'inkscape:cx' and 'inkscape:cy'.
Tav