Thanks Tom for all your help with this. I am generating FO files from
RTF files with a handy utility called RTF2FO. Fontunately, one of the
options i can use with this is to set the encoding output. So, what i
tried to do in the mean time was to change this to ISO-8859-1.
I did do this, and it did output the FO file in that format. Now, in
the FO file i get the familiar character references that we would
normally see in svg.
For instance, • is now embedded instead of the previous
character references. However, the resultant SVG from the FO Processor
still does not include those references, just ?'s.
I have a work-around in place for now. I think i might post this on
the FOP user group, too. I can also try the your reader suggestion.
On Tue, 18 Jan 2005 08:06:00 -0500, Thomas DeWeese
<[EMAIL PROTECTED]> wrote:
> Dave Austin wrote:
>
> > I'm not sure if this is more of an FOP problem, or if it is Batik.
>
> I suspect it's a character encoding problem.
>
> > I'm posting on this board because I read that FOP uses Batik for
> > conversion to SVG anyway. The font face is "Symbol" and the text
> > inside is: \342\200\242. When I run FOP, it always replaces these
> > bullets with ?'s.
>
> Looking at the attached document that fails then encoding is:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> I suspect that the character you are referencing in the fo file
> (which is encoded using UTF-8) doesn't have a mapping to this
> encoding. I would suspect the windows<->linux difference is
> due to a different default encoding.
>
> I would suggest providing a Reader explicitly to the stream call
> and construct the reader with a UTF-8 encoding specification.
>
>
> > Obviously what is happening here is the FOP cannot determine the
> > glyph associated with the "Symbol" font and is substituting ?'s.
>
> I don't think this is the problem, if this were the problem
> you would probably get bad text layout.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root line-stacking-strategy="font-height" xmlns:fo="http://www.w3.org/1999/XSL/Format"><fo:layout-master-set><fo:simple-page-master margin-bottom="36pt" margin-left="85.05pt" margin-right="42.5pt" margin-top="36pt" master-name="pm0" page-height="792pt" page-width="612pt"><fo:region-body margin-bottom="20.7pt" margin-top="20.7pt" overflow="visible" region-name="body"/><fo:region-before extent="720pt" overflow="visible" region-name="header"/><fo:region-after display-align="after" extent="20.7pt" overflow="hidden" region-name="footer"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="pm0" orphans="2" white-space-collapse="false" widows="2"><fo:flow flow-name="body"><fo:block keep-with-next.within-column="always" line-height="0pt"><fo:leader line-height="0pt"/></fo:block><fo:block end-indent="0pt" keep-with-next.within-column="always" line-height="19.7pt" space-after="3pt" space-before="12pt" start-indent="0pt" text-align="center" text-indent="0pt"><fo:inline font-family="Arial, sans-serif" font-size="16pt" font-weight="bold">My Shopping List</fo:inline></fo:block><fo:block line-height="14.75pt"><fo:leader line-height="14.75pt"/></fo:block><fo:block line-height="14.75pt"><fo:leader line-height="14.75pt"/></fo:block><fo:list-block><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Milk</fo:inline></fo:block></fo:list-item-body></fo:list-item><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Eggs</fo:inline></fo:block></fo:list-item-body></fo:list-item><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Bread</fo:inline></fo:block></fo:list-item-body></fo:list-item><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Snacks</fo:inline></fo:block></fo:list-item-body></fo:list-item></fo:list-block></fo:flow></fo:page-sequence></fo:root>
<?xml version="1.0" encoding="ISO-8859-1"?>
<svg contentScriptType="text/ecmascript" width="612.0"
xmlns:xlink="http://www.w3.org/1999/xlink" zoomAndPan="magnify"
contentStyleType="text/css" height="792.0"
preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"
version="1.0">
<g id="Page-1" style="font-family:sanserif;font-size:12"
transform="translate(0,0.0)">
<rect width="612.0" x="0.0" height="792.0" y="0.0"
style="fill:none;stroke:black"/>
<text x="258.84" y="83.54999" style="font-size:16.0;font-weight:bold">
My
</text>
<text x="287.289" y="83.54999" style="font-size:16.0;font-weight:bold">
Shopping
</text>
<text x="367.266" y="83.54999" style="font-size:16.0;font-weight:bold">
List
</text>
<text x="103.05" y="139.97498" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="139.97498"
style="font-family:Times Roman;font-size:18.0">
Milk
</text>
<text x="103.05" y="163.125" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="163.125"
style="font-family:Times Roman;font-size:18.0">
Eggs
</text>
<text x="103.05" y="186.27502" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="186.27502"
style="font-family:Times Roman;font-size:18.0">
Bread
</text>
<text x="103.05" y="209.42499" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="209.42499"
style="font-family:Times Roman;font-size:18.0">
Snacks
</text>
<a xlink:href="#svgView(viewBox(0, 0.0, 612, 792))" xlink:type="simple"
xlink:actuate="onRequest" xlink:show="replace"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="306.0" x="0.0" height="792.0" y="0.0"
style="fill:blue;visibility:hidden"/>
</a>
</g>
</svg>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]