svn commit: r42278 - projects/db5/share/xsl
Gabor Kovesdan
gabor at FreeBSD.org
Sun Jul 14 08:24:02 UTC 2013
Author: gabor
Date: Sun Jul 14 08:24:02 2013
New Revision: 42278
URL: http://svnweb.freebsd.org/changeset/doc/42278
Log:
- Enable hyphenation
Modified:
projects/db5/share/xsl/freebsd-fo.xsl
Modified: projects/db5/share/xsl/freebsd-fo.xsl
==============================================================================
--- projects/db5/share/xsl/freebsd-fo.xsl Sat Jul 13 22:45:46 2013 (r42277)
+++ projects/db5/share/xsl/freebsd-fo.xsl Sun Jul 14 08:24:02 2013 (r42278)
@@ -75,7 +75,7 @@
<xsl:template name="image.scalefit">1</xsl:template>
<!-- Hyphenation -->
- <xsl:param name="hyphenate">false</xsl:param>
+ <xsl:param name="hyphenate">true</xsl:param>
<xsl:param name="hyphenate.verbatim" select="0"/>
<xsl:param name="hyphenate.verbatim.characters"> </xsl:param>
@@ -418,4 +418,12 @@
</xsl:if>
</xsl:template>
+ <!-- FOP hyphenation bug workaround -->
+ <xsl:template match="db:anchor">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <fo:inline id="{$id}">​</fo:inline>
+ </xsl:template>
+
</xsl:stylesheet>
More information about the svn-doc-projects
mailing list