INSTALL 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. LFS Book Conversion Tools Installation Instructions
  2. After downloading the CVS source, there are some things that need to be setup
  3. on your computer if you want to convert the XML source into something easier to
  4. read (e.g. HTML, TXT, PS or PDF). If you are interested in this, then keep
  5. reading. If you are only interested in editing the XML source for re-
  6. submission to the lfs-book or lfs-dev mailing lists, then you do not need this
  7. document. Instead, you need to read the LFS Editor's Manual. See the LFS
  8. website at http://linuxfromscratch.org for more information.
  9. -------------------------------------------------------------------------------
  10. If all you want to do is convert XML to HTML perform the following:
  11. First, let's handle some dependancies:
  12. * Unzip
  13. - http://www.linuxfromscratch.org/blfs/view/cvs/general/unzip.html
  14. * SGML Common
  15. - http://www.linuxfromscratch.org/blfs/view/cvs/pst/sgml-common.html
  16. * libxml2
  17. - http://www.linuxfromscratch.org/blfs/view/cvs/general/libxml2.html
  18. Now install the following:
  19. * DocBook DTD
  20. - http://www.linuxfromscratch.org/blfs/view/cvs/pst/DocBook.html
  21. * DSSSL DocBook Stylesheets
  22. - http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-dsssl.html
  23. * OpenSP
  24. - http://www.linuxfromscratch.org/blfs/view/cvs/pst/opensp.html
  25. * OpenJade
  26. - http://www.linuxfromscratch.org/blfs/view/cvs/pst/openjade.html
  27. Once you have followed the installation instructions for all these packages
  28. from the BLFS Book, then you have a basic DocBook setup. Below are some
  29. alternate packages that you can use to convert to other formats.
  30. -------------------------------------------------------------------------------
  31. If you want to be able to convert the book into PS and PDF as well, then you
  32. will need the Htmldoc package. This takes a HTML file (created with openjade
  33. which you already installed) and converts it to PS or PDF:
  34. - http://www.easysw.com/htmldoc/
  35. Install HTMLDOC by running:
  36. ./configure --prefix=/usr
  37. make
  38. make install
  39. An excellent X front-end for HTMLDOC is FLTK. If you will be doing rendering
  40. in X, then you will probably want this package.
  41. - http://sourceforge.net/projects/fltk
  42. Install FLTK bt running:
  43. ./configure --prefix=/usr
  44. make
  45. make install
  46. If you want to be able to convert the book into TXT as well, then you need the
  47. lynx browser. Conversion is handled via the -dump option.
  48. - http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/lynx.html
  49. You are finished installing everything. Read the README file for some examples
  50. how to convert this XML to the various other formats.