diff --git a/offo-hyphenation_v2.0.zip b/offo-hyphenation_v2.0.zip
new file mode 100644
index 0000000..ed8f393
--- /dev/null
+++ b/offo-hyphenation_v2.0.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:79d341820583aa5b77ee00dc7da59bfafb92adceb88c7a1922fe300a90a22c4e
+size 858046
diff --git a/xmlgraphics-fop-asf51789.patch b/xmlgraphics-fop-asf51789.patch
new file mode 100644
index 0000000..c793eaf
--- /dev/null
+++ b/xmlgraphics-fop-asf51789.patch
@@ -0,0 +1,43 @@
+diff -aur o/src/java/org/apache/fop/accessibility/StructureTreeBuilder.java n/src/java/org/apache/fop/accessibility/StructureTreeBuilder.java
+--- o/src/java/org/apache/fop/accessibility/StructureTreeBuilder.java 2010-07-12 21:34:46.000000000 +0200
++++ n/src/java/org/apache/fop/accessibility/StructureTreeBuilder.java 2011-09-08 21:55:30.079000000 +0200
+@@ -31,7 +31,7 @@
+
+ /**
+ * Helper class that re-builds a structure tree from what is stored in an
+- * intermediate XML file (IF XML or Area Tree XML).
++ * intermediate XML file (IF XML or Area Tree XML).
+ */
+ public final class StructureTreeBuilder {
+
+diff -aur o/src/java/org/apache/fop/afp/fonts/CharacterSetOrientation.java n/src/java/org/apache/fop/afp/fonts/CharacterSetOrientation.java
+--- o/src/java/org/apache/fop/afp/fonts/CharacterSetOrientation.java 2010-07-12 21:34:39.000000000 +0200
++++ n/src/java/org/apache/fop/afp/fonts/CharacterSetOrientation.java 2011-09-08 22:00:40.773000019 +0200
+@@ -107,7 +107,7 @@
+ * a character rotation other than 0, ascender height loses its
+ * meaning when the character is lying on its side or is upside down
+ * with respect to normal viewing orientation. For the general case,
+- * Ascender Height is the character�s most positive y-axis value.
++ * Ascender Height is the character’s most positive y-axis value.
+ * For bounded character boxes, for a given character having an
+ * ascender, ascender height and baseline offset are equal.
+ * @return the ascender value in millipoints
+diff -aur o/src/java/org/apache/fop/afp/fonts/FopCharacterSet.java n/src/java/org/apache/fop/afp/fonts/FopCharacterSet.java
+--- o/src/java/org/apache/fop/afp/fonts/FopCharacterSet.java 2010-07-12 21:34:39.000000000 +0200
++++ n/src/java/org/apache/fop/afp/fonts/FopCharacterSet.java 2011-09-08 22:02:28.757999999 +0200
+@@ -55,7 +55,7 @@
+ * a character rotation other than 0, ascender height loses its
+ * meaning when the character is lying on its side or is upside down
+ * with respect to normal viewing orientation. For the general case,
+- * Ascender Height is the character�s most positive y-axis value.
++ * Ascender Height is the character’s most positive y-axis value.
+ * For bounded character boxes, for a given character having an
+ * ascender, ascender height and baseline offset are equal.
+ * @return the ascender value in millipoints
+@@ -135,4 +135,4 @@
+ return charSet.mapChar(c);
+ }
+
+-}
+\ Brak znaku nowej linii na końcu pliku
++}
diff --git a/xmlgraphics-fop-fontlist.script b/xmlgraphics-fop-fontlist.script
new file mode 100644
index 0000000..6998dcb
--- /dev/null
+++ b/xmlgraphics-fop-fontlist.script
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Source functions library
+if [ -f /usr/share/java-utils/java-functions ] ; then
+ . /usr/share/java-utils/java-functions
+else
+ echo "Can't find functions library, aborting"
+ exit 1
+fi
+# Load system-wide configuration
+if [ -f /etc/fop.conf ]; then
+ . /etc/fop.conf
+fi
+
+# Load user configuration
+if [ -f "$HOME/.foprc" ]; then
+ . "$HOME/.foprc"
+fi
+
+# Rest of the configuration
+MAIN_CLASS=org.apache.fop.tools.fontlist.FontListMain
+
+BASE_JARS="xmlgraphics-fop xmlgraphics-commons batik-all excalibur/avalon-framework xerces-j2 xalan-j2 xalan-j2-serializer"
+
+# Set parameters
+set_jvm
+set_classpath $BASE_JARS
+set_flags $BASE_FLAGS
+set_options $BASE_OPTIONS $FOP_OPTS
+
+# Let's start
+run "$@"
diff --git a/xmlgraphics-fop-fontlist.xml b/xmlgraphics-fop-fontlist.xml
new file mode 100644
index 0000000..89a754c
--- /dev/null
+++ b/xmlgraphics-fop-fontlist.xml
@@ -0,0 +1,110 @@
+
+
+]>
+
+
+ &product;
+
+ Apache Foundation
+
+ Thomas
+ Schraitle
+ Manpage
+
+
+
+
+ &product;
+ 1
+ @VERSION@
+
+ http://xmlgraphics.apache.org/fop/1.0/fonts.html#advanced
+
+
+ &product;
+
+
+
+
+ Synopsis
+ Classname: org.apache.fop.tools.fontlist.FontListMain
+ &product;
+ -c CONFIG_FILE
+ -f MIME
+
+
+ output-dir
+ output-file
+
+ font-family
+
+
+
+
+
+ Options
+ The following options in alphabetical order are
+ available:
+
+
+
+
+ an optional FOP configuration file
+
+
+
+
+
+ MIME type of the output format for which to create the
+ font list (defaults to application/pdf)
+
+
+
+
+
+ creates one sample PDF per font-family
+
+
+
+
+
+ writes the list as file (valid file extensions:
+ xml,
+ fo, and
+ pdf)
+
+
+
+
+
+ filters to a single font family
+
+
+
+
+
+
+ Examples
+
+
+ prints all detected fonts to the console:
+ &product;
+
+
+ same as before, but outputs it into a PDF file:
+ &product; system-fonts.pdf
+
+
+ Generates a single PDF containing a sample of all
+ configured fonts:
+ &product; -c userconfig.xml all-fonts.pdf
+
+
+
+
+
+
diff --git a/xmlgraphics-fop-fontmetrics.script b/xmlgraphics-fop-fontmetrics.script
new file mode 100644
index 0000000..4cab75b
--- /dev/null
+++ b/xmlgraphics-fop-fontmetrics.script
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# Source functions library
+if [ -f /usr/share/java-utils/java-functions ] ; then
+ . /usr/share/java-utils/java-functions
+else
+ echo "Can't find functions library, aborting"
+ exit 1
+fi
+
+# Load system-wide configuration
+if [ -f /etc/fop.conf ]; then
+ . /etc/fop.conf
+fi
+
+# Load user configuration
+if [ -f "$HOME/.foprc" ]; then
+ . "$HOME/.foprc"
+fi
+
+# Rest of the configuration
+MAIN_CLASS_PFM=org.apache.fop.fonts.apps.PFMReader
+MAIN_CLASS_TTF=org.apache.fop.fonts.apps.TTFReader
+
+if [ "$1" = '-t' ]; then
+MAIN_CLASS=${MAIN_CLASS_TTF}
+shift
+elif [ "$1" = "-p" ]; then
+MAIN_CLASS=${MAIN_CLASS_PFM}
+shift
+else
+MAIN_CLASS=${MAIN_CLASS_TTF}
+fi
+
+BASE_JARS="xmlgraphics-fop commons-io commons-logging excalibur/avalon-framework xml-commons-jaxp-1.3-apis xerces-j2 xalan-j2 xalan-j2-serializer"
+
+# Set parameters
+set_jvm
+set_classpath $BASE_JARS
+set_flags $BASE_FLAGS
+set_options $BASE_OPTIONS $FOP_OPTS
+
+# Let's start
+run "$@"
diff --git a/xmlgraphics-fop-fontmetrics.xml b/xmlgraphics-fop-fontmetrics.xml
new file mode 100644
index 0000000..70792e4
--- /dev/null
+++ b/xmlgraphics-fop-fontmetrics.xml
@@ -0,0 +1,103 @@
+
+
+]>
+
+
+ &product;
+
+ Apache Foundation
+
+ Thomas
+ Schraitle
+ Manpage
+
+
+
+
+ &product;
+ 1
+ @VERSION@
+
+ http://xmlgraphics.apache.org/fop/1.0/fonts.html#advanced
+
+
+ &product;
+ Reads TTF files and Generates Appropriate Font Metrics
+
+
+
+ Synopsis
+ Classnames:
+ org.apache.fop.fonts.apps.PFMReader and
+ org.apache.fop.fonts.apps.TTFReader
+
+ &product;
+
+ -t
+ -p
+
+ options
+ fontfile.ttf
+ xmlfile.xml
+
+
+
+
+ Options
+ The first argument has to be or
+ . The option (default)
+ activates the TrueTypeReader, option activates
+ the PostSriptReader.
+ The following options in alphabetical order are
+ available:
+
+
+
+
+ debug mode
+
+
+
+
+
+ With this option you create a WinAnsi encoded font. The
+ default is to create a CID keyed font. If you're not going
+ to use characters outside the pdfencoding range (almost the
+ same as iso-8889-1) you can add this option.
+
+
+
+
+
+ default is to use the fontname in the .ttf file, but you can
+ override that name to make sure that the embedded font is
+ used (if you're embedding fonts) instead of installed fonts
+ when viewing documents with Acrobat Reader.
+
+
+
+
+
+ If you're reading data from a TrueType Collection
+ (.ttc file) you
+ must specify which font from the collection you will read
+ metrics from. If you read from a .ttc file without this option, the fontnames
+ will be listed for you.
+
+
+
+
+
+ quiet mode
+
+
+
+
+
+
diff --git a/xmlgraphics-fop-pom-template.pom b/xmlgraphics-fop-pom-template.pom
index aa210a9..f58274b 100644
--- a/xmlgraphics-fop-pom-template.pom
+++ b/xmlgraphics-fop-pom-template.pom
@@ -1,155 +1,155 @@
-
-
-
-
- 4.0.0
- org.apache.xmlgraphics
- fop
- jar
- Apache FOP
- @version@
- http://xmlgraphics.apache.org/fop/
- Apache FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects (XSL-FO) and the world's first output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, AFP, TIFF, PNG, SVG, XML (area tree representation), Print, AWT and TXT. The primary output target is PDF.
- 1999
-
-
- FOP Users List
- fop-users-subscribe@xmlgraphics.apache.org
- fop-users-unsubscribe@xmlgraphics.apache.org
- http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/
-
-
- FOP Developer List
- fop-dev-subscribe@xmlgraphics.apache.org
- fop-dev-unsubscribe@xmlgraphics.apache.org
- http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/
-
-
- FOP Commit List
- fop-commits-subscribe@xmlgraphics.apache.org
- fop-commits-unsubscribe@xmlgraphics.apache.org
- http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-commits/
-
-
-
-
- The Apache Software License, Version 2.0
- http://www.apache.org/licenses/LICENSE-2.0.txt
- repo
-
-
-
- scm:svn:http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
- scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
- http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/?root=Apache-SVN
-
-
- Apache Software Foundation
- http://www.apache.org/
-
-
- org.apache
- apache
- 7
-
-
-
-
- org.apache.xmlgraphics
- xmlgraphics-commons
- 1.4
-
-
- org.apache.xmlgraphics
- batik-svg-dom
- 1.7
-
-
- org.apache.xmlgraphics
- batik-bridge
- 1.7
-
-
- org.apache.xmlgraphics
- batik-awt-util
- 1.7
-
-
- org.apache.xmlgraphics
- batik-gvt
- 1.7
-
-
- org.apache.xmlgraphics
- batik-transcoder
- 1.7
-
-
- org.apache.xmlgraphics
- fop
-
-
-
-
- org.apache.xmlgraphics
- batik-extension
- 1.7
-
-
- org.apache.xmlgraphics
- batik-ext
- 1.7
-
-
-
- commons-logging
- commons-logging
- 1.0.4
-
-
- commons-io
- commons-io
- 1.3.1
-
-
- org.apache.avalon.framework
- avalon-framework-api
- 4.3.1
-
-
- org.apache.avalon.framework
- avalon-framework-impl
- 4.3.1
-
-
- javax.servlet
- servlet-api
- 2.2
- provided
-
-
- xalan
- xalan
- 2.7.0
- provided
-
-
-
+
+
+
+
+ 4.0.0
+ org.apache.xmlgraphics
+ fop
+ jar
+ Apache FOP
+ @version@
+ http://xmlgraphics.apache.org/fop/
+ Apache FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects (XSL-FO) and the world's first output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, AFP, TIFF, PNG, SVG, XML (area tree representation), Print, AWT and TXT. The primary output target is PDF.
+ 1999
+
+
+ FOP Users List
+ fop-users-subscribe@xmlgraphics.apache.org
+ fop-users-unsubscribe@xmlgraphics.apache.org
+ http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/
+
+
+ FOP Developer List
+ fop-dev-subscribe@xmlgraphics.apache.org
+ fop-dev-unsubscribe@xmlgraphics.apache.org
+ http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/
+
+
+ FOP Commit List
+ fop-commits-subscribe@xmlgraphics.apache.org
+ fop-commits-unsubscribe@xmlgraphics.apache.org
+ http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-commits/
+
+
+
+
+ The Apache Software License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+ repo
+
+
+
+ scm:svn:http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
+ scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
+ http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/?root=Apache-SVN
+
+
+ Apache Software Foundation
+ http://www.apache.org/
+
+
+ org.apache
+ apache
+ 7
+
+
+
+
+ org.apache.xmlgraphics
+ xmlgraphics-commons
+ 1.4
+
+
+ org.apache.xmlgraphics
+ batik-svg-dom
+ 1.7
+
+
+ org.apache.xmlgraphics
+ batik-bridge
+ 1.7
+
+
+ org.apache.xmlgraphics
+ batik-awt-util
+ 1.7
+
+
+ org.apache.xmlgraphics
+ batik-gvt
+ 1.7
+
+
+ org.apache.xmlgraphics
+ batik-transcoder
+ 1.7
+
+
+ org.apache.xmlgraphics
+ fop
+
+
+
+
+ org.apache.xmlgraphics
+ batik-extension
+ 1.7
+
+
+ org.apache.xmlgraphics
+ batik-ext
+ 1.7
+
+
+
+ commons-logging
+ commons-logging
+ 1.0.4
+
+
+ commons-io
+ commons-io
+ 1.3.1
+
+
+ org.apache.avalon.framework
+ avalon-framework-api
+ 4.3.1
+
+
+ org.apache.avalon.framework
+ avalon-framework-impl
+ 4.3.1
+
+
+ javax.servlet
+ servlet-api
+ 2.2
+ provided
+
+
+ xalan
+ xalan
+ 2.7.0
+ provided
+
+
+
diff --git a/xmlgraphics-fop.changes b/xmlgraphics-fop.changes
index 32975d5..daee356 100644
--- a/xmlgraphics-fop.changes
+++ b/xmlgraphics-fop.changes
@@ -1,3 +1,30 @@
+-------------------------------------------------------------------
+Fri Sep 9 16:20:40 UTC 2011 - giecrilj@stegny.2a.pl
+
+- restored gzipped archive to avoid HTTP 404
+- disabled tests (they take ages to build and they fail anyway, so do we really need them)?
+- added standard hyphenation from OFFO
+- told ant to use UTF-8
+- fix for asf#51789
+
+-------------------------------------------------------------------
+Fri May 13 08:25:38 UTC 2011 - toms@suse.de
+
+- Recompressed gzip archive to bz2 to avoid warning
+- Fixed non-conffile-in-etc warning for %{_mavendepmapfragdir}
+- Added new xmlgraphics-fontmetrics and xmlgraphics-fontlist scripts
+ to help for better FOP configuration
+- Added manpage and HTML for all scripts (xmlgraphics-fop,
+ xmlgraphics-fop-fontmetrics, and xmlgraphics-fop-fontlist)
+- Created links without prefix xmlgraphics-fop for
+ xmlgraphics-fop-fontmetrics and xmlgraphics-fop-fontlist
+- Created links for all manpages without prefix xmlgraphics-fop
+
+-------------------------------------------------------------------
+Wed May 11 14:43:06 UTC 2011 - toms@suse.de
+
+- Added two new scripts for creating font metrics and font lists
+
-------------------------------------------------------------------
Mon May 2 06:37:50 UTC 2011 - toms@suse.de
diff --git a/xmlgraphics-fop.spec b/xmlgraphics-fop.spec
index 97b4a9e..625180e 100644
--- a/xmlgraphics-fop.spec
+++ b/xmlgraphics-fop.spec
@@ -22,18 +22,28 @@
%define section free
%define bname fop
+%bcond_with tests
+
Name: xmlgraphics-fop
Version: 1.0
-Release: 8
+Release: 11
Summary: Formatter for Printing XSLT Processed XML Files
License: ASLv..
Group: Productivity/Publishing/XML
-Source0: http://www.apache.org/dist/xmlgraphics/fop/source/fop-%{version}-src.tar.gz
+Source0: http://ftp.halifax.rwth-aachen.de/apache/xmlgraphics/fop/source/fop-1.0-src.tar.gz
#FIX-OPENSUSE: add xmlgraphics-commons to classpath
Source1: %{name}.script
-Source2: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/xmlgraphics-fop-pom-template.pom
+Source2: http://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-1_0/xmlgraphics-fop-pom-template.pom
+Source3: %{name}-fontmetrics.script
+Source4: %{name}-fontlist.script
+Source5: http://heanet.dl.sourceforge.net/project/offo/offo-hyphenation/2.0/offo-hyphenation_v2.0.zip
+# Manpage(s)
+Source10: %{name}.xml
+Source11: %{name}-fontmetrics.xml
+Source12: %{name}-fontlist.xml
Patch0: xmlgraphics-fop-build.patch
Patch1: xmlgraphics-fop-cli.patch
+Patch2: xmlgraphics-fop-asf51789.patch
Url: http://xmlgraphics.apache.org/fop/
Requires(post): jpackage-utils >= 1.7.4
Requires(postun): jpackage-utils >= 1.7.4
@@ -47,6 +57,7 @@ Requires: xalan-j2
Requires: xerces-j2
Requires: xmlgraphics-commons
Requires: xml-commons-jaxp-1.3-apis
+BuildRequires: unzip
BuildRequires: jpackage-utils >= 1.7.4
BuildRequires: java-devel >= 1.5.0
BuildRequires: java-javadoc
@@ -66,6 +77,7 @@ BuildRequires: xmlgraphics-commons >= 1.2
BuildRequires: xmlunit
BuildRequires: xml-commons-jaxp-1.3-apis
BuildRequires: qdox
+BuildRequires: docbook-xsl-stylesheets libxslt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
#!BuildIgnore: saxon
@@ -85,14 +97,16 @@ Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
-Javadoc for %{name}.
+API documentation for %{name} automatically extracted from comments in source files.
%prep
-%setup -q -n %{bname}-%{version}
+%setup -q -n %{bname}-%{version} -a5
+ln -thyph offo-hyphenation/hyph/*.xml
find -name "*.jar" | xargs -t rm
%patch0 -p0 -b .build
%patch1 -p1 -b .cli
+%patch2 -p1
pushd lib
ln -s $(build-classpath excalibur/avalon-framework-api)
@@ -125,14 +139,32 @@ ln -s $(build-classpath xmlunit)
ln -s $(build-classpath qdox)
popd
-cp %{SOURCE2} .
+cp %{SOURCE2} %{SOURCE3} %{SOURCE4} .
+# Replace keyword "VERSION" in XML files with the real one:
+for x in %{SOURCE10} %{SOURCE11} %{SOURCE12}; do
+ sed -i "s=@VERSION@=%{version}=" $x
+done
%build
-export CLASSPATH=
+export CLASSPATH= LANG=en_US.UTF-8
export OPT_JAR_LIST=`%{__cat} %{_sysconfdir}/ant.d/{junit,trax}`
%{ant} \
-Dbatik.javadoc=%{_javadocdir}/xmlgraphics-batik \
- package junit maven-artifacts
+ package \
+%if %{with tests}
+ junit \
+%endif
+ maven-artifacts
+
+# false
+# Build the manpage(s) and HTML
+DB=/usr/share/xml/docbook/stylesheet/nwalsh/current
+for m in %{SOURCE10} %{SOURCE11} %{SOURCE12}; do
+ xsltproc $DB/manpages/docbook.xsl $m
+# Only filename for HTML is needed, remove anything before /
+ xml=${m##*/}
+ xsltproc --output ${xml%%.xml}.html $DB/html/docbook.xsl $m
+done
%install
# jars
@@ -147,9 +179,13 @@ install -pm 644 build/maven/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%
# script
mkdir -p $RPM_BUILD_ROOT%{_bindir}
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}-fontmetrics
+cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/%{name}-fontlist
# compat symlink
-ln -s %{name} %{buildroot}%{_bindir}/%{bname}
+ln -s %{name} %{buildroot}%{_bindir}/%{bname}
+ln -s %{name}-fontmetrics %{buildroot}%{_bindir}/%{bname}-fontmetrics
+ln -s %{name}-fontlist %{buildroot}%{_bindir}/%{bname}-fontlist
# data
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
@@ -161,6 +197,20 @@ mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+# Manpages
+mkdir -p $RPM_BUILD_ROOT%_mandir/man1
+for m in *.1; do
+ gzip $m
+done
+cp -vi *.1.gz $RPM_BUILD_ROOT%_mandir/man1
+
+# Remove prefix xmlgraphics to make also the linked manpage version available
+pushd $RPM_BUILD_ROOT%_mandir/man1
+for m in *.1.gz; do
+ ln -s $m ${m#*-}
+done
+popd
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -173,13 +223,19 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root,0755)
%doc NOTICE LICENSE README known-issues.xml status.xml
+%doc *.html
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/%{bname}
+%attr(0755,root,root) %{_bindir}/%{name}-fontmetrics
+%attr(0755,root,root) %{_bindir}/%{bname}-fontmetrics
+%attr(0755,root,root) %{_bindir}/%{name}-fontlist
+%attr(0755,root,root) %{_bindir}/%{bname}-fontlist
%{_javadir}/%{name}*.jar
%{_datadir}/%{name}
%{_datadir}/maven2/*
-%{_mavendepmapfragdir}/*
+%config %{_mavendepmapfragdir}/*
+%{_mandir}/man1/*
%files javadoc
%defattr(0644,root,root,0755)
diff --git a/xmlgraphics-fop.xml b/xmlgraphics-fop.xml
new file mode 100644
index 0000000..d7e4fd6
--- /dev/null
+++ b/xmlgraphics-fop.xml
@@ -0,0 +1,626 @@
+
+
+]>
+
+
+ &product;
+
+ Apache Foundation
+
+ Thomas
+ Schraitle
+ Manpage
+
+
+
+
+ &product;
+ 1
+ @VERSION@
+
+ http://xmlgraphics.apache.org/fop/1.0/fonts.html#advanced
+
+
+ &product;
+ Formatter for Printing XSLT Processed XML
+ Files
+
+
+
+ Synopsis
+ Classname: org.apache.fop.cli.Main
+
+ &product;
+
+ -fo
+ -xml
+
+ infile
+
+ -xsl file
+
+
+ -awt
+ -pdf
+ -mif
+ -rtf
+ -tiff
+ -png
+ -pcl
+ -ps
+ -txt
+ -at mime
+ -print
+
+ outfile
+
+
+
+
+ Options
+ The following options in alphabetical order are
+ available:
+
+
+
+
+
+ enables accessibility features (Tagged PDF etc., default
+ off)
+
+
+
+
+
+ input will be rendered as AFP
+
+
+
+
+
+ representation of area tree as XML specify optional mime
+ output to allow the AT to be converted to final format
+ later
+
+
+
+
+
+ area tree input file
+
+
+
+
+
+ input will be displayed on screen
+
+
+
+
+
+ cfg.xml
+
+ use additional configuration file
+ cfg.xml
+
+
+
+
+
+ use XML catalog resolver for input XML and XSLT
+ files
+
+
+
+
+
+ enable memory-conservation policy (trades
+ memory-consumption for disk I/O) (Note: currently only
+ influences whether the area tree is serialized.)
+
+
+
+
+
+
+ debug mode
+
+
+
+
+
+ target resolution in dots per inch (dpi) where
+ XXX is a number
+
+
+
+
+
+
+ XSL-FO input file
+
+
+
+
+
+ input will only be XSL transformed. The intermediate
+ XSL-FO file is saved and no rendering is performed. (Only
+ available if you use and
+ parameters)
+
+
+
+
+
+
+ representation of document in intermediate format XML
+ specify optional mime output to allow the IF to be converted
+ to final format later
+
+
+
+
+
+ intermediate format input file
+
+
+
+
+
+ image input file (piping through stdin not
+ supported)
+
+
+
+
+
+ XSL-FO input file (use for infile to
+ pipe input from stdin); same as
+
+
+
+
+
+
+ use the language for user information
+
+
+
+
+
+
+
+
+ encrypt PDF file without edit annotation
+ permission
+
+
+
+
+
+ encrypt PDF file without copy content permission
+
+
+
+
+
+ encrypt PDF file without edit content permission
+
+
+
+
+
+ encrypt PDF file without printing permission
+
+
+
+
+
+
+ encrypt PDF file with option owner password
+
+
+
+
+
+ input will be rendered using the given MIME type.
+ Example:
+ (Tip: prints the list of
+ supported MIME types)
+
+
+
+
+
+ input will be rendered as PDF into outfile (use
+ for outfile to pipe output to
+ stdout)
+
+
+
+
+
+
+
+ NAME to use for parameter
+ NAME in XSLT stylesheet (repeat
+ this option for each parameter)
+
+
+
+
+
+ input will be rendered as PCL
+
+
+
+
+
+ input will be rendered as PDF (outfile required)
+
+
+
+
+
+ input will be rendered as PDF/A-1b compliant PDF
+ (outfile required, same as
+ )
+
+
+
+
+
+ PDF file will be generated with the specified profile
+ (Examples for PROF: PDF/A-1b or
+ PDF/X-3:2003)
+
+
+
+
+
+ input will be rendered as PNG
+
+
+
+
+
+ input file will be rendered and sent to the printer
+ see options with
+
+
+
+
+
+ input will be rendered as PostScript
+
+
+
+
+
+
+ quiet mode
+
+
+
+
+
+
+ relaxed/less strict validation (where available)
+
+
+
+
+
+ input will be rendered as RTF
+
+
+
+
+
+
+ for area tree XML, down to block areas only
+
+
+
+
+
+ input will be rendered as an SVG slides file.
+ Experimental feature; requires additional
+ fop-sandbox.jar
+
+
+
+
+
+
+ input will be rendered as TIFF
+
+
+
+
+
+ input will be rendered as plain text
+
+
+
+
+
+
+ encrypt PDF file with option user password
+
+
+
+
+
+
+ run in verbose mode (currently simply print FOP version
+ and continue)
+
+
+
+
+
+ print FOP version and exit
+
+
+
+
+
+
+ dump configuration settings
+
+
+
+
+
+ XML input file, must be used together with
+
+
+
+
+
+
+
+ XSLT stylesheet
+
+
+
+
+
+
+ FOP Configuration File
+ This is a small overview. More details can be found in .
+
+ Excerpt FOP Configuration File
+
+
+
+ true
+
+
+ true
+
+
+ ./
+
+
+ ./
+
+
+ 72
+
+ 72
+
+
+
+
+
+ nl_Bel
+
+
+]]>
+
+
+
+ Summary of the General Configuration Options
+
+
+
+
+
+
+
+ Element
+ Data Type
+ Description
+ Default Value
+
+
+
+
+ base
+ URL or directory
+ Specifies the base URL based on which relative URL will be resolved
+ current directory
+
+
+ font-base
+ URL or directory
+ Specifies the base URL based on which relative font URLs will be resolved
+ base URL/directory
+
+
+ hyphenation-base
+ URL or directory
+ Specifies the base URL based on which relative URLs to hyphenation pattern files will be resolved. If not specified, support for user-supplied hyphenation patterns remains disabled
+ disabled
+
+
+ Relative URIs for the above three properties are evaluated relative to the base URI of the configuration file. If the configuration is provided programmatically, the base URI can be set with FopFactory.setUserConfigBaseURI; default is the current working directory.
+
+
+ hyphenation-pattern
+ String, attribute lang, attribute country (optional)
+ Register a file name for the hyphenation pattern for the mentioned language and country. Language ll and country CC must both consist of two letters.
+ ll_CC
+
+
+ source-resolution
+ Integer
+ Resolution in dpi (dots per inch) which is used internally to determine the pixel size for SVG images and bitmap images without resolution information.
+ 72dpi
+
+
+ target-resolution
+ Integer
+ Resolution in dpi (dots per inch) used to specify the output resolution for bitmap images generated by bitmap renderers (such as the TIFF renderer) and by bitmaps generated by Apache Batik for filter effects and such.
+
+ 72dpi
+
+
+ strict-configuration
+ Boolean
+ Setting this option to 'true' will cause FOP to strictly verify the contents of the FOP configuration file to ensure that defined resources (such as fonts and base URLs/directories) are valid and available to FOP. Any errors found will cause FOP to immediately raise an exception.
+ false
+
+
+ strict-validation
+ Boolean
+ Setting this option to 'false' causes FOP to be more forgiving about XSL-FO validity, for example, you're allowed to specify a border on a region-body which is supported by some FO implementations but is non-standard. Note that such a border would currently have no effect in Apache FOP.
+ true
+
+
+ break-indent-inheritance
+ Boolean
+ Setting this option to 'true' causes FOP to use an alternative rule set to determine text indents specified through margins, start-indent and end-indent. Many commercial FO implementations have chosen to break the XSL specification in this aspect. This option tries to mimic their behaviour. Please note that Apache FOP may still not behave exactly like those implementations either because FOP has not fully matched the desired behaviour and because the behaviour among the commercial implementations varies. The default for this option (i.e. false) is to behave exactly like the specification describes.
+ false
+
+
+ default-page-settings
+ n/a
+ Specifies the default width and height of a page if "auto" is specified for either or both values. Use "height" and "width" attributes on the default-page-settings element to specify the two values.
+ "height" 11 inches, "width" 8.26 inches
+
+
+ use-cache
+ Boolean
+ All fonts information that has been gathered as a result of "directory" or "auto-detect" font configurations will be cached for future rendering runs. This setting should improve performance on systems where fonts have been configured using the "directory" or "auto-detect" tag mechanisms. By default this option is switched on.
+ true
+
+
+ cache-file
+ String
+ This option specifies the file/directory path of the fop cache file. This file is currently only used to cache font triplet information for future reference.
+ ${base}/conf/fop.cache
+
+
+ renderers
+ MIME
+ Contains the configuration for each renderer
+ n/a
+
+
+
+
+
+
+
+
+ Files
+
+
+ /etc/fop.conf
+
+ System-wide configuration
+
+
+
+ ~/.foprc
+
+ User configuration
+
+
+
+ fop.xconf
+
+ Example configuration file; can be handed over with
+ option. See
+ for details.
+
+
+
+
+
+
+ Examples
+
+
+ Transforms the foo.fo FO file into
+ PDF:
+ fop foo.fo foo.pdf
+
+
+ Does the same as the previous line:
+ fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf
+
+
+ Transforms and formats foo.xml with
+ the help of the XSLT stylesheet foo.xsl
+ into the PDF file foo.pdf:
+ fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf
+
+
+ Only transforms, but don't format:
+ fop -xml foo.xml -xsl foo.xsl -foout foo.fo
+
+
+ Formats foo.fo into FRTF:
+ fop foo.fo -mif foo.rtf
+
+
+ Input file is send to the printer:
+ fop foo.fo -print
+
+
+
+
+