Regarding the hyphenation-character property in XSL-FO:
<xsl:attribute name="hyphenation-character">\</xsl:attribute>
but "\" does not create a break.
That attribute value does not indicate a character that permits a line break. That is
the character that is presented at the end of a line after the XSL-FO formatter breaks
the line. Typically that is a hyphen "-", but in a programlisting some people use "\"
or a return arrow character to indicate that the current line logically continues on
the next line.
If you want long programlisting lines to break on certain characters in the content,
then the stylesheet feature you are looking for is controlled by the
'hyphenate.verbatim' and 'hyphenate.verbatim.characters' parameters:
http://docbook.sourceforge.net/release/xsl/current/doc/fo/hyphenate.verbatim.html
http://docbook.sourceforge.net/release/xsl/current/doc/fo/hyphenate.verbatim.characters.html
However, I'm not sure FOP supports this feature yet. It didn't in version 0.95, but
it might in 1.0. Has anyone tried it with 1.0?
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Lwam Berhane" <[email protected]>
To: <[email protected]>
Sent: Tuesday, December 14, 2010 3:20 AM
Subject: [docbook-apps] fop-hyph.jar and fop-pdf-images-1.0.jar +
PDFBox-0.7.4-dev.jar
Hey guys!
I know that this question was discussed few days ago, but i was
consfused by not knowing how I integrate a plugin in fop.I tried one
plug-in for hyphenation and one plug-in fpr pdf images.
I copied fop-hyph.jar and fop-pdf-images-1.0.jar + PDFBox-0.7.4-dev.jar
onto the same level of fop.jar!
first problem:
I use following parameter for hyphenation in my stylesheet:
<xsl:attribute-set name="monospace.verbatim.properties">
<xsl:attribute name="font-family">Courier</xsl:attribute>
<xsl:attribute name="font-size">8pt</xsl:attribute>
<xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="hyphenation-character">\</xsl:attribute>
but "\" does not create a break.
second problem:
pdf-images, are they running with fop 1.x?
And which elementtag do i use in my xml? and which params in my stylesheet?
Thanks in advance!
--
Gruß Lwam Berhane
punkt.de GmbH TYPO3-Internet-Dienstleistungen-Beratung
Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100
76133 Karlsruhe [email protected] http://punkt.de/
AG Mannheim 108285 Gf: Jürgen Egeling
---------------------------------------------------------------------
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]