2003-09-10 02:13:03 +01:00
|
|
|
LFS Book Conversion Tools Installation Instructions
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-10-04 11:19:10 +01:00
|
|
|
After downloading the CVS source, there are some things that need to be set up
|
2003-09-10 02:13:03 +01:00
|
|
|
on your computer if you want to convert the XML source into something easier to
|
|
|
|
read (e.g. HTML, TXT, PS or PDF). If you are interested in this, then keep
|
|
|
|
reading. If you are only interested in editing the XML source for re-
|
|
|
|
submission to the lfs-book or lfs-dev mailing lists, then you do not need this
|
|
|
|
document. Instead, you need to read the LFS Editor's Manual. See the LFS
|
2004-01-27 22:28:14 +00:00
|
|
|
website at http://www.linuxfromscratch.org for more information.
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
If all you want to do is convert XML to HTML perform the following:
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-10-20 21:32:04 +01:00
|
|
|
First, let's handle some dependencies:
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* Unzip
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/general/unzip.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* SGML Common
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/sgml-common.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* libxml2
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxml2.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
Now install the following:
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* DocBook DTD
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/DocBook.html
|
|
|
|
|
|
|
|
* DSSSL DocBook Stylesheets
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-dsssl.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* OpenSP
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/opensp.html
|
2002-05-28 01:52:20 +01:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* OpenJade
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/openjade.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
Once you have followed the installation instructions for all these packages
|
|
|
|
from the BLFS Book, then you have a basic DocBook setup. Below are some
|
|
|
|
alternate packages that you can use to convert to other formats.
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
If you want to be able to convert the book into PS and PDF as well, then you
|
|
|
|
will need the Htmldoc package. This takes a HTML file (created with openjade
|
|
|
|
which you already installed) and converts it to PS or PDF:
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
- http://www.easysw.com/htmldoc/
|
|
|
|
|
|
|
|
Install HTMLDOC by running:
|
2001-02-22 18:21:07 +00:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
An excellent X front-end for HTMLDOC is FLTK. If you will be doing rendering
|
|
|
|
in X, then you will probably want this package.
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
- http://sourceforge.net/projects/fltk
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
Install FLTK bt running:
|
2001-02-22 18:21:07 +00:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
If you want to be able to convert the book into TXT as well, then you need the
|
|
|
|
lynx browser. Conversion is handled via the -dump option.
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/lynx.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
You are finished installing everything. Read the README file for some examples
|
|
|
|
how to convert this XML to the various other formats.
|
2001-02-22 18:21:07 +00:00
|
|
|
|