diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-07-15 15:23:13 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-07-15 15:23:13 +0000 |
commit | 617b5b57d263ee7039e6f82753f26d78cde40d5e (patch) | |
tree | 74fe2fc12bbb8a95f9cd6549836553ad09a972cb | |
parent | d6eaaa96990eeabbd6d7b8aa4864729711d068b5 (diff) | |
download | doc-617b5b57d263ee7039e6f82753f26d78cde40d5e.tar.gz doc-617b5b57d263ee7039e6f82753f26d78cde40d5e.zip |
- 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.
Notes
Notes:
svn path=/projects/db5/; revision=42285
-rw-r--r-- | share/xsl/freebsd-fo.xsl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/share/xsl/freebsd-fo.xsl b/share/xsl/freebsd-fo.xsl index 4e8cf17fff..5da0e6d43b 100644 --- a/share/xsl/freebsd-fo.xsl +++ b/share/xsl/freebsd-fo.xsl @@ -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">◄</xsl:attribute> + <xsl:attribute name="hyphenation-character">↺</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"> |