On Wed, Mar 10, 2010 at 3:43 AM, Brad Smith <[email protected]> wrote: > Is it possible to make it so lines that are broken within a block have > some sort of graphic or character denoting the fact? For example, > suppose I start with docbook like this:
Did you see: http://www.sagehill.net/docbookxsl/FittingText.html#BreakLongLines ... This will break a long line on a space between words, but it leaves no indication that the first line should logically be continued with the second line. It would be better if the line break inserted a character at the end of the first line that indicated the line break. You can do that by setting the hyphenate.verbatim parameter to 1. You also need to add another attribute to the attribute set: <xsl:attribute-set name="monospace.verbatim.properties"> <xsl:attribute name="wrap-option">wrap</xsl:attribute> <xsl:attribute name="hyphenation-character">\</xsl:attribute> </xsl:attribute-set> The second attribute hyphenation-character identifies the character to use when the line is broken, in this case a backslash. You could use any Unicode character you like, but the character has to be available to the XSL-FO processor at that point. Note that FOP does not support the hyphenate.verbatim feature at all. ... HTH -- Mathieu --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
