if (do_name() != 'Home') : ?>
endif ?>
Posted by KaOS on Sep 03, 2009
I'm sorry I can't attach SVGs, not post the SVG xml in a post, nor in between code tags, it just dissapears. I also tried the bugreport page, which also fails.
Posted by Tom De Smedt on Sep 03, 2009
include("util/comment.php"); ?>
The SVG lib is an endless cat-and-mouse game as there are always more exceptions than things it can handle - in one of my more favorite nightmares I'm even thinking of ways to import path gradients correctly.
But since this is such a useful library, I'm always happy to improve it. If you send me some example SVG files (tom at organisms dot be) I'll take a look at them and see if I can update the parser to handle them correctly.
Tom
SVG parse error
Posted by KaOS on Sep 03, 2009Hello,
in some cases The SVG import filter does not succeed in importing the plain (not inkscape) SVGs I exported from inkscape. In general they look different in nodebox then they look in inkscape too, with missing paths.
The error output from nodebox says:[[BR]]
{{{
Traceback (most recent call last):
File "nodebox/gui/mac/__init__.pyo", line 358, in _execScript
File "/Users/kaos/Desktop/gk/bacxktest.py", line 11, in
File "/Users/kaos/Library/Application Support/NodeBox/svg/__init__.py", line 62, in parse
File "/Users/kaos/Library/Application Support/NodeBox/svg/__init__.py", line 101, in parse_node
File "/Users/kaos/Library/Application Support/NodeBox/svg/__init__.py", line 101, in parse_node
File "/Users/kaos/Library/Application Support/NodeBox/svg/__init__.py", line 101, in parse_node
File "/Users/kaos/Library/Application Support/NodeBox/svg/__init__.py", line 118, in parse_node
File "/Users/kaos/Library/Application Support/NodeBox/svg/__init__.py", line 240, in parse_path
ValueError: invalid literal for float(): -2.0320382e
}}}
This is even true on some very simple paths like the one in the attachement. If I change the SVG in into a "valid" SVG my nodebox code runs fine.
When I export the same file to PDF everything imports fine (but I can't script on the seperate paths, so SVG would be great)
svg is in code below