You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Maring, Steve" <St...@tvratings.com> on 2001/08/13 20:45:03 UTC

svg probs with 0.19.0

I'm not sure why this is happening.  Maybe somebody can help me?  My svg
gets improperly generated through FOP 0.19.0 (I have not tried others).  The
viewBox seems to be ignored and fill-rule:evenodd does not work.  Is this a
Batik thing?  When I run the rasterizer in Batik 1.0 it seems to understand
what I'm asking for.  The Adobe SVG viewer thinks my svg is OK too.

-Steve Maring


<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master		master-name="mymaster"
			page-height="11in"		page-width="8.5in">
			<fo:region-body/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-name="mymaster">
		<fo:flow flow-name="xsl-region-body">
			<fo:block>
				<fo:external-graphic src="file:logo.svg"/>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>


[file: logo.svg]

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
	"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">

<svg width="1.2917in" height=".375in" viewBox="0 0 310 90"
preserveAspectRatio="xMinYMin meet" xml:space="preserve">
	<desc>Zettamedia Logo</desc>
	
	<g>
	<!-- define the big Z in the logo -->
	<polygon style="fill:black"
		points="18,0    51,0    33,18   0,18"/>
	<polygon style="fill:black"
		points="54,0    84,0    66,18   36,18"/>
	<polygon style="fill:black"
		points="90,0    117,0   27,90   0,90"/>
	<polygon style="fill:black"
		points="54,72   78,72   60,90   36,90"/>
	<polygon style="fill:black"
		points="90,72   111,72  93,90   72,90"/>
	<polygon style="fill:black"
		points="126,72  144,72  126,90  108,90"/>
	<polygon style="fill:black"
		points="162,72  177,72  159,90  144,90"/>
	<polygon style="fill:black"
		points="198,72  210,72  192,90  180,90"/>
	<polygon style="fill:black"
		points="234,72  243,72  225,90  216,90"/>
	<polygon style="fill:black"
		points="270,72  276,72  258,90  252,90"/>
	<polygon style="fill:black"
		points="306,72  309,72  291,90  288,90"/>

	<!-- ************************* e *********************** -->
	<path style="fill:black"
		d="M 102,51 L 108,51  A 12,15 0 0,0 84,51  A 12,15 0 0,0
107.75,54
		   L 101.65,54  A 6,9 0 0,1 90,51  A 6,9 0 0,1 102,51"/>
	<polygon style="fill:black"
		points="90,45  102,45  102,51  90,51"/>

	<!-- ************************* t *********************** -->
	<polygon style="fill:black"
		points="114,36  117,36  117,33  123,27
			123,36  132,36  126,42  123,42
			123,66  117,66  117,42  108,42"/>

	<!-- ************************* t *********************** -->
	<polygon style="fill:black"
		points="135,36  138,36  138,33  144,27
			144,36  153,36  147,42  144,42
			144,66  138,66  138,42  129,42"/>

	<!-- ************************* a *********************** -->
	<path style="fill-rule:evenodd; fill:black"
		d="M 168,51 A 6,9 0 0,1 156,51 A 6,9 0 0,1 168,51 z
		   M 174,51 A 12,15 0 0,1 150,51 A 12,15 0 0,1 174,51 z"/>
	<polygon style="fill:black"
		points="168,36  174,30  174,66  168,66"/>


	<!-- ************************* m *********************** -->
	<!-- first leg -->
	<polygon style="fill:black"
		points="183,51  183,66  177,66  177,42
			183,36  183,39  181.5,40.5  181.5,39.62
			178.5,42.62  178.5,64.5  181.5,64.5  181.5,51"/>
	<!-- second leg -->
	<polygon style="fill:black"
		points="201,51  201,66  195,66  195,51
			196.5,51  196.5,64.5  199.5,64.5  199.5,51"/>
	<!-- third leg -->
	<polygon style="fill:black"
		points="219,51  219,66  213,66  213,51
			214.5,51  214.5,64.5  217.5,64.5  217.5,51"/>
	<!-- first hump top -->
	<path style="fill:black"
		d="M 181.5,41.5 A 10.5,13.5 0 0,1 198,44.3 L 198,41.2
			A 12,15 0 0,0 181.5,39.2"/>
	<!-- first hump bottom -->
	<path style="fill:black"
		d="M 183,51 A 6,9 0 0,1 195,51 L 196.5,51 A 7.5,10.5 0 0,0
181.5,51"/>
	<!-- second hump top -->
	<path style="fill:black"
		d="M 198,41.2 A 12,15 0 0,1 219,51 L 217.5,51
			A 10.5,13.5 0 0,0 198,44.3"/>
	<!-- second hump bottom -->
	<path style="fill:black"
		d="M 201,51 A 6,9 0 0,1 213,51 L 214.5,51 A 7.5,10.5 0 0,0
199.5,51"/>

	<!-- *************************** e ************************ -->
	<path style="fill:black"
		d="M 222,51  A 12,15 0 0,1 246,51  L 244.5,51  A 10.5,13.5 0
0,0 223.5,51"/>
	<polygon style="fill:black"
		points="226.5,49.5  245,49.5  245,51  226.5,51"/>
	<polygon style="fill:black"
		points="228,45  240,45  240,46.5  228,46.5"/>
	<polygon style="fill:black"
		points="240,54  245,54  245,55.5  240,55.5"/>
	<path style="fill:black"
		d="M 227.2,46.5  A 7.5,10.5 0 0,1 240.8,46.5  L 239.2,46.5
			A 6,9 0 0,0 228.8,46.5"/>
	<path style="fill:black"
		d="M 228,51  A 6,9 0 0,0 239.65,54  L 241.2,54
			A 7.5,10.5 0 0,1 226.5,51"/>
	<path style="fill:black"
		d="M 222,51  A 12,15 0 0,0 245.75,54  L 244.24,54
			A 10.5,13.5 0 0,1 223.5,51"/>

	<!-- *************************** d ************************ -->
	<!-- inner circle -->
	<path style="fill-rule:evenodd; fill:black"
		d="M 253.5,51 A 7.5,10.5 0 0,1 268.5,51  A 7.5,10.5 0 0,1
253.5,51 z
		   M 255,51  A 6,9 0 0,1 267,51  A 6,9 0 0,1 255,51 z"/>
	<!-- outer arc -->
	<path style="fill:black"
		d="M 250.5,51 A 10.5,13.5 0 0,1 268.5,41.5 L 268.5,39.2
			A 12,15 0 0,0 249,51"/>
	<path style="fill:black"
		d="M 250.5,51 A 10.5,13.5 0 0,0 268.5,60.5 L 268.5,62.8
			A 12,15 0 0,1 249,51"/>
	<!-- leg -->
	<polygon style="fill:black"
		points="267,39.5  267,6  273,0  273,66  267,66  267,63
268.5,60.5
			268.5,64.5  271.5,64.5  271.5,3.62  268.5,6.62
268.5,41.5"/>

	<!-- *************************** i ************************ -->
	<!-- dot -->
	<path style="fill-rule:evenodd; fill:black"
		d="M 276,24 L 282,18 L 282,24 L 276,30 z
		   M 277.5,24.62 L 280.5,21.62 L 280.5,23.38 L 277.5,26.38
z"/>
	<!-- base -->
	<path style="fill-rule:evenodd; fill:black"
		d="M 276,36 L 282,30 L 282,66 L 276,66 z
		   M 277.5,36.62 L 280.5,33.62 L 280.5,64.5 L 277.5,64.5
z"/>


	<!-- *************************** a ************************ -->
	<!-- inner circle -->
	<path style="fill-rule:evenodd; fill:black"
		d="M 289.5,51 A 7.5,10.5 0 0,1 304.5,51 A 7.5,10.5 0 0,1
289.5,51 z
		   M 291,51 A 6,9 0 0,1 303,51 A 6,9 0 0,1 291,51 z"/>
	<!-- outer arc -->
	<path style="fill:black"
		d="M 286.5,51 A 10.5,13.5 0 0,1 304.5,41.5 L 304.5,39.2
			A 12,15 0 0,0 285,51"/>
	<path style="fill:black"
		d="M 286.5,51 A 10.5,13.5 0 0,0 304.5,60.5 L 304.5,62.8
			A 12,15 0 0,1 285,51"/>
	<!-- leg -->
	<polygon style="fill:black"
		points="303,39.5  303,36  309,30  309,66  303,66  303,63
304.5,60.5
			304.5,64.5  307.5,64.5  307.5,33.62  304.5,36.62
304.5,41.5"/>

	</g>

</svg>





---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: svg probs with 0.19.0

Posted by Keiron Liddle <ke...@aftexsw.com>.
Steve,
With the latest version (0.20.1) I get the same result with the awt
previewer and the pdf output. THis means that at least the even-odd problem
is fixed.
As for the viewBox - I'm not really sure how it should work and applies
when embedding inside xsl-fo. If you simply need to change the size you
could scale it.

On Mon, 13 Aug 2001 20:45:03 "Maring, Steve" wrote:
> I'm not sure why this is happening.  Maybe somebody can help me?  My svg
> gets improperly generated through FOP 0.19.0 (I have not tried others). 
> The
> viewBox seems to be ignored and fill-rule:evenodd does not work.  Is this
> a
> Batik thing?  When I run the rasterizer in Batik 1.0 it seems to
> understand
> what I'm asking for.  The Adobe SVG viewer thinks my svg is OK too.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: svg probs with 0.19.0

Posted by Michel Lehon <Mi...@Outwares.com>.
I thought FOP 0.19.0 + used Batik for SVG.

Am I Wrong ?

Michel.

> -----Original Message-----
> From: Alex McLintock [mailto:alexmc@yahoo.com]
> Sent: Tuesday, 14 August, 2001 10:22
> To: fop-dev@xml.apache.org
> Subject: Re: svg probs with 0.19.0
>
>
>  --- "Maring, Steve" <St...@tvratings.com> wrote:
> > I'm not sure why this is happening.  Maybe somebody can help me?  My svg
> > gets improperly generated through FOP 0.19.0 (I have not tried
> others).  The
> > viewBox seems to be ignored and fill-rule:evenodd does not
> work.  Is this a
> > Batik thing?  When I run the rasterizer in Batik 1.0 it seems
> to understand
> > what I'm asking for.  The Adobe SVG viewer thinks my svg is OK too.
> >
>
> I don't know for certain but I don't think viewBox is implemented yet -
> though I could be thinking of V 0.18
>
> I think it is fair to say that a lot of the SVG spec is not yet
> implemented.
>
> Alex
>
>
> =====
> Alex McLintock        alex@OWAL.co.uk    Open Source Consultancy in London
> OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> SF and Computing Book News and Reviews: http://news.diversebooks.com/
> Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: svg probs with 0.19.0

Posted by Alex McLintock <al...@yahoo.com>.
 --- "Maring, Steve" <St...@tvratings.com> wrote: 
> I'm not sure why this is happening.  Maybe somebody can help me?  My svg
> gets improperly generated through FOP 0.19.0 (I have not tried others).  The
> viewBox seems to be ignored and fill-rule:evenodd does not work.  Is this a
> Batik thing?  When I run the rasterizer in Batik 1.0 it seems to understand
> what I'm asking for.  The Adobe SVG viewer thinks my svg is OK too.
> 

I don't know for certain but I don't think viewBox is implemented yet - 
though I could be thinking of V 0.18

I think it is fair to say that a lot of the SVG spec is not yet implemented.

Alex


=====
Alex McLintock        alex@OWAL.co.uk    Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org