You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by London Ontario <lo...@hotmail.com> on 2002/01/31 15:44:36 UTC

Misplaced Symbols

Hello,

We are experiencing a problem with Adobe Illustrator 10.0 SVG images when 
loaded into Batik.

I've attached a small example illustrating the problem.
The image contains a fish symbol surrounded by a rectangle. In Illustrator 
the fish is properly centered inside the rect, but when the image is loaded 
into Batik the fish leaves his box and appears on top of it.

This is happening with all our images that include symbol objects.

Thanks.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Re: Misplaced Symbols

Posted by Vincent Hardy <vi...@sun.com>.
London,

I have done some more investigation, just to clarify if we are dealing
with a bug or not and I am now convinced we are. Here is why:

I simplified your example so that the symbol only contains a rect
see CenterFishOrig.svg. Then, I modified it according to the rules for
<symbols> referenced from <use> elements (see:

http://www.w3.org/TR/SVG/struct.html#UseElement

where the rule for referenced <symbol> is described.

This gives the attached CenterFishEquivalent.svg.

Clearly, we are centering the equivalent SVG but not the symbol so
we have a bug.

I'll enter this in Bugzilla.
Thanks for your report.
Cheers,
Vincent.

London Ontario wrote:
> 
> Hello,
> 
> We are experiencing a problem with Adobe Illustrator 10.0 SVG images when
> loaded into Batik.
> 
> I've attached a small example illustrating the problem.
> The image contains a fish symbol surrounded by a rectangle. In Illustrator
> the fish is properly centered inside the rect, but when the image is loaded
> into Batik the fish leaves his box and appears on top of it.
> 
> This is happening with all our images that include symbol objects.
> 
> Thanks.
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
> 
>   ------------------------------------------------------------------------
>                      Name: CenterFish.svg
>    CenterFish.svg    Type: Mozilla Extensible Markup Language Document (text/xml)
>                  Encoding: 8bit
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Misplaced Symbols [with files]

Posted by Vincent Hardy <vi...@sun.com>.
London (with files this time :-^,

I have done some more investigation, just to clarify if we are dealing
with a bug or not and I am now convinced we are. Here is why:

I simplified your example so that the symbol only contains a rect
see CenterFishOrig.svg. Then, I modified it according to the rules for
<symbols> referenced from <use> elements (see:

http://www.w3.org/TR/SVG/struct.html#UseElement

where the rule for referenced <symbol> is described.

This gives the attached CenterFishEquivalent.svg.

Clearly, we are centering the equivalent SVG but not the symbol so
we have a bug.

I'll enter this in Bugzilla.
Thanks for your report.
Cheers,
Vincent.

London Ontario wrote:
> 
> Hello,
> 
> We are experiencing a problem with Adobe Illustrator 10.0 SVG images when
> loaded into Batik.
> 
> I've attached a small example illustrating the problem.
> The image contains a fish symbol surrounded by a rectangle. In Illustrator
> the fish is properly centered inside the rect, but when the image is loaded
> into Batik the fish leaves his box and appears on top of it.
> 
> This is happening with all our images that include symbol objects.
> 
> Thanks.
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
> 
>   ------------------------------------------------------------------------
>                      Name: CenterFish.svg
>    CenterFish.svg    Type: Mozilla Extensible Markup Language Document (text/xml)
>                  Encoding: 8bit
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

Re: Misplaced Symbols

Posted by Vincent Hardy <vh...@apache.org>.
London,

After a quick look, this has to do with the way we are handling the 
transform on the <use>. If you put your use inside a <g> and move the
tranform from the <use> to the <g> you'll see that the result is what
you expect.

I will have a closer look to see if we are doing the right
thing or not. 

Vincent.

London Ontario wrote:
> 
> Hello,
> 
> We are experiencing a problem with Adobe Illustrator 10.0 SVG images when
> loaded into Batik.
> 
> I've attached a small example illustrating the problem.
> The image contains a fish symbol surrounded by a rectangle. In Illustrator
> the fish is properly centered inside the rect, but when the image is loaded
> into Batik the fish leaves his box and appears on top of it.
> 
> This is happening with all our images that include symbol objects.
> 
> Thanks.
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
> 
>   ------------------------------------------------------------------------
>                      Name: CenterFish.svg
>    CenterFish.svg    Type: Mozilla Extensible Markup Language Document (text/xml)
>                  Encoding: 8bit
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org