[Csnd-dev] Building manual PDF
Date | 2017-01-03 18:26 |
From | Dave Seidel |
Subject | [Csnd-dev] Building manual PDF |
I have been trying to build the csound manual as a PDF but with no success. I m able to build the html target with
make XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh html but when I try make XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh pdf I get dave@dirac:~/src/csound-manual$ make XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh pdf This is on Debian 8 (Jessie), and I have fop 1.1 installed. There is a "fop" command on the path, but I have no "fop.sh". I tried changing "fop.sh" to "fop" in the Makefile, but then I get fop -fo Csound6.08_manual.fo -pdf Csound6.08_manual.pdf Any ideas? - Dave |
Date | 2017-01-03 20:15 |
From | Kelly Hirai |
Subject | Re: [Csnd-dev] Building manual PDF |
on gentoo i have app-text/docbook-xml-dtd installed and my path is /usr/share/sgml/docbook/xsl-stylesheets i've only built the html manual though. k. On 01/03/2017 01:26 PM, Dave Seidel wrote: > I have been trying to build the csound manual as a PDF but with no success. > I m able to build the html target with > > make XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh html > > but when I try > > make XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh pdf > > I get > > dave@dirac:~/src/csound-manual$ make >> XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh pdf >> [ -d "/usr/share/xml/docbook/stylesheet/nwalsh" ] || ( \ >> echo "The XSL_BASE_PATH variable must be set to the XSL stylesheets >> installation directory" ; \ >> false ) >> sed -e 's|@xsl_base_path@|/usr/share/xml/docbook/stylesheet/nwalsh|' xsl/ >> customPDF.xsl.in > xsl/customPDF.xsl >> xsltproc --xinclude -o Csound6.08_manual.fo xsl/customPDF.xsl manual.xml >> Making portrait pages on USletter paper (8.5inx11in) >> fop.sh -fo Csound6.08_manual.fo -pdf Csound6.08_manual.pdf >> make: fop.sh: Command not found >> Makefile:739: recipe for target 'pdf' failed >> make: *** [pdf] Error 127 > > > This is on Debian 8 (Jessie), and I have fop 1.1 installed. There is a > "fop" command on the path, but I have no "fop.sh". I tried changing > "fop.sh" to "fop" in the Makefile, but then I get > > fop -fo Csound6.08_manual.fo -pdf Csound6.08_manual.pdf >> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >> encountered (a child of fo:root}. (See position 2:19236) >> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >> encountered (a child of outline}. (See position 2:19247) >> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >> encountered (a child of fo:root}. (See position 2:19407) >> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >> encountered (a child of outline}. (See position 2:19418) >> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >> encountered (a child of fo:root}. (See position 2:19557) >> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >> encountered (a child of outline}. (See position 2:19568) >> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >> encountered (a child of outline}. (See position 2:19638) >> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >> encountered (a child of outline}. (See position 2:19649) >> Exception >> org.apache.fop.apps.FOPException: org.apache.fop.apps.FOPException: >> file:/home/dave/src/csound-manual/Csound6.08_manual.fo:2:19759: >> Error(2/19759): No element mapping definition found for (Namespace URI: " >> http://xml.apache.org/fop/extensions", Local Name: "destination") >> javax.xml.transform.TransformerException: >> org.apache.fop.apps.FOPException: >> file:/home/dave/src/csound-manual/Csound6.08_manual.fo:2:19759: >> Error(2/19759): No element mapping definition found for (Namespace URI: " >> http://xml.apache.org/fop/extensions", Local Name: "destination") > > > Any ideas? > > - Dave |
Date | 2017-01-03 20:32 |
From | jpff |
Subject | Re: [Csnd-dev] Building manual PDF |
I used to build the pdf manual (on A4 paper) with an slink for fop.sh to /usr/bin/fop Not tried ecently On Tue, 3 Jan 2017, Kelly Hirai wrote: > on gentoo i have app-text/docbook-xml-dtd installed and my path is > > /usr/share/sgml/docbook/xsl-stylesheets > > i've only built the html manual though. > > k. > > On 01/03/2017 01:26 PM, Dave Seidel wrote: >> I have been trying to build the csound manual as a PDF but with no success. >> I m able to build the html target with >> >> make XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh html >> >> but when I try >> >> make XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh pdf >> >> I get >> >> dave@dirac:~/src/csound-manual$ make >>> XSL_BASE_PATH=/usr/share/xml/docbook/stylesheet/nwalsh pdf >>> [ -d "/usr/share/xml/docbook/stylesheet/nwalsh" ] || ( \ >>> echo "The XSL_BASE_PATH variable must be set to the XSL stylesheets >>> installation directory" ; \ >>> false ) >>> sed -e 's|@xsl_base_path@|/usr/share/xml/docbook/stylesheet/nwalsh|' xsl/ >>> customPDF.xsl.in > xsl/customPDF.xsl >>> xsltproc --xinclude -o Csound6.08_manual.fo xsl/customPDF.xsl manual.xml >>> Making portrait pages on USletter paper (8.5inx11in) >>> fop.sh -fo Csound6.08_manual.fo -pdf Csound6.08_manual.pdf >>> make: fop.sh: Command not found >>> Makefile:739: recipe for target 'pdf' failed >>> make: *** [pdf] Error 127 >> >> >> This is on Debian 8 (Jessie), and I have fop 1.1 installed. There is a >> "fop" command on the path, but I have no "fop.sh". I tried changing >> "fop.sh" to "fop" in the Makefile, but then I get >> >> fop -fo Csound6.08_manual.fo -pdf Csound6.08_manual.pdf >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >>> encountered (a child of fo:root}. (See position 2:19236) >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >>> encountered (a child of outline}. (See position 2:19247) >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >>> encountered (a child of fo:root}. (See position 2:19407) >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >>> encountered (a child of outline}. (See position 2:19418) >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >>> encountered (a child of fo:root}. (See position 2:19557) >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >>> encountered (a child of outline}. (See position 2:19568) >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}outline" >>> encountered (a child of outline}. (See position 2:19638) >>> Unknown formatting object "{http://xml.apache.org/fop/extensions}label" >>> encountered (a child of outline}. (See position 2:19649) >>> Exception >>> org.apache.fop.apps.FOPException: org.apache.fop.apps.FOPException: >>> file:/home/dave/src/csound-manual/Csound6.08_manual.fo:2:19759: >>> Error(2/19759): No element mapping definition found for (Namespace URI: " >>> http://xml.apache.org/fop/extensions", Local Name: "destination") >>> javax.xml.transform.TransformerException: >>> org.apache.fop.apps.FOPException: >>> file:/home/dave/src/csound-manual/Csound6.08_manual.fo:2:19759: >>> Error(2/19759): No element mapping definition found for (Namespace URI: " >>> http://xml.apache.org/fop/extensions", Local Name: "destination") >> >> >> Any ideas? >> >> - Dave >> |
Date | 2017-01-03 20:45 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
Someone must be able to do it, since we are shipping the PDF file. My guess is that there is some dependency or configuration item that isn't covered in the readme. Not really a big deal for me -- I'm not working on the manual myself, just want to be able to render it instead of downloading it every time it changes. I keep the PDF on my Nexus 7 along with other relevant manuals. On Tue, Jan 3, 2017 at 3:32 PM, jpff <jpff@codemist.co.uk> wrote: I used to build the pdf manual (on A4 paper) with an slink for fop.sh to /usr/bin/fop |
Date | 2017-01-04 07:32 |
From | Francois PINOT |
Subject | Re: [Csnd-dev] Building manual PDF |
The fo files generated by xsltproc can be converted to pdf using an old version of fop: fop-0.20.5. That's the way I build the PDF files shipped with each release. François2017-01-03 21:45 GMT+01:00 Dave Seidel <dave.seidel@gmail.com>:
|
Date | 2017-01-04 13:12 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
Francois, where can we download the tarball for fop-0.20.5? And can the README be updated to be specify the required version and how to install it? |
Date | 2017-01-04 13:16 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
The official FOP site does not offer this version: http://xmlgraphics.apache.org/fop/ On Wed, Jan 4, 2017 at 8:12 AM, Dave Seidel <dave.seidel@gmail.com> wrote:
|
Date | 2017-01-04 13:26 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
Found it archived here, trying it now: https://archive.apache.org/dist/xml/fop/ On Wed, Jan 4, 2017 at 8:16 AM, Dave Seidel <dave.seidel@gmail.com> wrote:
|
Date | 2017-01-04 13:36 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] Building manual PDF |
FOP is so foppish. (Sorry, can’t resist it) ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Jan 2017, at 13:16, Dave Seidel |
Date | 2017-01-04 13:43 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
Ha! Well, I've finally achieved (partial) success. Now I need to install the Java Jimi library. Will try that this evening, have to start my workday now. On Wed, Jan 4, 2017 at 8:36 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: FOP is so foppish. (Sorry, can’t resist it) |
Date | 2017-01-04 13:46 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] Building manual PDF |
Linux is shorthand for neverending dependency list. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Jan 2017, at 13:43, Dave Seidel |
Date | 2017-01-04 14:03 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
It is that. On Wed, Jan 4, 2017 at 8:46 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Linux is shorthand for neverending dependency list. |
Date | 2017-01-04 16:01 |
From | Steven Yi |
Subject | Re: [Csnd-dev] Building manual PDF |
Found: http://www.red-bean.com/pipermail/svnbook-dev/2009-February/004926.html Which let me to a few other things. Tried using fop1.extensions as 1 instead of fop.extensions in the custom XSL stylesheet we use and that did the trick here. Building using fop-2.0 on Windows. On Wed, Jan 4, 2017 at 9:03 AM, Dave Seidel |
Date | 2017-01-04 16:02 |
From | Steven Yi |
Subject | Re: [Csnd-dev] Building manual PDF |
BTW: I pushed the change. I don't know if it affects users of 0.20-5. However, I'd recommend updating to newer FOP rather than trying to support such an old one. On Wed, Jan 4, 2017 at 11:01 AM, Steven Yi |
Date | 2017-01-04 17:12 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
I can confirm that your change allows me to build the manual PDF using FOP 1.1. On Wed, Jan 4, 2017 at 11:02 AM, Steven Yi <stevenyi@gmail.com> wrote: BTW: I pushed the change. I don't know if it affects users of 0.20-5. |
Date | 2017-01-04 17:15 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] Building manual PDF |
But I can also report that the link given in README.md for downloading JAI does not work for me (DNS failure). I am instead getting it here: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html On Wed, Jan 4, 2017 at 12:12 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
|
Date | 2017-01-09 20:48 |
From | Kelly Hirai |
Subject | Re: [Csnd-dev] Building manual PDF |
confirming a build of the pdf from gentoo with fop-2.0-r2 k. On 01/04/2017 12:12 PM, Dave Seidel wrote: > I can confirm that your change allows me to build the manual PDF using FOP > 1.1. > > On Wed, Jan 4, 2017 at 11:02 AM, Steven Yi |