Newbie needs help controlling line wrap in PDF

2006-10-18 Thread Dan Carwin
Hello,

I am a new user of FOP and new to XML docs in general.  I did do some
searching before this email on the archives looking for running off
page and off page and I saw a thread on images, but not on text
elements.  Any help is greatly appreciated.

Issue:
==
Program Listing elements run off the right margin of the page when
converting to PDF
URL attributes of a ULINK also run off the page

Is there a way to control this? Or is there a better element type to use
to represent command line commands?

Environment notes:
==
I use XML Mind Editor 3.2 to edit the docs.

Here is an example of the command I am using to convert into PDF (direct
from XML).

C:\Program Files\apacheFOP\fop-0.92beta\fop.bat -xml
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml
-xsl E:\data\docbook\docbook-xsl-1.70.1\fo\docbook.xsl -pdf
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml.p
df


Thanks,
Dan Carwin

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



How to make directives look better? Customizing/defining elements and formatting...

2006-10-18 Thread Dan Carwin
This is another newb question, and please forgive me as I fear it is off
topic for this list. 
(please point me in the right direction)

Quick version:
==
Where and how do I define new element types?  (How) Can I import
existing ones I like from the ASF?


Explanation
===
I am writing technical documentation and need to document Apache HTTPD
conf file directives.

Example:
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#acceptmutex

In the Apache docs (linked above) there is a really nice format for a
directive which encapsulates the directive in a box and formats the
header elements of the directive in bold, etc.  

I am currently using a table to format my directives, and they look
like crap. :)  Especially when converted to PDF, as the first column of
the table takes up 80% of the page width and the second column is right
off the page:

Example: http://www.sonic.net/dcarwin/images/directive-example.jpg

Thus the question is how can I make my directive definitions look like
the ASF's?

Best I can tell I have to define or import new custom elements, such as
directivesynopsis which are used in the ASF docs, which are not
defined currently in the list of element types I have access to.  These
new element definitions also have to include instructions to FOP on how
to format them when converted to PDF. (right?)

Environment notes:
==
I use XML Mind Editor 3.2 to edit the docs.

Here is an example of the command I am using to convert into PDF (direct
from XML).

C:\Program Files\apacheFOP\fop-0.92beta\fop.bat -xml
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml
-xsl E:\data\docbook\docbook-xsl-1.70.1\fo\docbook.xsl -pdf
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml.p
df


Thanks,
Dan Carwin
[EMAIL PROTECTED]


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



RE: Newbie needs help controlling line wrap in PDF

2006-10-18 Thread Dan Carwin
Thanks Jay,

Here is an example of the kind of text block that falls off the page:

...
section
titleDB libraries/title

paraPlease note that compat-db package is required on Linux
platform
as the dynamically linked libdb.so.3 library depends on the
compat-db
libraries. Some of Linux systems, for example RedHat AS4, do not
have
this package installed by default./para

paraIn the absence of this package, the following error occurs
during server startup:/para

paraprogramlistinghttpsd.prefork: error while loading shared
libraries: libdb.so.3: cannot open shared 
  object file: No such file or directory
  Server start FAILED/programlisting/para

paraThere is a workaround for this error. See: ulink
 
url=https://www.covalent.net/kb/index.html?kba_id=414amp;drop_product=
amp;drop_category=amp;drop_subproduct=amp;txt_search=414amp;drop_sea
rchby=article+idCovalent
Knowledge Base Article ID: 414/ulink The workaround is to
create a
symbolic link to an existing DB library./para
  /section
/section


It is the first line of the programlisting element which will not
wrap, as well as the url portion of the ulink element.
Note that the programlisting element does have spaces.

I'll read up on XSLT to see if I can write a transform.

Thanks,
Dan

-Original Message-
From: Jay Bryant [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2006 4:07 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Newbie needs help controlling line wrap in PDF


Hi, Dan,

You didn't include an example of an offending text block, but I'm
guessing 
that you have really long strings that don't contain spaces.

One way to deal with that is to add another processing step in your
chain of 
processing steps before you get to FOP.

In XSLT, you can write a transform that identifies strings with more
than 
some number of characters and then chops those strings (perhaps into 
separate blocks, if you like). You can do similar things with other 
languages, of course.

HTH

Jay Bryant
Bryant Communication Services


- Original Message - 
From: Dan Carwin [EMAIL PROTECTED]
To: fop-users@xmlgraphics.apache.org
Sent: Wednesday, October 18, 2006 4:44 PM
Subject: Newbie needs help controlling line wrap in PDF


Hello,

I am a new user of FOP and new to XML docs in general.  I did do some
searching before this email on the archives looking for running off
page and off page and I saw a thread on images, but not on text
elements.  Any help is greatly appreciated.

Issue:
==
Program Listing elements run off the right margin of the page when
converting to PDF
URL attributes of a ULINK also run off the page

Is there a way to control this? Or is there a better element type to use
to represent command line commands?

Environment notes:
==
I use XML Mind Editor 3.2 to edit the docs.

Here is an example of the command I am using to convert into PDF (direct
from XML).

C:\Program Files\apacheFOP\fop-0.92beta\fop.bat -xml
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml
-xsl E:\data\docbook\docbook-xsl-1.70.1\fo\docbook.xsl -pdf
E:\data\covalentDocumentation\new-xml-docs\ERS-3.1.0-Release_Notes.xml.p
df


Thanks,
Dan Carwin

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