#
Building the HTML Manual for Context Help

In addition to compiling your own CINELERRA-GG, you should also build an html version of the manual that is needed for Context Help in the program. The main version of the manual is in latex to produce a pdf version of the manual and this is required to be built first as the basis for the html version. This means that you need a full latex environment, git, and the latex2html program in order to eventually create the html version. Texlive is about 1 GB; Latex2html itself has many requirements and missing any will result in failure: some requirments include Netpbm, GhostScript, dvips, etc. Latex2html must be at least version 2021.2 in order to create the html manual version from the latex.

The steps are as follows:

1. Download the manual in LaTeX:

       git clone git://git.cinelerra-gg.org/goodguy/cin-manual-latex.git master

2. Included in the download is the translate_manual script. After modifying this file to have execute permission, run this script from a terminal window in the master directory where it was downloaded (be aware that this script includes several rm commands):

       ./translate_manual

   The steps that this script performs are as follows:

   - PDF production. The PDF document will be produced from the latex source in the master directory. Since the glossary and index are also present, it has to run the pdf build several times. The following commands in the translate_manual script produce the PDF document from latex source which includes invoking makeindex for the Index and Glossary.

         			pdflatex CinelerraGG_Manual.tex
         			makeindex CinelerraGG_Manual.idx
         			pdflatex CinelerraGG_Manual.tex
         			makeindex CinelerraGG_Manual.nlo -s nomencl.ist -o CinelerraGG_Manual.nls
         			pdflatex CinelerraGG_Manual.tex

     After these commands are executed you will have the manual only in PDF format. So if you only want a PDF version, you only need to run these previous 5 lines but Context Help from the program will not be available with the PDF version.

   - Next, to produce HTML output the script then moves (renames) latex 2html-init to .latex2html-init (starting with dot).

   - Then the script uses latex2html: latex2html is run with a unique set of parameters and some cleanup is performed. It creates the directory CinelerraGG_Manual containing all the files of the manual in html: tables, references, index, glossary, and various images.

3. After installation of the CINELERRA-GG program, place the complete unchanged directory CinelerraGG_Manual, as it was produced by latex2html from the manual package, into the doc directory of the installed Cinelerra package. This will be the directory bin/doc/CinelerraGG_Manual if CINELERRA-GG was built –with-single-user. The script ContextManual.pl will automatically be in bin/doc after the successful build of the program. It is this perl script that allows the program to access CinelerraGG_Manual to offer Context Help.

4. Optionally you can make some adjustments to the latex2html command line in the translate_manual script. Some variants are shown in the comments inside the script but changes may impact the usability of Alt/h hotkey from the program.