1,6 → 1,6 |
Les instructions d'installation des outils de conversion du livre LFS |
|
Après avoir téléchargé les sources du CVS, certains points doivent être |
Après avoir téléchargé les sources du SVN, certains points doivent être |
configuré sur votre ordinateur si vous souhaitez convertir les sources XML en |
quelque chose de facile à lire (par exemple du HTML, TXT, PS ou PDF). Si vous |
êtes intéressé par cela, continuez à lire. Si vous êtes seulement intéressé par |
13,42 → 13,30 |
Si vous souhaitez seulement convertir le XML en HTML, réalisez ce qui suit : |
|
* libxml2 |
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxml2.html |
- http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html |
|
* libxslt |
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxslt.html |
- http://www.linuxfromscratch.org/blfs/view/svn/general/libxslt.html |
|
* DocBook DTD |
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/xml.html |
- http://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html |
|
* DocBook XSL Stylesheets |
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html |
- de plus, créez un lien de |
/usr/share/xml/docbook/xsl-stylesheets-1.65.1 vers |
/usr/share/xml/docbook/xsl-stylesheets-current |
- http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html |
|
cd /usr/share/xml/docbook/ && |
ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current |
|
|
* HTMLTidy |
- http://tidy.sourceforge.net/ |
- http://www.linuxfromscratch.org/blfs/view/svn/general/tidy.html |
|
L'installation de HTMLTidy est un simple `./configure --prefix=/usr && \ |
make && make install` |
|
------------------------------------------------------------------------------- |
Si vous voulez aussi être capable de convertir le livre en PDF, alors vous |
aurez besoin du package FOP. Ceci prend un fichier XSL-FO (créé avec libxslt |
que vous avez déjà installé) et le convertit en PDF : |
que vous avez déjà installé) et le convertit en PDF. FOP est dépendant de l'API |
Java Advanced Imaging (JAI) pour afficher des graphiques SVG. Les instructions |
pour installer le JAI sont inclus dans les instructions FOP. Exécutez ce qui |
suit : |
|
- http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz |
* J2SDK |
- http://www.linuxfromscratch.org/blfs/view/svn/general/j2sdk.html |
|
Installez FOP en lançant : |
|
cd /opt && |
tar -xzvf /usr/src/fop-0.20.5-bin.tar.gz && |
mv fop-0.20.5 fop |
|
Maintenant, configurez JAVA_HOME, FOP_HOME et PATH avec des valeurs |
appropriées pour votre système. |
* FOP |
- http://www.linuxfromscratch.org/blfs/view/svn/pst/fop.html |