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 "Georg A." <at...@eva.mpg.de> on 2003/06/04 14:45:58 UTC

Re: writeDocument link

at http://www.ge-org.com/batik

you find a file SOV.svg, this is the messed up one
the worldcollapsed_jc.svg is the one how it should look like

cheers

Georg

On Wednesday, Jun 4, 2003, at 14:23 Europe/Berlin, Thomas E Deweese 
wrote:

>>>>>> "GA" == Georg A <at...@eva.mpg.de> writes:
>
> GA> Hi, if I use:
>
> Writer filewriter = new OutputStreamWriter(file, "UTF-8");
> DOMUtilities.writeDocument(svgdoc,filewriter);
>
> GA> my svgdoc is streamed but in a messed up form what am I doing
> GA> wrong?
>
>     Can you define 'messed up form'?  Can you provide the header of
> the SVG Document?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
--
########################################
georg@apitz.de
www.ge-org.com

Unser Leben ist das, wozu es unser Denken macht.
########################################


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


Re: writeDocument link

Posted by "Georg A." <at...@eva.mpg.de>.
any suggestions to solve or tackle this problem?

cheers

Georg
  |
  |
  |
\ /
On Thursday, Jun 5, 2003, at 18:52 Europe/Berlin, Georg A. wrote:

>
>>    By 'processor' I mean XML processor - i.e. your code most likely.
>> What are you doing with the document between the time you load it and 
>> you
>> write it out?
>
> sorry :)
> that's all I do:
>
> double left = 478;  // 478 0 Meridian // 470 Mittelpunkt der Karte 
> (130, 83 sind die koordinaten von Dtl. jc)
> double top = 238;   // 238 Aequator   // 205 Mittelpunkt der Karte,
> int width = 6;
> int height = 6;
>
> Shape circle = new Ellipse2D.Double(left,top,width,height);
> selfgraphics.setPaint(Color.red);
> selfgraphics.fill(circle);
> graphicnode = doc.getElementById("dotlayer");
> selfgraphics.getRoot(graphicnode); // puts the graphics into the 
> "dotlayer"
>
>
> svgCanvas.setSVGDocument(svgdoc);
>
> the streaming process is in a extra function
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
> --
> ########################################
> georg@apitz.de
> www.ge-org.com
>
> Unser Leben ist das, wozu es unser Denken macht.
> ########################################
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
--
########################################
georg@apitz.de
www.ge-org.com

Unser Leben ist das, wozu es unser Denken macht.
########################################


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


Re: writeDocument link

Posted by "Georg A." <at...@eva.mpg.de>.
>    By 'processor' I mean XML processor - i.e. your code most likely.
> What are you doing with the document between the time you load it and 
> you
> write it out?

sorry :)
that's all I do:

double left = 478;  // 478 0 Meridian // 470 Mittelpunkt der Karte 
(130, 83 sind die koordinaten von Dtl. jc)
double top = 238;   // 238 Aequator   // 205 Mittelpunkt der Karte,
int width = 6;
int height = 6;

Shape circle = new Ellipse2D.Double(left,top,width,height);
selfgraphics.setPaint(Color.red);
selfgraphics.fill(circle);
graphicnode = doc.getElementById("dotlayer");
selfgraphics.getRoot(graphicnode); // puts the graphics into the 
"dotlayer"


svgCanvas.setSVGDocument(svgdoc);

the streaming process is in a extra function
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
--
########################################
georg@apitz.de
www.ge-org.com

Unser Leben ist das, wozu es unser Denken macht.
########################################


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


Re: writeDocument link

Posted by Thomas DeWeese <Th...@Kodak.com>.
Georg A. wrote:

>
> On Wednesday, Jun 4, 2003, at 14:54 Europe/Berlin, Thomas E Deweese 
> wrote:
>
>>     Well the problem is someone has deleted most of the white space
>> the interesting bit is that this seems to only effect elements in the
>> SVG namespace.  So I suspect that the problem is not just the UTF but
>> something about what ever is 'processing' the document (otherwise it
>> would delete whitespace for everything).  I suspect the processor is
>> not 'copying' TextNodes except as children of svg text elements.  But
>> these text nodes are what contain the formatting of the XML.
>>
>
> So do I have to buy a new processor or is there any other solution?

    By 'processor' I mean XML processor - i.e. your code most likely.
What are you doing with the document between the time you load it and you
write it out?




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


Re: writeDocument link

Posted by "Georg A." <at...@eva.mpg.de>.
On Wednesday, Jun 4, 2003, at 14:54 Europe/Berlin, Thomas E Deweese 
wrote:
>     Well the problem is someone has deleted most of the white space
> the interesting bit is that this seems to only effect elements in the
> SVG namespace.  So I suspect that the problem is not just the UTF but
> something about what ever is 'processing' the document (otherwise it
> would delete whitespace for everything).  I suspect the processor is
> not 'copying' TextNodes except as children of svg text elements.  But
> these text nodes are what contain the formatting of the XML.
>

So do I have to buy a new processor or is there any other solution?
--
########################################
georg@apitz.de
www.ge-org.com

Unser Leben ist das, wozu es unser Denken macht.
########################################


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


Re: writeDocument link

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "GA" == Georg A <at...@eva.mpg.de> writes:

GA> at http://www.ge-org.com/batik you find a file SOV.svg, this is
GA> the messed up one the worldcollapsed_jc.svg is the one how it
GA> should look like

    Well the problem is someone has deleted most of the white space
the interesting bit is that this seems to only effect elements in the
SVG namespace.  So I suspect that the problem is not just the UTF but
something about what ever is 'processing' the document (otherwise it
would delete whitespace for everything).  I suspect the processor is
not 'copying' TextNodes except as children of svg text elements.  But
these text nodes are what contain the formatting of the XML.

GA> cheers

GA> Georg

GA> On Wednesday, Jun 4, 2003, at 14:23 Europe/Berlin, Thomas E
GA> Deweese wrote:

>>>>>>> "GA" == Georg A <at...@eva.mpg.de> writes:
>>
GA> Hi, if I use:
>>  Writer filewriter = new OutputStreamWriter(file, "UTF-8");
>> DOMUtilities.writeDocument(svgdoc,filewriter);
>> 
GA> my svgdoc is streamed but in a messed up form what am I doing
GA> wrong?
>>  Can you define 'messed up form'?  Can you provide the header of
>> the SVG Document?
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
>> additional commands, e-mail: batik-users-help@xml.apache.org
>> 
>> 
GA> -- ######################################## georg@apitz.de
GA> www.ge-org.com

GA> Unser Leben ist das, wozu es unser Denken macht.
GA> ########################################


GA> ---------------------------------------------------------------------
GA> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
GA> 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