fop-users  

Re: Adding an image or character to denote line-wrap locations?

Jared Smith
Tue, 09 Feb 2010 06:56:16 -0800

On Tue, 2010-02-09 at 11:03 +0000, Vincent Hennebert wrote:
> To my knowledge there is no possibility to achieve that in plain XSL-FO.
> I think the best way of handling this issue is to perform line breaks
> manually. That’s probably what you want anyway, as you will break at
> sensible places while an automatic process would blindly break after,
> say, each 80 characters, be it in the middle of a keyword or not.

Is this simply a missing feature in FOP, or something missing in XSL-FO?
I see many XSL stylesheets do something like:

<xsl:attribute-set name="monospace.verbatim.properties"
use-attribute-sets="verbatim.properties monospace.properties">
   <xsl:attribute name="text-align">start</xsl:attribute>
   <xsl:attribute name="wrap-option">wrap</xsl:attribute>
   <xsl:attribute name="hyphenation-character">\</xsl:attribute>
</xsl:attribute-set>

But FOP doesn't even add the hyphenation character at all when it wraps
a long line.

--
Jared Smith
Digium, Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org