Changeset 5507127
- Timestamp:
- 11/12/2004 07:43:20 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 3fbdf00
- Parents:
- a66ea2b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
INSTALL
ra66ea2b r5507127 1 1 LFS Book Conversion Tools Installation Instructions 2 2 3 After downloading the CVSsource, there are some things that need to be set up3 After downloading the SVN source, there are some things that need to be set up 4 4 on your computer if you want to convert the XML source into something easier to 5 5 read (e.g. HTML, TXT, PS or PDF). If you are interested in this, then keep … … 24 24 - http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html 25 25 - additionally create a link from 26 /usr/share/xml/docbook/xsl-stylesheets-1.6 5.1to26 /usr/share/xml/docbook/xsl-stylesheets-1.67.0 to 27 27 /usr/share/xml/docbook/xsl-stylesheets-current 28 28 29 cd /usr/share/xml/docbook/ && 30 ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current 29 ln -s xsl-stylesheets-1.67.0 /usr/share/xml/docbook/xsl-stylesheets-current 31 30 32 31 * HTMLTidy 33 - http://tidy.sourceforge.net/ 34 35 Installation of HTMLTidy is a simple `./configure --prefix=/usr && \ 36 make && make install` 32 - http://www.linuxfromscratch.org/blfs/view/cvs/general/tidy.html 33 - you'll also need the patch at http://linuxfromscratch.org/~matthew/tidy-041026-prevent_PRE_newlines-1.patch as well. 37 34 38 35 ------------------------------------------------------------------------------- 39 36 If you want to be able to convert the book into PDF as well, then you will need 40 37 the FOP package. This takes an XSL-FO file (created with libxslt which you 41 already installed) and converts it to PDF: 38 already installed) and converts it to PDF. FOP is dependent on ANT 39 (Another Neat Tool) and the Java Advanced Imaging (JAI) API. 42 40 43 - http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz 41 First we need the Java SDK installed. See 42 http://www.linuxfromscratch.org/blfs/view/cvs/general/j2sdk.html. 44 43 45 Install FOP by running: 44 Now install JAI: 45 - Download jai-1_1_2_01-lib-linux-i586-jdk.bin from 46 http://java.sun.com/products/java-media/jai/downloads/download-1_1_2_01.html 47 (download the version for the JDK Install). 48 - chmod +x jai-1_1_2_01-lib-linux-i586-jdk.bin 49 - cd /opt/j2sdk && /path/to/jai-1_1_2_01-lib-linux-i586-jdk.bin 46 50 47 cd /opt && 48 tar -xzvf /usr/src/fop-0.20.5-bin.tar.gz && 49 mv fop-0.20.5 fop 51 Next install ANT: 52 - download http://www.apache.org/dist/ant/source/apache-ant-1.6.2-src.tar.bz2 53 - tar -xjvf apache-ant-1.6.2-src.tar.bz2 54 (recent versions of tar will warn about "A lone zero block at 33476" but 55 this can be safely ignored) 56 - cd apache-ant-1.6.2 && \ 57 ./boostrap.sh && \ 58 ./build && \ 59 install -d /opt/ant && \ 60 cp -r dist/* /opt/ant 61 - edit your bash profile to set ANT_HOME=/opt/ant and PATH=$PATH:/opt/ant/bin 50 62 51 Now set JAVA_HOME, FOP_HOME and PATH to values appropriate to your system. 63 And finally install FOP: 64 - download http://www.apache.org/dist/xml/fop/fop-0.20.5-src.tar.gz 65 - tar -xzvf fop-0.20.5-src.tar.gz 66 (recent versions of tar will warn about "A lone zero block at 33476" but 67 this can be safely ignored) 68 - cd fop-0.20.5 && 69 ./build.sh && 70 install -d /opt/fop/{bin,lib} && 71 cp lib/{avalon-framework-cvs-20020806.jar,batik.jar} build/fop.jar \ 72 /opt/fop/lib && 73 cp fop.sh /opt/fop/bin 74 - edit your bash profile to set FOP_HOME=/opt/fop and PATH=$PATH:/opt/fop/bin -
stylesheets/pdf/lfs-mixed.xsl
ra66ea2b r5507127 107 107 <xsl:call-template name="object.id"/> 108 108 </xsl:variable> 109 <xsl:variable name="graphic.width">110 <xsl:call-template name="admon.graphic.width"/>111 </xsl:variable>112 109 <fo:block id="{$id}"> 113 <fo:list-block provisional-distance-between-starts="{$graphic.width} + 18pt" 114 provisional-label-separation="18pt" xsl:use-attribute-sets="list.block.spacing"> 110 <fo:list-block xsl:use-attribute-sets="list.block.spacing"> 115 111 <fo:list-item> 116 112 <fo:list-item-label end-indent="label-end()"> 117 113 <fo:block margin-left="4pt"> 118 <fo:external-graphic width="auto" height="auto" 119 content-width="{$graphic.width}" > 114 <fo:external-graphic width="auto" height="auto"> 120 115 <xsl:attribute name="src"> 121 116 <xsl:call-template name="admon.graphic"/>
Note:
See TracChangeset
for help on using the changeset viewer.