Hi Michael,

Michael Halpin wrote:
> I realize that orphans according to fop are the first line of a
> paragraph  at the bottom of a page where the rest of the paragraph
> breaks onto the next page.  In traditional editing an orphan is a lone
> word at the end of a paragraph.

Just curious: how do you then call the first line of a paragraph alone
at the bottom of a page? Do you have a special term for that?

(And FWIW: it’s not FOP that calls that ‘orphan’, it’s the XSL-FO
standard that FOP implements. It’s not our fault ;-) )


> Does anyone know if there is a way to
> tell fop to either suck up the word to the previous line or to bump a
> word down automatically as to avoid orphans at the end of a paragraph.

There’s no setting to automatically achieve that, I’m afraid. What you
can do is insert a non-breaking space (U+00A0) between the last two
words of the paragraph. If the last word then becomes hyphenated, you
will also have to insert word joiners (U+2060) at each possible
hyphenation place in the last word. Be sure the encoding of the FO file
is UTF-8.

This may sound tedious, but if you are proof-reading a final copy
hopefully you will have to fix only a few paragraphs. You can also
implement some XSLT magic to automatically insert a non-breaking space
between the last two words of each paragraph, and as an approximation
a word joiner between each letter of the last word.

HTH,
Vincent


-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

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

Reply via email to