Bug#586469: fop: does not respect hyphenation="false" with fo:basic-link
brian m. carlson
sandals at crustytoothpaste.net
Sat Jun 19 19:51:09 UTC 2010
Package: fop
Version: 1:0.95.dfsg-11
Severity: normal
I have fop set up with the appropriate facilites for English
hyphenation. In the document I'm working on, there is a link to a
website. When the DocBook XSL-NS stylesheets generate a link in XSL-FO,
it includes the URL in brackets. In the FO, they look like:
<fo:basic-link external-destination="url(http://creativecommons.org/licenses/GPL/2.0/)">
<fo:inline>the GNU General Public License as published by the Free Software Foundation: version 2 of the License, dated June 1991</fo:inline>
</fo:basic-link>
<fo:inline hyphenate="false"> [<fo:basic-link external-destination="url(http://creativecommons.org/licenses/GPL/2.0/)">http://creativecommons.org/licenses/GPL/2.0/</fo:basic-link>]</fo:inline>
The latter case, where the URL is in brackets, should not be hyphenated,
because hyphenate="false" on the enclosing fo:inline, and hyphenate is
inherited. However, fop hyphenates the link anyway. The offending text
is present on page 2 of the document, in the first paragraph under
"License".
Attached are the XSL-FO and the PDF of the document; the former is
bzip2'd, while the latter is not. Also attached is the FOP
configuration file that is used when building from ant.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages fop depends on:
ii default-jre-headless [jav 1.6-36 Standard Java or Java compatible R
ii gcj-4.4-jre-headless [jav 4.4.4-3 Java runtime environment using GIJ
ii gcj-jre-headless [java2-r 4:4.4.4-2 Java runtime environment using GIJ
ii gij-4.3 [java2-runtime-he 4.3.4-4 The GNU Java bytecode interpreter
ii java-wrappers 0.1.16 wrappers for java executables
ii libavalon-framework-java 4.2.0-7 Common framework for Java server a
ii libbatik-java 1.7-6 xml.apache.org SVG Library
ii libbsf-java 1:2.4.0-3 Bean Scripting Framework to suppor
ii libcommons-io-java 1.4-3 Common useful IO related classes
ii libcommons-logging-java 1.1.1-8 commmon wrapper interface for seve
ii libxalan2-java 2.7.1-5 XSL Transformations (XSLT) process
ii libxerces2-java 2.9.1-4.1 Validating XML parser for Java wit
ii libxml-commons-external-j 1.3.05-2 XML Commons external code - DOM, S
ii libxmlgraphics-commons-ja 1.3.1.dfsg-5 reusable components used by Batik
ii libxp6 1:1.0.0.xsf1-2 X Printing Extension (Xprint) clie
ii libxt6 1:1.0.7-1 X11 toolkit intrinsics library
ii libxtst6 2:1.1.0-2 X11 Testing -- Resource extension
ii openjdk-6-jre-headless [j 6b18-1.8-2 OpenJDK Java runtime, using Hotspo
Versions of packages fop recommends:
ii libsaxon-java 1:6.5.5-6 The Saxon XSLT Processor
Versions of packages fop suggests:
ii fop-doc 1:0.95.dfsg-11 Documentation for fop
ii libservlet2.4-java 5.0.30-12 Servlet 2.4 and JSP 2.0 Java libra
-- no debconf information
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: an-orange-in-flight.fo.bz2
Type: application/octet-stream
Size: 12158 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20100619/aad1ec41/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: an-orange-in-flight.pdf
Type: application/pdf
Size: 184257 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20100619/aad1ec41/attachment-0001.pdf>
-------------- next part --------------
<?xml version="1.0"?>
<!--
This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.
Relative config url's will be resolved relative to
the location of this file.
-->
<!-- NOTE: This is the version of the configuration -->
<fop version="1.0">
<!-- Base URL for resolving relative URLs -->
<base>.</base>
<hyphenation-base>file:///etc/fop/hyph/</hyphenation-base>
<font-base>file:///usr/local/share/fonts/</font-base>
<!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
<source-resolution>72</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>72</target-resolution>
<!-- Default page-height and page-width, in case
value is specified as auto -->
<default-page-settings height="11in" width="8.5in"/>
<!-- Information for specific renderers -->
<!-- Uses renderer mime type for renderers -->
<renderers>
<renderer mime="application/pdf">
<filterList>
<!-- provides compression using zlib flate (default is on) -->
<!--<value>flate</value>-->
<!-- encodes binary data into printable ascii characters (default off)
This provides about a 4:5 expansion of data size -->
<!-- <value>ascii-85</value> -->
<!-- encodes binary data with hex representation (default off)
This filter is not recommended as it doubles the data size -->
<!-- <value>ascii-hex</value> -->
</filterList>
<fonts>
<!-- embedded fonts -->
<!--
This information must exactly match the font specified
in the fo file. Otherwise it will use a default font.
For example,
<fo:inline font-family="Arial" font-weight="bold" font-style="normal">
Arial-normal-normal font
</fo:inline>
for the font triplet specified by:
<font-triplet name="Arial" style="normal" weight="bold"/>
If you do not want to embed the font in the pdf document
then do not include the "embed-url" attribute.
The font will be needed where the document is viewed
for it to be displayed properly.
possible styles: normal | italic | oblique | backslant
possible weights: normal | bold | 100 | 200 | 300 | 400
| 500 | 600 | 700 | 800 | 900
(normal = 400, bold = 700)
-->
<directory recursive="true">/usr/local/share/fonts/</directory>
<directory recursive="true">/usr/share/fonts/</directory>
<auto-detect />
</fonts>
<!-- This option lets you specify additional options on an XML handler -->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/postscript">
<!-- This option forces the PS renderer to rotate landscape pages -->
<!--auto-rotate-landscape>true</auto-rotate-landscape-->
<!-- This option lets you specify additional options on an XML handler -->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/vnd.hp-PCL">
</renderer>
<!-- MIF does not have a renderer
<renderer mime="application/vnd.mif">
</renderer>
-->
<renderer mime="image/svg+xml">
<format type="paginated"/>
<link value="true"/>
<strokeText value="false"/>
</renderer>
<renderer mime="application/awt">
</renderer>
<renderer mime="text/xml">
</renderer>
<!-- RTF does not have a renderer
<renderer mime="text/rtf">
</renderer>
-->
<renderer mime="text/plain">
<pageSize columns="80"/>
</renderer>
</renderers>
</fop>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20100619/aad1ec41/attachment-0001.pgp>
More information about the pkg-java-maintainers
mailing list