I think this is a bug in PrettyPrinter in batik.
If you just dump the SVGDocument into an outputstream, everything is
fine.

George

-----Original Message-----
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2003 9:18 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: SVG output special character

> -----Original Message-----
> From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Zhong Yi [mailto:[EMAIL PROTECTED]
> >
> <snip/>
> > If you look at the SVG, it actually break one word
> > into two lines.
> >
>
> I also tested it using "Boy&apos;s" but the string gets broken up
anyway.
> (Why? No idea... maybe we should try this with a different parser?)

Just a bit of follow-up...

Possible location (remote guess) :

org.apache.fop.svg.SVGUtilities
Line 158: org.w3c.dom.Text text = doc.createTextNode( str );

Or, even more likely, somewhere just before the string gets here.

In any case, since a line-break shows up in a text editor, but none in
the
svg
...
--a UTF-16 / UTF-8 problem?

HexEdit shows a &#x000A; being added after the &apos; in the resulting
svg
(as well as a lot of spaces &#x0020; for the indent, which, if I'm
correct,
seems to point to two text nodes actually being created in the DOM...)

Then again, what is the particular difference between:
>
> <fo:block>
>   Boy<fo:inline>&apos;</fo:inline>s
> </fo:block>
>
and
<fo:block>
  Boy&apos;s
</fo:block>

Anyone?

Cheerz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to