Thanks for the tip. I may indeed end up doing what you suggest - use Xalan directly to get text output. But before I take that plunge, some have mentioned tweaking textCPI and textLPI. How is this done? In the stylesheet? If it requires modifying the FOP Java code, I'd rather not ;)
Thanks again, -Vincent > ---------- > From: Chris Bowditch[SMTP:[EMAIL PROTECTED] > Reply To: [EMAIL PROTECTED] > Sent: Friday, February 07, 2003 12:16 PM > To: [EMAIL PROTECTED] > Subject: Re: Generating ASCII output > > 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" <[EMAIL PROTECTED]> > > > >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 > >the > >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 > >between > >words in the text output. > > > >So I'm wondering if I've defined my document correctly for ASCII output. > > >Am > >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" > >line-height="10.4pt"> > ></fo:root> > > > >Thanks for any information on this. -Vincent > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > _________________________________________________________________ > MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk > > > --------------------------------------------------------------------- > 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]
