blob: 5a5c392f467d0148428d413b6fb915d760312e29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
LFS Book Conversion Tools Installation Instructions
After downloading the CVS source, there are some things that need to be setup
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
website at http://linuxfromscratch.org for more information.
-------------------------------------------------------------------------------
If all you want to do is convert XML to HTML perform the following:
First, let's handle some dependancies:
* Unzip
- http://www.linuxfromscratch.org/blfs/view/cvs/general/unzip.html
* SGML Common
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/sgml-common.html
* libxml2
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxml2.html
Now install the following:
* 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
* OpenSP
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/opensp.html
* OpenJade
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/openjade.html
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.
-------------------------------------------------------------------------------
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:
- http://www.easysw.com/htmldoc/
Install HTMLDOC by running:
./configure --prefix=/usr
make
make install
An excellent X front-end for HTMLDOC is FLTK. If you will be doing rendering
in X, then you will probably want this package.
- http://sourceforge.net/projects/fltk
Install FLTK bt running:
./configure --prefix=/usr
make
make install
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.
- http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/lynx.html
You are finished installing everything. Read the README file for some examples
how to convert this XML to the various other formats.
|