TEXT output justification

Here should go questions about transforming XML with XSLT and FOP.
fncll
Posts: 8
Joined: Wed Mar 31, 2004 5:20 am

TEXT output justification

Post by fncll »

I'm following the Oxygen XML help instructions (below) for creating text output. How do I stop the horrible justification of the plain text output that puts no spaces between some words and extras between others. such as:

For our purposes,the freeaccount levelismore than adequate.

c

***
TXT Output

Change directory to [oxygen]/frameworks/docbook/xsl/fo/.
Select docbook.xsl, click Open. The dialog closes.
Select the FOP tab.
Check the Perform FOP option. The remaining options are enabled.
Select the following options:
XSLT result as input.
TXT as method.
Built-in(Apache FOP) as processor.
Select the Output tab.
In the Save As field enter the output file name relative to the current directory (YourFileName.txt ) or the path and output file name (C:\FileDirectory\YourFileName.txt).
Optionally, uncheck the XHTML and XML check boxes in the Show As group.
Click Transform Now. The transformation is started.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

The FOP text renderer is not powerful as the PDF renderer. For avoiding the spacing problems you should set the following Docbook parameters:

* body.font.family="Courier"
* title.font.family="Courier"
* body.font.size="7.3pt"

Regards,
Sorin
Post Reply