State of SVG importer
Hello, What is the state of the SVG importer regarding the standard. Can it parse all the specification to be capable to import any kind ofg SVG graphics? Thanks Hilaire -- Dr. Geo http://drgeo.eu
On Sep 28, 2013, at 1:52 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com> wrote:
Hello,
What is the state of the SVG importer regarding the standard. Can it parse all the specification to be capable to import any kind ofg SVG graphics?
You should try and help on that one. I know that we are parsing more than the equivalent in VW (CADE people of thales) but may be some part are missing. A while ago arcset were missing and igor added it also at the athens level. Stef
Thanks
Hilaire
-- Dr. Geo http://drgeo.eu
To be precise, the missing part is elliptical curve segments. and its still missing. On 28 September 2013 16:35, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
On Sep 28, 2013, at 1:52 PM, Hilaire Fernandes < hilaire.fernandes@gmail.com> wrote:
Hello,
What is the state of the SVG importer regarding the standard. Can it parse all the specification to be capable to import any kind ofg SVG graphics?
You should try and help on that one. I know that we are parsing more than the equivalent in VW (CADE people of thales) but may be some part are missing. A while ago arcset were missing and igor added it also at the athens level.
Stef
Thanks
Hilaire
-- Dr. Geo http://drgeo.eu
-- Best regards, Igor Stasenko.
Le 29/09/2013 18:25, Igor Stasenko a écrit :
To be precise, the missing part is elliptical curve segments. and its still missing.
Do gradient fill and transparency work ? -- Dr. Geo http://drgeo.eu
Le 29/09/2013 18:25, Igor Stasenko a écrit :
To be precise, the missing part is elliptical curve segments. and its still missing.
Do gradient fill and transparency work ? -- Dr. Geo http://drgeo.eu
Le 29/09/2013 18:41, Hilaire Fernandes a écrit :
Le 29/09/2013 18:25, Igor Stasenko a écrit :
To be precise, the missing part is elliptical curve segments. and its still missing.
Do gradient fill and transparency work ?
For example, does this small attached SVG works ? Hilaire -- Dr. Geo http://drgeo.eu
Nope.. and needs to be fixed. I would nice if you (or anyone willing to) could help with finishing the importer. You can find svg package in athens repository: http://smalltalkhub.com/#!/~Pharo/Athens [image: Inline images 1] On 29 September 2013 18:51, Hilaire Fernandes <hilaire.fernandes@gmail.com>wrote:
Le 29/09/2013 18:41, Hilaire Fernandes a écrit :
Le 29/09/2013 18:25, Igor Stasenko a écrit :
To be precise, the missing part is elliptical curve segments. and its still missing.
Do gradient fill and transparency work ?
For example, does this small attached SVG works ?
Hilaire
-- Dr. Geo http://drgeo.eu
-- Best regards, Igor Stasenko.
Le 29/09/2013 19:58, Igor Stasenko a écrit :
Nope.. and needs to be fixed. I would nice if you (or anyone willing to) could help with finishing the importer.
I can look with the faith of a neophyte Hilaire -- Dr. Geo http://drgeo.eu
On Sep 29, 2013, at 8:56 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com> wrote:
Le 29/09/2013 19:58, Igor Stasenko a écrit :
Nope.. and needs to be fixed. I would nice if you (or anyone willing to) could help with finishing the importer.
I can look with the faith of a neophyte
excellent!
Hilaire
-- Dr. Geo http://drgeo.eu
Le 29/09/2013 19:58, Igor Stasenko a écrit :
You can find svg package in athens repository: http://smalltalkhub.com/#!/~Pharo/Athens <http://smalltalkhub.com/#%21/%7EPharo/Athens>
Gofer new smalltalkhubUser: 'Pharo' project: 'Athens'; configuration; load. ConfigurationOfAthens loadDevelopment. Does not load the XML support nor the SVGImport, althought this one is in the versionXX. You may want to fix it for earlier tester. Hilaire -- Dr. Geo http://drgeo.eu
Le 29/09/2013 21:17, Hilaire Fernandes a écrit :
You may want to fix it for earlier tester.
I manage to load the needed package by hand. But there is a missing class AthensCairoSurface. Please could you check on a fresh pharo 2.0 the configuration and fix it? Thanks Hilaire -- Dr. Geo http://drgeo.eu
On Sep 29, 2013, at 9:30 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com> wrote:
Le 29/09/2013 21:17, Hilaire Fernandes a écrit :
You may want to fix it for earlier tester.
I manage to load the needed package by hand. But there is a missing class AthensCairoSurface. Please could you check on a fresh pharo 2.0 the configuration and fix it?
I think that we should work on pharo 30. We do not have the resource to maintain it on 20. First it should work on 30.
Thanks
Hilaire
-- Dr. Geo http://drgeo.eu
Ok -- View this message in context: http://forum.world.st/State-of-SVG-importer-tp4710870p4711353.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Got it working on 3.0. Indeed gradient is not handled. However I can see a ASGradient hierarchy. Hilaire -- View this message in context: http://forum.world.st/State-of-SVG-importer-tp4710870p4711359.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Hilaire I published a new baseline - to address SVG needing XMLParser - added version 24 to use the new baseline (no change) - added version 25 to load all the more recent versions from the repository. So let me know if this is helping you. Normally 24 should load ok I'm testing. â¦. It looks some packages were changed in the image and should be merged and published. Igor should do that but he is lying sick in his bed. Stef On Sep 30, 2013, at 1:27 PM, hilaire <hilaire.fernandes@gmail.com> wrote:
Got it working on 3.0.
Indeed gradient is not handled. However I can see a ASGradient hierarchy.
Hilaire
-- View this message in context: http://forum.world.st/State-of-SVG-importer-tp4710870p4711359.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On 30 September 2013 21:46, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
Hilaire
I published
a new baseline - to address SVG needing XMLParser - added version 24 to use the new baseline (no change) - added version 25 to load all the more recent versions from the repository.
So let me know if this is helping you. Normally 24 should load ok I'm testing.
â¦.
It looks some packages were changed in the image and should be merged and published.
thanks for help. Yes, i need to create a new configuration version, since there's some most recent work which committed but not yet adopted inside of config.
Igor should do that but he is lying sick in his bed.
Stef
On Sep 30, 2013, at 1:27 PM, hilaire <hilaire.fernandes@gmail.com> wrote:
Got it working on 3.0.
Indeed gradient is not handled. However I can see a ASGradient hierarchy.
Hilaire
-- View this message in context: http://forum.world.st/State-of-SVG-importer-tp4710870p4711359.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.
On 30 September 2013 13:27, hilaire <hilaire.fernandes@gmail.com> wrote:
Got it working on 3.0.
Indeed gradient is not handled. However I can see a ASGradient hierarchy.
yes, i don't remember all the details, but it should be easy to fix. i stopped working on it, when realized that the missing elliptical segment type prevents me to display correctly many svg content, so i started working on it but this still not there. it needs some overhaul in path creation, and calculating path geometry.. i wanted to extend functionality , so you can use own parametric functions for path segments (elliptical curves is just simple case of this). The problem is that Cairo don't have direct support of elliptical curves, so they need to be approximated either by bezier curves or by straight line segments (a tiny ones, of course). This is where i stopped in May, because i had to focus on text rendering & text editor, and as you may know i still working on it..
Hilaire
-- View this message in context: http://forum.world.st/State-of-SVG-importer-tp4710870p4711359.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.
Igor I'm adding development: spec <symbolicVersion: #development> spec for: #common version: '2.5' stable: spec <symbolicVersion: #stable> spec for: #'pharo2.x' version: '2.1'. "after some modification in NB made it incompatible with 3.0" spec for: #'pharo3.x' version: '2.3' and you should probably merged the version in 3.0/main so that everything loads clean. Stef
On 30 September 2013 13:27, hilaire <hilaire.fernandes@gmail.com> wrote: Got it working on 3.0.
Indeed gradient is not handled. However I can see a ASGradient hierarchy.
yes, i don't remember all the details, but it should be easy to fix. i stopped working on it, when realized that the missing elliptical segment type prevents me to display correctly many svg content, so i started working on it but this still not there. it needs some overhaul in path creation, and calculating path geometry.. i wanted to extend functionality , so you can use own parametric functions for path segments (elliptical curves is just simple case of this). The problem is that Cairo don't have direct support of elliptical curves, so they need to be approximated either by bezier curves or by straight line segments (a tiny ones, of course).
This is where i stopped in May, because i had to focus on text rendering & text editor, and as you may know i still working on it..
Hilaire
-- View this message in context: http://forum.world.st/State-of-SVG-importer-tp4710870p4711359.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.
On 29 September 2013 21:40, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
On Sep 29, 2013, at 9:30 PM, Hilaire Fernandes < hilaire.fernandes@gmail.com> wrote:
Le 29/09/2013 21:17, Hilaire Fernandes a écrit :
You may want to fix it for earlier tester.
I manage to load the needed package by hand. But there is a missing class AthensCairoSurface. Please could you check on a fresh pharo 2.0 the configuration and fix it?
I think that we should work on pharo 30. We do not have the resource to maintain it on 20. First it should work on 30.
yes , there are multiple important updates which made to NB which making current version of Athens incompatible with pharo 2.0. The last version of Athens, compatible with 2.0 image is 2.1. ConfigurationOfAthens loadVersion: '2.1'. and to load svg package use: (ConfigurationOfAthens project version: '2.1') load: 'SVG' (but you need to load XML support first). And since you planning to work on SVG, i recommend you to pick up the latest pharo 3.0 image where athens already installed and work there, on development version of Athens.
On Sep 30, 2013, at 9:44 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 29 September 2013 21:40, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Sep 29, 2013, at 9:30 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com> wrote:
Le 29/09/2013 21:17, Hilaire Fernandes a écrit :
You may want to fix it for earlier tester.
I manage to load the needed package by hand. But there is a missing class AthensCairoSurface. Please could you check on a fresh pharo 2.0 the configuration and fix it?
I think that we should work on pharo 30. We do not have the resource to maintain it on 20. First it should work on 30.
yes , there are multiple important updates which made to NB which making current version of Athens incompatible with pharo 2.0. The last version of Athens, compatible with 2.0 image is 2.1.
Ok I will update the stable setting because it was just loading the development version so breaking the point of stable Igor such information should not be only in your head!!!!
ConfigurationOfAthens loadVersion: '2.1'.
and to load svg package use: (ConfigurationOfAthens project version: '2.1') load: 'SVG'
(but you need to load XML support first).
And since you planning to work on SVG, i recommend you to pick up the latest pharo 3.0 image where athens already installed and work there, on development version of Athens.
On 30 September 2013 21:52, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
On Sep 30, 2013, at 9:44 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 29 September 2013 21:40, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
On Sep 29, 2013, at 9:30 PM, Hilaire Fernandes < hilaire.fernandes@gmail.com> wrote:
Le 29/09/2013 21:17, Hilaire Fernandes a écrit :
You may want to fix it for earlier tester.
I manage to load the needed package by hand. But there is a missing class AthensCairoSurface. Please could you check on a fresh pharo 2.0 the configuration and fix it?
I think that we should work on pharo 30. We do not have the resource to maintain it on 20. First it should work on 30.
yes , there are multiple important updates which made to NB which making current version of Athens incompatible with pharo 2.0. The last version of Athens, compatible with 2.0 image is 2.1.
Ok I will update the stable setting because it was just loading the development version so breaking the point of stable Igor such information should not be only in your head!!!!
it is work to do.. but i am not sure it is worth doing. Pharo 2.0 officially not supported by Athens, so why we should worry about staying compatible? Yes, in perfect case , configuration baseline should contain branch to load different versions for 2.0 image, and for 3.0. But to do that , first i need to learn (again) how to do it :) We certainly need a UI tool for configurations, because keeping all those "how to-s" in head becomes tedious and counterproductive task.
ConfigurationOfAthens loadVersion: '2.1'.
and to load svg package use: (ConfigurationOfAthens project version: '2.1') load: 'SVG'
(but you need to load XML support first).
And since you planning to work on SVG, i recommend you to pick up the latest pharo 3.0 image where athens already installed and work there, on development version of Athens.
-- Best regards, Igor Stasenko.
Ok I will update the stable setting because it was just loading the development version so breaking the point of stable Igor such information should not be only in your head!!!!
it is work to do.. but i am not sure it is worth doing. Pharo 2.0 officially not supported by Athens, so why we should worry about staying compatible? Yes, in perfect case , configuration baseline should contain branch to load different versions for 2.0 image, and for 3.0.
But to do that , first i need to learn (again) how to do it :) We certainly need a UI tool for configurations, because keeping all those "how to-s" in head becomes tedious and counterproductive task.
yes and it is coming, versioner will help us for that. But to me it looks like you did not write enough configurations. I hate writing them but I do not it because there is no other ways to manage quality and reproducibility. If this is the price to pay, I pay it because this is what I want. a ONE CLICK loading system. I take a reference one and I copy. So now this is done. Have a look and see if it loads what you think it should. Stef
On 30 September 2013 22:08, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
Ok I will update the stable setting because it was just loading the development version so breaking the point of stable Igor such information should not be only in your head!!!!
it is work to do.. but i am not sure it is worth doing. Pharo 2.0 officially not supported by Athens, so why we should worry about staying compatible? Yes, in perfect case , configuration baseline should contain branch to load different versions for 2.0 image, and for 3.0.
But to do that , first i need to learn (again) how to do it :) We certainly need a UI tool for configurations, because keeping all those "how to-s" in head becomes tedious and counterproductive task.
yes and it is coming, versioner will help us for that. But to me it looks like you did not write enough configurations. I hate writing them but I do not it because there is no other ways to manage quality and reproducibility. If this is the price to pay, I pay it because this is what I want. a ONE CLICK loading system. I take a reference one and I copy. So now this is done.
I don't remember, how many of them i wrote, but certainly not enough to
remember all things. Most of projects is simple, just plain dependencies, but when things get more complicated like loading different versions for different platform.. this is where usually you need to open manual and read it over again :)
Have a look and see if it loads what you think it should.
Ok.
Stef
-- Best regards, Igor Stasenko.
Le 30/09/2013 22:08, Stéphane Ducasse a écrit :
Have a look and see if it loads what you think it should.
Thanks. It works. The SVG importer can be installed in a fresh 3.0 image with the command Gofer new smalltalkhubUser: 'Pharo' project: 'Athens'; configuration; load. (ConfigurationOfAthens project version: '2.5') load: 'SVG' -- Dr. Geo http://drgeo.eu
I'm happy :) On Oct 2, 2013, at 10:45 AM, Hilaire Fernandes <hilaire.fernandes@gmail.com> wrote:
Le 30/09/2013 22:08, Stéphane Ducasse a écrit :
Have a look and see if it loads what you think it should.
Thanks. It works. The SVG importer can be installed in a fresh 3.0 image with the command
Gofer new smalltalkhubUser: 'Pharo' project: 'Athens'; configuration; load.
(ConfigurationOfAthens project version: '2.5') load: 'SVG'
-- Dr. Geo http://drgeo.eu
On Sep 29, 2013, at 9:17 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com> wrote:
Le 29/09/2013 19:58, Igor Stasenko a écrit :
You can find svg package in athens repository: http://smalltalkhub.com/#!/~Pharo/Athens <http://smalltalkhub.com/#%21/%7EPharo/Athens>
Gofer new smalltalkhubUser: 'Pharo' project: 'Athens'; configuration; load. ConfigurationOfAthens loadDevelopment.
Does not load the XML support nor the SVGImport, althought this one is in the versionXX.
I will have a look now I would not add it to Athens but create an SVG importer Configuration since SVG is not linked to athens per se. Do you want me to do it? Sef
You may want to fix it for earlier tester.
Hilaire
-- Dr. Geo http://drgeo.eu
Le 28/09/2013 16:35, Stéphane Ducasse a écrit :
You should try and help on that one. I know that we are parsing more than the equivalent in VW (CADE people of thales) but may be some part are missing. A while ago arcset were missing and igor added it also at the athens level.
Is there any page where people can find some get started information related to Athens and co. For example, I can't even find from where to load the SVG importer. Thanks Hilaire -- Dr. Geo http://drgeo.eu
normally it was on the athens repository. Stef
Le 28/09/2013 16:35, Stéphane Ducasse a écrit :
You should try and help on that one. I know that we are parsing more than the equivalent in VW (CADE people of thales) but may be some part are missing. A while ago arcset were missing and igor added it also at the athens level.
Is there any page where people can find some get started information related to Athens and co. For example, I can't even find from where to load the SVG importer.
Thanks
Hilaire
-- Dr. Geo http://drgeo.eu
participants (4)
-
hilaire -
Hilaire Fernandes -
Igor Stasenko -
Stéphane Ducasse