You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Todd Volkert (JIRA)" <ji...@apache.org> on 2009/10/07 22:53:31 UTC

[jira] Created: (PIVOT-318) SVN to WTKD conversion tool

SVN to WTKD conversion tool
---------------------------

                 Key: PIVOT-318
                 URL: https://issues.apache.org/jira/browse/PIVOT-318
             Project: Pivot
          Issue Type: New Feature
          Components: wtk
            Reporter: Todd Volkert
            Priority: Minor
             Fix For: 2.0


I'd be nice if we had a tool in the tools project that would convert SVG files to WTKD files when possible (some SVG directives would not be supported).  It's possible that the Apache Batik project libraries could help here (http://xmlgraphics.apache.org/batik/using/parsers.html).


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Greg Brown <gk...@mac.com>.
>I agree, but are you thinking to use Batik from the SVGSerializer, or
>do all the work in our code ?
>Reading well an SVG file could be complex (it's a complex format), but
>maybe only a subset could be more simple, for example SVG Tiny.

Right. I think it would be preferable to avoid any external dependencies, if possible.

>And, from what I know, SVG hasn't the definition for some of our GUI
>components, so this is only for the graphics part (drawings, etc, for
>WTKD files) ?

Correct.


Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Sandro Martini <sa...@gmail.com>.
Hi,
> I'm guessing that reading WTKX won't be significantly more efficient than reading SVG, since they are structurally pretty similar. Plus, an SVGSerializer would allow us to read SVG directly into a Pivot app without first transforming it.
I agree, but are you thinking to use Batik from the SVGSerializer, or
do all the work in our code ?
Reading well an SVG file could be complex (it's a complex format), but
maybe only a subset could be more simple, for example SVG Tiny.

And, from what I know, SVG hasn't the definition for some of our GUI
components, so this is only for the graphics part (drawings, etc, for
WTKD files) ?

Reference:
http://www.w3.org/Graphics/SVG/

Surely one great thing on SVG is that's a vectorial format, so we can
scale its graphics at runtime in a simple way.


Trick:
why not have also the ability to save the imported SVG into Pivot WTKD
Drawing format, so we could have more optimized graphics one time
imported, for example for icons, etc ...
Or if the WTKD will be the imported format, could we think on add the
ability to save the digested info loaded from those files in a binary
serializable format (to avoid parsing, etc) ?
This could be an utility under our Tools, choosing one or more
resolution, ect ...

What do you think ?


Bye,
Sandro

Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Sandro Martini <sa...@gmail.com>.
Ok.

Bye

Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Todd Volkert <tv...@gmail.com>.
> > The app developer could sidestep that issue if they converted their svg
> files to wtkx before deployment.
> You means WTKD, tight ?
>

WTKX == WTKD (in the same way that M4A == MP4)

But going a step further, what do you think on providing also the
> ability to save the digested WTKD format (in a binary or other
> efficient serializable format for example using our existing
> serializers) to avoid parsing, etc ?
>

 See http://issues.apache.org/jira/browse/PIVOT-116 :)

Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Sandro Martini <sa...@gmail.com>.
Hi,

> I updated the ticket, but when the time comes, we actually may want both.
Right.

> Depending on how this plays out, we might not want to implement
> SVGSerialization using 100% PIvot code.  If we were to depend on third party
> libraries, like Batik, that would require the user to have a larger client download.
Yes, much larger than Pivot (currently).

Ah, I've seen svg compressed (with gzip) as svgz, could be useful to
handle ... and maybe have also a wtkd.gz or similar ...

> The app developer could sidestep that issue if they converted their svg files to wtkx before deployment.
You means WTKD, tight ?
And maybe also the ability to save the drawing as image, chosen
resolution, color depth, transparency, etc ...
I like this approach, could be a very good utility (with view, import
features, etc) under tools ...


But going a step further, what do you think on providing also the
ability to save the digested WTKD format (in a binary or other
efficient serializable format for example using our existing
serializers) to avoid parsing, etc ?

This could be an utility under our Tools, choosing one or more
resolution, etc ...


Bye

Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Todd Volkert <tv...@gmail.com>.
I updated the ticket, but when the time comes, we actually may want both.
Depending on how this plays out, we might not want to implement
SVGSerialization using 100% PIvot code.  If we were to depend on third party
libraries, like Batik, that would require the user to have a larger client
download.  The app developer could sidestep that issue if they converted
their svg files to wtkx before deployment.

-T

On Wed, Oct 7, 2009 at 7:39 PM, Greg Brown <gk...@mac.com> wrote:

> I assume you mean SVGSerializer? I'm guessing that reading WTKX won't be
> significantly more efficient than reading SVG, since they are structurally
> pretty similar. Plus, an SVGSerializer would allow us to read SVG directly
> into a Pivot app without first transforming it.
>
>
> On Wednesday, October 07, 2009, at 06:39PM, "Todd Volkert" <
> tvolkert@gmail.com> wrote:
> >Ha!  Too used to SVN command line tools I guess :)
> >
> >Yeah, SVNSerializer would be very useful as well.  Might it be more
> >efficient to read a wtkx document than an svg document?  If so, then this
> >tool could still be useful (and wtkx files are certainly easier to read!).
> >If not, then maybe this tool would be of no use.
> >
> >-T
> >
> >On Wed, Oct 7, 2009 at 6:10 PM, Greg Brown <gk...@mac.com> wrote:
> >
> >> A tool that could convert Subversion to a drawing would certainly be
> very
> >> cool.  ;-)  But if we are talking about "SVG", I think an SVGSerializer
> >> would be preferable to a converter. Combined with an implementation of
> >> WTKXSerializer#writeObject(), such a tool could be constructed very
> easily.
> >>
> >>
> >>
> >> On Oct 7, 2009, at 4:53 PM, Todd Volkert (JIRA) wrote:
> >>
> >>  SVN to WTKD conversion tool
> >>> ---------------------------
> >>>
> >>>                Key: PIVOT-318
> >>>                URL: https://issues.apache.org/jira/browse/PIVOT-318
> >>>            Project: Pivot
> >>>         Issue Type: New Feature
> >>>         Components: wtk
> >>>           Reporter: Todd Volkert
> >>>           Priority: Minor
> >>>            Fix For: 2.0
> >>>
> >>>
> >>> I'd be nice if we had a tool in the tools project that would convert
> SVG
> >>> files to WTKD files when possible (some SVG directives would not be
> >>> supported).  It's possible that the Apache Batik project libraries
> could
> >>> help here (http://xmlgraphics.apache.org/batik/using/parsers.html).
> >>>
> >>>
> >>> --
> >>> This message is automatically generated by JIRA.
> >>> -
> >>> You can reply to this email to add a comment to the issue online.
> >>>
> >>>
> >>
> >
> >
>

Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Greg Brown <gk...@mac.com>.
I assume you mean SVGSerializer? I'm guessing that reading WTKX won't be significantly more efficient than reading SVG, since they are structurally pretty similar. Plus, an SVGSerializer would allow us to read SVG directly into a Pivot app without first transforming it.

 
On Wednesday, October 07, 2009, at 06:39PM, "Todd Volkert" <tv...@gmail.com> wrote:
>Ha!  Too used to SVN command line tools I guess :)
>
>Yeah, SVNSerializer would be very useful as well.  Might it be more
>efficient to read a wtkx document than an svg document?  If so, then this
>tool could still be useful (and wtkx files are certainly easier to read!).
>If not, then maybe this tool would be of no use.
>
>-T
>
>On Wed, Oct 7, 2009 at 6:10 PM, Greg Brown <gk...@mac.com> wrote:
>
>> A tool that could convert Subversion to a drawing would certainly be very
>> cool.  ;-)  But if we are talking about "SVG", I think an SVGSerializer
>> would be preferable to a converter. Combined with an implementation of
>> WTKXSerializer#writeObject(), such a tool could be constructed very easily.
>>
>>
>>
>> On Oct 7, 2009, at 4:53 PM, Todd Volkert (JIRA) wrote:
>>
>>  SVN to WTKD conversion tool
>>> ---------------------------
>>>
>>>                Key: PIVOT-318
>>>                URL: https://issues.apache.org/jira/browse/PIVOT-318
>>>            Project: Pivot
>>>         Issue Type: New Feature
>>>         Components: wtk
>>>           Reporter: Todd Volkert
>>>           Priority: Minor
>>>            Fix For: 2.0
>>>
>>>
>>> I'd be nice if we had a tool in the tools project that would convert SVG
>>> files to WTKD files when possible (some SVG directives would not be
>>> supported).  It's possible that the Apache Batik project libraries could
>>> help here (http://xmlgraphics.apache.org/batik/using/parsers.html).
>>>
>>>
>>> --
>>> This message is automatically generated by JIRA.
>>> -
>>> You can reply to this email to add a comment to the issue online.
>>>
>>>
>>
>
>

Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Todd Volkert <tv...@gmail.com>.
Ha!  Too used to SVN command line tools I guess :)

Yeah, SVNSerializer would be very useful as well.  Might it be more
efficient to read a wtkx document than an svg document?  If so, then this
tool could still be useful (and wtkx files are certainly easier to read!).
If not, then maybe this tool would be of no use.

-T

On Wed, Oct 7, 2009 at 6:10 PM, Greg Brown <gk...@mac.com> wrote:

> A tool that could convert Subversion to a drawing would certainly be very
> cool.  ;-)  But if we are talking about "SVG", I think an SVGSerializer
> would be preferable to a converter. Combined with an implementation of
> WTKXSerializer#writeObject(), such a tool could be constructed very easily.
>
>
>
> On Oct 7, 2009, at 4:53 PM, Todd Volkert (JIRA) wrote:
>
>  SVN to WTKD conversion tool
>> ---------------------------
>>
>>                Key: PIVOT-318
>>                URL: https://issues.apache.org/jira/browse/PIVOT-318
>>            Project: Pivot
>>         Issue Type: New Feature
>>         Components: wtk
>>           Reporter: Todd Volkert
>>           Priority: Minor
>>            Fix For: 2.0
>>
>>
>> I'd be nice if we had a tool in the tools project that would convert SVG
>> files to WTKD files when possible (some SVG directives would not be
>> supported).  It's possible that the Apache Batik project libraries could
>> help here (http://xmlgraphics.apache.org/batik/using/parsers.html).
>>
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>

Re: [jira] Created: (PIVOT-318) SVN to WTKD conversion tool

Posted by Greg Brown <gk...@mac.com>.
A tool that could convert Subversion to a drawing would certainly be  
very cool.  ;-)  But if we are talking about "SVG", I think an  
SVGSerializer would be preferable to a converter. Combined with an  
implementation of WTKXSerializer#writeObject(), such a tool could be  
constructed very easily.


On Oct 7, 2009, at 4:53 PM, Todd Volkert (JIRA) wrote:

> SVN to WTKD conversion tool
> ---------------------------
>
>                 Key: PIVOT-318
>                 URL: https://issues.apache.org/jira/browse/PIVOT-318
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Todd Volkert
>            Priority: Minor
>             Fix For: 2.0
>
>
> I'd be nice if we had a tool in the tools project that would convert  
> SVG files to WTKD files when possible (some SVG directives would not  
> be supported).  It's possible that the Apache Batik project  
> libraries could help here (http://xmlgraphics.apache.org/batik/using/parsers.html 
> ).
>
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>


[jira] Updated: (PIVOT-318) SVGSerializer :: Serializer

Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Volkert updated PIVOT-318:
-------------------------------

    Component/s:     (was: wtk)
                 wtk-media
    Description: 
We'd update Image.LoadTask to recognize the svg extension and use SVGSerializer to create and return the deserialized drawing.  It's possible that the Apache Batik project libraries could help here (http://xmlgraphics.apache.org/batik/using/parsers.html).


  was:
I'd be nice if we had a tool in the tools project that would convert SVG files to WTKD files when possible (some SVG directives would not be supported).  It's possible that the Apache Batik project libraries could help here (http://xmlgraphics.apache.org/batik/using/parsers.html).


        Summary: SVGSerializer :: Serializer<Drawing>  (was: SVG to WTKD conversion tool)

> SVGSerializer :: Serializer<Drawing>
> ------------------------------------
>
>                 Key: PIVOT-318
>                 URL: https://issues.apache.org/jira/browse/PIVOT-318
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk-media
>            Reporter: Todd Volkert
>            Priority: Minor
>             Fix For: 2.0
>
>
> We'd update Image.LoadTask to recognize the svg extension and use SVGSerializer to create and return the deserialized drawing.  It's possible that the Apache Batik project libraries could help here (http://xmlgraphics.apache.org/batik/using/parsers.html).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-318) SVG to WTKD conversion tool

Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Volkert updated PIVOT-318:
-------------------------------

    Summary: SVG to WTKD conversion tool  (was: SVN to WTKD conversion tool)

> SVG to WTKD conversion tool
> ---------------------------
>
>                 Key: PIVOT-318
>                 URL: https://issues.apache.org/jira/browse/PIVOT-318
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Todd Volkert
>            Priority: Minor
>             Fix For: 2.0
>
>
> I'd be nice if we had a tool in the tools project that would convert SVG files to WTKD files when possible (some SVG directives would not be supported).  It's possible that the Apache Batik project libraries could help here (http://xmlgraphics.apache.org/batik/using/parsers.html).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-318) SVN to WTKD conversion tool

Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763269#action_12763269 ] 

Todd Volkert commented on PIVOT-318:
------------------------------------

http://weblogs.java.net/blog/kirillcool/archive/2006/10/svg_and_java_ui_3.html shows an example that used Batik's library to generate Java2D source code from an SVN file.  If we studied what Kirill did in this application, we might be able to distill the required steps to translate to WTKD.

> SVN to WTKD conversion tool
> ---------------------------
>
>                 Key: PIVOT-318
>                 URL: https://issues.apache.org/jira/browse/PIVOT-318
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Todd Volkert
>            Priority: Minor
>             Fix For: 2.0
>
>
> I'd be nice if we had a tool in the tools project that would convert SVG files to WTKD files when possible (some SVG directives would not be supported).  It's possible that the Apache Batik project libraries could help here (http://xmlgraphics.apache.org/batik/using/parsers.html).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.