GNOME Bugzilla – Bug 500281
Use fop 0.94 to build hig pdf
Last modified: 2020-12-04 18:20:15 UTC
Now that fop-0.94 is included in Fedora (rawhide), it would be nice to allow users to run the build-hig-pdf.sh script with the system installed fop. This requires a change to build-hig-pdf.sh and stylesheets/hig-stylesheet-pdf.xsl. The fop extensions used in hig-stylesheet-pdf.xsl should be changed to fop1.extensions (according to http://docbook.sourceforge.net/release/xsl/current/doc/fo/fop1.extensions.html). This also works when using fop-0.20.5 (the fop included with hig). Without this change, build-hig-pdf.sh does not work with fop-0.94. The generated PDFs for both fop-0.20.5 and fop-0.94 are identical. In my attached patch, I propose introducing an environment variable users can set to use the system-installed fop- if not set, the original fop would be used.
Created attachment 99797 [details] [review] patch
I uploaded the pdfs for comparision here: using included fop: http://langel.fedorapeople.org/hig_pdfs/hig_fop0205.pdf using system fop: http://langel.fedorapeople.org/hig_pdfs/hig_fop094.pdf
Sorry this didn't get much attention. It doesn't seem very relevant any more, though.