poky-doc-tools
==============
-Simple tools to wrap fop to create oh branded PDF's from docbook sources.
+Simple tools to wrap fop to create Poky branded PDF's from docbook sources.
(based on OH doc tools)
Dependencies
Sun Java, make sure the java in your path is the *sun* java.
-xlstproc, nwalsh style sheets.
+xlstproc, nwalsh style sheets, fop
FOP, installed - see http://www.sagehill.net/docbookxsl/InstallingAnFO.html.
-Also a 'fop' binary, eg I have;
-
-% cat ~/bin/fop
-#!/bin/sh
-java org.apache.fop.apps.Fop "$@"
-
+Updated to work with (fop > 0.95)
-<configuration>
- <entry>
- <!--
- Set the baseDir so common/openedhand.svg references in plans still
- work ok. Note, relative file references to current dir should still work.
- -->
- <key>baseDir</key>
- <value>@datadir@</value>
- </entry>
- <fonts>
- <font metrics-file="@datadir@/common/VeraMono.xml"
- kerning="yes"
- embed-file="@datadir@/common/VeraMono.ttf">
- <font-triplet name="veramono" style="normal" weight="normal"/>
- </font>
+<fop version="1.0">
- <font metrics-file="@datadir@/common/VeraMoBd.xml"
- kerning="yes"
- embed-file="@datadir@/common/VeraMoBd.ttf">
- <font-triplet name="veramono" style="normal" weight="bold"/>
- </font>
+ <!-- Strict user configuration -->
+ <strict-configuration>true</strict-configuration>
- <font metrics-file="@datadir@/common/Vera.xml"
- kerning="yes"
- embed-file="@datadir@/common/Vera.ttf">
- <font-triplet name="verasans" style="normal" weight="normal"/>
- <font-triplet name="verasans" style="normal" weight="bold"/>
- <font-triplet name="verasans" style="italic" weight="normal"/>
- <font-triplet name="verasans" style="italic" weight="bold"/>
- </font>
+ <!-- Strict FO validation -->
+ <strict-validation>true</strict-validation>
+
+ <!--
+ Set the baseDir so common/openedhand.svg references in plans still
+ work ok. Note, relative file references to current dir should still work.
+ -->
+ <base>@datadir@</base>
+ <font-base>@datadir@/common</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.26in"/>
+
+ <!-- <use-cache>false</use-cache> -->
+
+ <renderers>
+ <renderer mime="application/pdf">
+ <fonts>
+ <font metrics-file="VeraMono.xml"
+ kerning="yes"
+ embed-url="VeraMono.ttf">
+ <font-triplet name="veramono" style="normal" weight="normal"/>
+ </font>
+
+ <font metrics-file="VeraMoBd.xml"
+ kerning="yes"
+ embed-url="VeraMoBd.ttf">
+ <font-triplet name="veramono" style="normal" weight="bold"/>
+ </font>
+
+ <font metrics-file="Vera.xml"
+ kerning="yes"
+ embed-url="Vera.ttf">
+ <font-triplet name="verasans" style="normal" weight="normal"/>
+ <font-triplet name="verasans" style="normal" weight="bold"/>
+ <font-triplet name="verasans" style="italic" weight="normal"/>
+ <font-triplet name="verasans" style="italic" weight="bold"/>
+ </font>
+
+ <auto-detect/>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
- </fonts>
-</configuration>
\ No newline at end of file