These are great news. I am currently working in a Squeak project that uses a bunch of graphics we have made with Inkscape. I had to convert them to png to be able to use them with Squeak. I have tested my svg and some of them have errors when loaded. If you want, I can send them to you for testing. Also, if you need some help or some kind of testing, I will be glad to lend you a hand. Finally some questions/errors. - SVGMorphs are always inside the sheet where they were drawn. If they could be managed out of the sheet, as sketchmorphs would be much more useful. - The drawing is not redrawn often after opening a window or menu over the svgmorph. When the menu is closed, the space that it filled in the svg is just a white box. - Gradients use to cause "key not found" errors. SVGMorph >>GetFills: fails often with inkscape svg, it doesn't find gradients like 'linearGradient1717' - "A primitive has failed" errors also are often raised when loading some complex drawings. (guard02.svg) - Some drawings are never loaded (feet01.svg)
I am really looking forward for your future releases. I know it is a really hard work because I spent some days studying the possibility or making a SVG importer and gave up because its difficulty was enormous for my smalltalk skill. Best regards.
El vie, 29-07-2005 a las 23:29 +0100, "Gary Chambers" gazzaguru@btinternet.com escribió:
Works with stock 3.7 and 3.8 image. I have tested this (worried because its my first upload!).
As in the SqueakMap description, this is a first attempt, it works with simple svgs, and more complex ones (maybe with artifacts). It is far from complete (no text support for starters, and enders, probably!).
Additonally, Arcs are approximated with Bezier curves and some of the other SVG privitives are not yet directly supported.
If you wish to test then some of the samples provided with Inkscape (http://www.inkscape.org/) work ok (especially tux.svg!).
Hope this helps.
Also, if you need some help or some kind of testing, I will be glad to lend you a hand.
Testing is and comments are always welcome!
- SVGMorphs are always inside the sheet where they were drawn. If they
could be managed out of the sheet, as sketchmorphs would be much more useful.
Not sure what you mean. SVGMorph is the top level that manages the defs (fills etc). It would be possible (perhaps!) to offset things to cover only the bounded area of its submorphs.
- The drawing is not redrawn often after opening a window or menu over
the svgmorph. When the menu is closed, the space that it filled in the svg is just a white box.
Have not had this problem, maybe next release will address this as update deferral of the canvas is no longer being forced.
- Gradients use to cause "key not found" errors. SVGMorph >>GetFills:
fails often with inkscape svg, it doesn't find gradients like 'linearGradient1717'
Have done some withBlanksTrimmed stuff for now. Really need to write proper parse methods for attributes of elements.
- "A primitive has failed" errors also are often raised when loading
some complex drawings. (guard02.svg)
Am trying to figure out the limitations of Balloon. Some things can't be done. Will coerce values into acceptable ranges to avoid this.
- Some drawings are never loaded (feet01.svg)
That seemed to be tied in to the deferred update issue.
I am really looking forward for your future releases. I know it is a really hard work because I spent some days studying the possibility or making a SVG importer and gave up because its difficulty was enormous for my smalltalk skill.
Yes, it is a bit grim. Balloon in its current state will not be able to do all of the SVG spec. Still, something is better than nothing!
Thanks for the support, Gary.
New release available on SqueakMap. v 0.2.1
Hope you like the inmprovements, can handle things better but still has problems with artifacts on some files.
Basic text handling has been added, though this means that it no longer works with Squeak 3.7 due to the changes in font handling.
Works on 3.9a-6646 too (install Monticello and YAXO first) 3.8 is good though :-)
Enjoy, Gary
squeak-dev@lists.squeakfoundation.org