Re: Generating ASCII output

2003-02-10 Thread Fabrizio Tringali
I agree on
"in general terms an XSL Formatting engine is the wrong tool for generating
Character Text output",

but if you "must" use TXTRenderer because you need something that simulate
PdfOutput etc. etc.
you can set textCPI and textLPI so:

TXTRenderer renderer = new TXTRenderer();
renderer.textCPI=12;
renderer.textLPI=6.1f;
driver.setRenderer(renderer);

hope this help





From: "Illiano, Vincent"


> 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
> >


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



RE : Generating ASCII output

2003-02-10 Thread Philippe PITHON
to want to create pure XSL (for ASCII output) after having made XSLFO is
perhaps not either the good solution!  
 
for example, in XSLFO, if a table overflows on another page, the heading
of page it's repeated 

it's XSLFO which automatically calculates the number of line per page 

But, in pure XSL (for ASCII output), how automatically to put a number
of line per page and to repeat the headings?  
 
Philippe.

-Message d'origine-
De : Illiano, Vincent [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 7 février 2003 20:35
À : '[EMAIL PROTECTED]'
Objet : RE: Generating ASCII output

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:
> >
> > >line-height="10.4pt">
> >
> >
> >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]



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



RE: Generating ASCII output

2003-02-07 Thread Illiano, Vincent
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:
> >
> > >line-height="10.4pt">
> >
> >
> >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]



Re: Generating ASCII output

2003-02-07 Thread Fabrizio Tringali
you have to play with textCPI, textLPI and line-height values

hi





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:
>
>  line-height="10.4pt">
> 
>
> Thanks for any information on this.  -Vincent
>


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



Re: Generating ASCII output

2003-02-07 Thread Chris Bowditch
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:



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]