xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Bowditch" <bowditch_ch...@hotmail.com>
Subject Re: Generating ASCII output
Date Fri, 07 Feb 2003 17:16:06 GMT
Hi Vincent,

in general terms an XSL Formatting engine is the wrong tool for generating 
Character Text output.

A XSL Formatting engine works with precise coordinates for formatting 
objects, i.e. the text and when this is translated by a Text Renderer, the 
coordinates must be rounded to the nearest line or character offset. Hence 
why some lines sit ontop of one another and spacing between characters is 
not right.

I recommend you write an XSL stylesheet that processes your XML directly to 
Text. Theres no need for an XSL Formatter to work out pre-cise coordinates 
for your text, only to convert these coordinates back to a character driven 
textual output.

>From: "Illiano, Vincent" <ILLIA001@onyx.dcri.duke.edu>
>Hi List,
>I've built a document-generation system around FOP to create both PDF and
>ASCII text documents.  To create the ASCII text output file, I use the -txt
>command line argument to FOP.  I have a couple of small problems with the
>ASCII text output.  Every 30 lines or so in the generated output file, a
>line of output is written over the previous output line. The next line,
>instead of being written on a new line, is written again over the previous
>line.  Visually, the 2nd line overlays the previous line.  Characters on 
>previous line will show in the output if the next line contains a space at
>that character position.
>Another problem I'm seeing is that every so often, there is no space 
>words in the text output.
>So I'm wondering if I've defined my document correctly for ASCII output.  
>I using the wrong font-family, font-size, line-height?  There is are my
>current settings:
><fo:root text-align="start" font-size="7.2pt" font-family="Courier"
>Thanks for any information on this.  -Vincent
>To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
>For additional commands, e-mail: fop-user-help@xml.apache.org

MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk

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

View raw message