minor corrections as noted by Terje and Miroslav
[goodguy/cin-manual-latex.git] / translate_manual
1 #!/bin/sh
2
3 # First build PDF version, 3 times to be completely sure.
4 # The various auxiliary files will be needed later.
5
6 pdflatex CinelerraGG_Manual.tex
7 makeindex CinelerraGG_Manual.idx
8 makeindex CinelerraGG_Manual.nlo -s nomencl.ist -o CinelerraGG_Manual.nls
9 pdflatex CinelerraGG_Manual.tex
10 makeindex CinelerraGG_Manual.idx
11 pdflatex CinelerraGG_Manual.tex
12
13 # Now build HTML version, using auxiliary files created by pdflatex.
14
15 # Clean the future HTML directory
16 rm -rf CinelerraGG_Manual
17
18 # Ensure creating the important settings file
19 if [ ! -f .latex2html-init ]
20 then
21     cp latex2html-init .latex2html-init
22 fi
23
24 # When translating manual for context help, don't use -show_section_numbers !
25 # And do use -split +3 -link 3 -nofootnode and -local_icons.
26 # -use_dvipng, -image_type and -bottom_navigation can be used
27 # according to your preferences.
28
29 # translate document (GIF images generated via gs, good for debugging)
30 #latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -image_type gif -nofootnode -show_section_numbers -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex
31
32 # another alternative options combination (PNG images, nicer look)
33 #latex2html -html_version 4.0,math -use_pdftex -use_dvipng -image_type png -nofootnode -show_section_numbers -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex
34
35 # Alternative currently used on the cinelerra-gg.org website / created on a Fedora system
36 latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -long_titles 5 -image_type gif -nofootnode -split +3 -link 3 -bottom_navigation -local_icons -t 'CinelerraGG_Manual' CinelerraGG_Manual.tex
37
38 # This single image has to be copied explicitly
39 cp images/cin-big.png CinelerraGG_Manual
40
41 # Clean temporary files in the HTML directory
42 rm -f CinelerraGG_Manual/WARNINGS
43 rm -f CinelerraGG_Manual/*.pl
44 rm -f CinelerraGG_Manual/images*