Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2013 15:23:14 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-projects@freebsd.org
Subject:   svn commit: r42285 - projects/db5/share/xsl
Message-ID:  <201307151523.r6FFNEOs045331@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gabor
Date: Mon Jul 15 15:23:13 2013
New Revision: 42285
URL: http://svnweb.freebsd.org/changeset/doc/42285

Log:
  - Enable FOP extensions, which eliminate most of the warnings and turn on
    some advanced features, like PDF bookmarks.
  - Allow breaking lines of verbatim elements at spaces.  Such a break is
    denoted with a special arrow symbol.  This technique is commonly used
    in technical books to present long source lines.
  - Use other monospace font, that has an appropriate arrow symbol for this.
  - Add some padding to verbatim environments.

Modified:
  projects/db5/share/xsl/freebsd-fo.xsl

Modified: projects/db5/share/xsl/freebsd-fo.xsl
==============================================================================
--- projects/db5/share/xsl/freebsd-fo.xsl	Mon Jul 15 13:15:06 2013	(r42284)
+++ projects/db5/share/xsl/freebsd-fo.xsl	Mon Jul 15 15:23:13 2013	(r42285)
@@ -18,6 +18,9 @@
 	FO-SPECIFIC PARAMETER SETTINGS
   -->
 
+  <!-- We use FOP -->
+  <xsl:param name="fop1.extensions" select="1"/>
+
   <!-- Paper settings -->
   <xsl:param name="paper.type">B5</xsl:param>
   <xsl:param name="double.sided" select="1"/>
@@ -76,11 +79,12 @@
 
   <!-- Hyphenation -->  
   <xsl:param name="hyphenate">true</xsl:param>
-  <xsl:param name="hyphenate.verbatim" select="0"/>
+  <xsl:param name="hyphenate.verbatim" select="1"/>
   <xsl:param name="hyphenate.verbatim.characters"> </xsl:param>
 
   <!-- Base Fonts -->
   <xsl:param name="body.font.master">9.5</xsl:param>
+  <xsl:param name="monospace.font.family">DejaVu Sans Mono</xsl:param>
 
   <!-- Property sets -->
   <xsl:attribute-set name="chapter.title.properties">
@@ -139,14 +143,17 @@
   <xsl:attribute name="space-before">12pt</xsl:attribute>
   <xsl:attribute name="space-after">0</xsl:attribute>
   <xsl:attribute name="hyphenate">false</xsl:attribute>
-  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
   <xsl:attribute name="white-space-collapse">false</xsl:attribute>
   <xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
   <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
   <xsl:attribute name="text-align">start</xsl:attribute>
   <xsl:attribute name="background-color">rgb(192,192,192)</xsl:attribute>
   <xsl:attribute name="wrap-option">wrap</xsl:attribute>
-  <xsl:attribute name="hyphenation-character">&#x25C4;</xsl:attribute>
+  <xsl:attribute name="hyphenation-character">&#x21BA;</xsl:attribute>
+  <xsl:attribute name="padding-right">3pt</xsl:attribute>
+  <xsl:attribute name="padding-top">3pt</xsl:attribute>
+  <xsl:attribute name="padding-left">3pt</xsl:attribute>
+  <xsl:attribute name="padding-bottom">3pt</xsl:attribute>
   </xsl:attribute-set>
 
   <xsl:attribute-set name="table.caption.properties">



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307151523.r6FFNEOs045331>