svn commit: r42254 - in projects/db5/share: misc mk

Gabor Kovesdan gabor at FreeBSD.org
Thu Jul 11 19:27:43 UTC 2013


Author: gabor
Date: Thu Jul 11 19:27:42 2013
New Revision: 42254
URL: http://svnweb.freebsd.org/changeset/doc/42254

Log:
  - Add a FOP config file and use it

Added:
  projects/db5/share/misc/fop.xconf   (contents, props changed)
Modified:
  projects/db5/share/mk/doc.commands.mk
  projects/db5/share/mk/doc.docbook.mk

Added: projects/db5/share/misc/fop.xconf
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ projects/db5/share/misc/fop.xconf	Thu Jul 11 19:27:42 2013	(r42254)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+
+<!-- $FreeBSD$ -->
+
+<fop version="1.0">
+
+  <base>.</base>
+
+  <hyphenation-base>/usr/local/share/java/fop/hyph/</hyphenation-base>
+
+  <source-resolution>72</source-resolution>
+  <target-resolution>72</target-resolution>
+  
+  <default-page-settings height="11in" width="8.26in"/>
+  
+  <renderers>
+    <renderer mime="application/pdf">
+      <filterList>
+        <value>flate</value>
+      </filterList>
+
+      <fonts>
+	<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="image/svg+xml">
+      <format type="paginated"/>
+      <link value="true"/>
+      <strokeText value="false"/>
+    </renderer>
+  </renderers>
+</fop>
+

Modified: projects/db5/share/mk/doc.commands.mk
==============================================================================
--- projects/db5/share/mk/doc.commands.mk	Thu Jul 11 19:24:55 2013	(r42253)
+++ projects/db5/share/mk/doc.commands.mk	Thu Jul 11 19:27:42 2013	(r42254)
@@ -62,7 +62,6 @@ DVIPSOPTS?=	-t ${PAPERSIZE:L}
 DVIPSOPTS+=	${DVIPSFLAGS}
 
 FOP?=		${PREFIX}/bin/fop
-FOPOPTS?=
 
 GROFF?=		groff
 

Modified: projects/db5/share/mk/doc.docbook.mk
==============================================================================
--- projects/db5/share/mk/doc.docbook.mk	Thu Jul 11 19:24:55 2013	(r42253)
+++ projects/db5/share/mk/doc.docbook.mk	Thu Jul 11 19:27:42 2013	(r42254)
@@ -76,6 +76,7 @@ SCHEMATRONS?=	${DOC_PREFIX}/share/xml/fr
 XSLTPROCOPTS?=	--nonet
 
 DBLATEXOPTS?=	-I ${IMAGES_EN_DIR}/${DOC}s/${.CURDIR:T} -p ${DOC_PREFIX}/share/xsl/freebsd-dblatex.xsl -T simple -d
+FOPOPTS?=	-c ${DOC_PREFIX}/share/misc/fop.xconf
 
 KNOWN_FORMATS=	html html.tar html-split html-split.tar \
 		epub txt rtf ps pdf tex dvi tar pdb


More information about the svn-doc-projects mailing list