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