X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcin-manual-latex.git;a=blobdiff_plain;f=translate_manual;h=cd2494d4847a59ec40719810815c41512b221cd1;hp=5d8b4a17325e6f5b69ec1982271b01cb8c9d5c18;hb=refs%2Ftags%2F2021-10;hpb=870fe525f0b5062d1ed1683bf17b697aa03ae5f9 diff --git a/translate_manual b/translate_manual index 5d8b4a1..cd2494d 100755 --- a/translate_manual +++ b/translate_manual @@ -3,33 +3,42 @@ # First build PDF version, 3 times to be completely sure. # The various auxiliary files will be needed later. -pdflatex CinelerraGG_Manual -pdflatex CinelerraGG_Manual -pdflatex CinelerraGG_Manual +pdflatex CinelerraGG_Manual.tex +makeindex CinelerraGG_Manual.idx +makeindex CinelerraGG_Manual.nlo -s nomencl.ist -o CinelerraGG_Manual.nls +pdflatex CinelerraGG_Manual.tex +makeindex CinelerraGG_Manual.idx +pdflatex CinelerraGG_Manual.tex # Now build HTML version, using auxiliary files created by pdflatex. -# clean the future HTML directory +# Clean the future HTML directory rm -rf CinelerraGG_Manual -# latex2html does not know documentclass memoir. It does work nevertheless -# but produces slightly better results if we temporarily switch to book. -mv -f CinelerraGG_Manual.tex CinelerraGG_tmp.tex -sed -e 's/{memoir}/{book}/' CinelerraGG_Manual.tex +# Ensure creating the important settings file +if [ ! -f .latex2html-init ] +then + cp latex2html-init .latex2html-init +fi -# translate document -#latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -image_type gif -nofootnode -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex +# When translating manual for context help, don't use -show_section_numbers ! +# And do use -split +3 -link 3 -nofootnode and -local_icons. +# -use_dvipng, -image_type and -bottom_navigation can be used +# according to your preferences. -# another alternative options combination -latex2html -html_version 4.0,math -use_pdftex -use_dvipng -image_type png -nofootnode -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex +# translate document (GIF images generated via gs, good for debugging) +#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 -# revert back to the original documentclass -mv -f CinelerraGG_tmp.tex CinelerraGG_Manual.tex +# another alternative options combination (PNG images, nicer look) +#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 -# this single image has to be copied explicitly +# Alternative currently used on the cinelerra-gg.org website / created on a Fedora system +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 + +# This single image has to be copied explicitly cp images/cin-big.png CinelerraGG_Manual -# clean temporary files in the HTML directory +# Clean temporary files in the HTML directory rm -f CinelerraGG_Manual/WARNINGS rm -f CinelerraGG_Manual/*.pl rm -f CinelerraGG_Manual/images*