Changeset 97e4364 for README


Ignore:
Timestamp:
04/28/2005 06:29:06 PM (16 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, krejzi/svn, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
4705fa4
Parents:
f7fc4ac
Message:

Making README and INSTALL current

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3817 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • README

    rf7fc4ac r97e4364  
    1 OUT OF DATE.  UPDATE PENDING.
    2 
    3 How do I convert these XML files to other formats like HTML, PF, PS
     1How do I convert these XML files to other formats like HTML, PDF,
    42and TXT? You need to have some software installed that deal with these
    5 conversions. Please read the INSTALL file how to install that software.
     3conversions. Please read the INSTALL file to determine what programs
     4you need to install and where to get instructions to install that software.
    65Then come back to this file for examples how to convert these files
    76into various other formats.
    87
     8These instructions are also incorporated in the Makefile.
     9
    910XML to HTML:
    1011------------
    11 Create a directory in which you want to store the HTML files and cd into
    12 that directory. Now run:
    13     mkdir introduction postlfs general connect basicnet server \
    14               content x kde gnome xsoft multimedia pst preface \
    15               appendices other
    16         /usr/bin/openjade -t xml \
    17           -d /usr/share/dsssl/docbook/html/blfs.dsl \
    18           /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
    19           /path/to/index.xml
    20 
     12Create a directory in which you want to store the HTML files: ~/blfs-html
     13Change to the top of the directory where the xml code is located.
     14Now run:
     15  BASEDIR="~/blfs-html"
     16  xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
     17     stylesheets/blfs-chunked.xsl index.xml
     18  mkdir -p $(BASEDIR)stylesheets $(BASEDIR)images
     19  cp stylesheets/*.css $(BASEDIR)stylesheets
     20  cp images/*.png $(BASEDIR)/images
     21  sed -i -e "s@../stylesheets@stylesheets@g" $(BASEDIR)/*.html
     22  sed -i -e "s@../images@images@g" $(BASEDIR)/*.html
     23  sh goTidy $(BASEDIR)/
    2124
    2225
     
    2427--------------------
    2528The NOCHUNKS HTML version is one big HTML file:
    26         /usr/bin/openjade -t sgml \
    27          -V nochunks \
    28          -d /usr/share/dsssl/docbook/html/blfs.dsl \
    29          /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
    30          /path/to/index.xml > nochunks.html
     29  xsltproc --xinclude --nonet -stringparam profile.condition html \
     30     --output $(BASEDIR)/BLFS-BOOK.html stylesheets/blfs-nochunks.xsl index.xml
     31  tidy -config tidy.conf $(BASEDIR)/BLFS-BOOK.html
     32  sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/BLFS-BOOK.html
    3133
    3234XML to TXT:
     
    3537        /usr/bin/lynx -dump nochunks.html > output.txt
    3638
    37 XML to PS and PDF:
     39XML to PDF:
    3840------------------
    39 First create the NOCHUNKS HTML file, then convert by starting
    40 htmldoc. You can use the GUI and select the options. If you're
    41 satisfied with the default options you can run this command:
     41xsltproc --xinclude --nonet --output blfs.fo stylesheets/blfs-pdf.xsl index.xml
     42sed -i -e "s/inherit/all/" blfs.fo
     43fop.sh blfs.fo blfs.pdf
     44mkdir -p  $(BASEDIR)/pdf
     45rm blfs.fo
     46mv blfs.pdf $(BASEDIR)/pdf
     47                                                         
    4248
    43         /usr/bin/htmldoc --book --firstpage p1 -v -t <type> \
    44                 -f <output> nochunks.html
    45 
    46 replace <type> by pdf13 to create a pdf file or replace <type> by ps3 to
    47 create a ps file. There are other pdf and ps levels, see the man page for
    48 possible other options. Replace <output> with the filename of the ps or
    49 pdf file that is to be generated.
    50 
Note: See TracChangeset for help on using the changeset viewer.