Author: bugman Date: Fri Oct 10 16:54:59 2014 New Revision: 26241 URL: http://svn.gna.org/viewcvs/relax?rev=26241&view=rev Log: Added instructions and a build script for creating a useful version of latex2html. This version is essential for building the HTML version of the manual at http://www.nmr-relax.com/manual/. The build script downloads the Debian latex2html-2008 sources as well as all Debian patches for latex2html. It then applies a number of patches for fixing and improving the relax documentation. The program is then compiled and can be installed as the root user into /usr/local/. Added: trunk/docs/devel/latex2html/ trunk/docs/devel/latex2html/README trunk/docs/devel/latex2html/relax_lstlisting.patch trunk/docs/devel/latex2html/relax_max_char.patch trunk/docs/devel/latex2html/relax_no_generic_words.patch trunk/docs/devel/latex2html/setup (with props) Added: trunk/docs/devel/latex2html/README URL: http://svn.gna.org/viewcvs/relax/trunk/docs/devel/latex2html/README?rev=26241&view=auto ============================================================================== --- trunk/docs/devel/latex2html/README (added) +++ trunk/docs/devel/latex2html/README Fri Oct 10 16:54:59 2014 @@ -0,0 +1,12 @@ +The following instructions are required to build the version of latex2html for building the HTML version of the manual located at http://www.nmr-relax.com/manual/. It includes both the Debian patches, downloaded by the setup script, and some patches specific for improving the relax documentation. + +To install a fixed working copy of latex2html into /usr/local, type: + +$ ./setup +$ cd build +$ su +# make install + +Look at the 'setup' file to see all the patches which have been applied. + +Note that perl-doc needs to be installed. Added: trunk/docs/devel/latex2html/relax_lstlisting.patch URL: http://svn.gna.org/viewcvs/relax/trunk/docs/devel/latex2html/relax_lstlisting.patch?rev=26241&view=auto ============================================================================== --- trunk/docs/devel/latex2html/relax_lstlisting.patch (added) +++ trunk/docs/devel/latex2html/relax_lstlisting.patch Fri Oct 10 16:54:59 2014 @@ -0,0 +1,29 @@ +--- build/latex2html.pin 2013-08-07 17:33:54.112432310 +0200 ++++ build_lstlisting/latex2html.pin 2013-08-07 17:07:56.042890097 +0200 +@@ -8621,7 +8621,7 @@ + s/$mathend_verbatim_rx/&make_comment('MATHEND', '')/eg; + # s/$verbatim_mark(verbatim\*?)(\d+)#/<PRE>\n$verbatim{$2}\n<\/PRE>/go; + ## s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)#/\n$verbatim{$2}\n/go; +- s!$verbatim_mark(\w*[vV]erbatim\*?|tex2html_code)(\d+)#\n?!$tmp=$verbatim{$2}; ++ s!$verbatim_mark(\w*[vV]erbatim\*?|tex2html_code|lstlisting)(\d+)#\n?!$tmp=$verbatim{$2}; + $tmp.(($tmp =~/\n\s*$/s)? '':"\n")!eg; + # "\n".$tmp.(($tmp =~/\n\s*$/s)? '':"\n")!eg; + # s/$verbatim_mark(rawhtml)(\d+)#/$verbatim{$2}/eg; # Raw HTML +@@ -8682,7 +8682,7 @@ + # s/$verbatim_mark(verbatim)(\d+)#/\\begin{verbatim}$verbatim{$2}\\end{verbatim}\n/go; + s/$verbatim_mark(\w*[Vv]erbatim)(\d+)#/\\begin{$1}\n$verbatim{$2}\\end{$1}\n/go; + s/$verbatim_mark(rawhtml)(\d+)#/\\begin{rawhtml}\n$verbatim{$2}\\end{rawhtml}\n/go; +- s/$verbatim_mark(imagesonly|tex2html_code)(\d+)#\n?/$verbatim{$2}/go; ++ s/$verbatim_mark(imagesonly|tex2html_code|lstlisting)(\d+)#\n?/$verbatim{$2}/go; + s/$verbatim_mark$image_env_rx(\d+)#/\\begin{$1}\n$verbatim{$2}\\end{$1}\n/go; + s/($math_verbatim_rx|$mathend_verbatim_rx)//go; + } +@@ -16606,7 +16606,7 @@ + + # Matches environments that should not be touched during the translation + # $verbatim_env_rx = "\\s*{(verbatim|rawhtml|LVerbatim)[*]?}"; +- $verbatim_env_rx = "\\s*(\\w*[Vv]erbatim|rawhtml|imagesonly|tex2html_code)[*]?"; ++ $verbatim_env_rx = "\\s*(\\w*[Vv]erbatim|rawhtml|imagesonly|tex2html_code|lstlisting)[*]?"; + $image_env_rx = "\\s*(picture|xy|diagram)[*]?"; + $keepcomments_rx = "\\s*(picture|makeimage|xy|diagram)[*]?"; + Added: trunk/docs/devel/latex2html/relax_max_char.patch URL: http://svn.gna.org/viewcvs/relax/trunk/docs/devel/latex2html/relax_max_char.patch?rev=26241&view=auto ============================================================================== --- trunk/docs/devel/latex2html/relax_max_char.patch (added) +++ trunk/docs/devel/latex2html/relax_max_char.patch Fri Oct 10 16:54:59 2014 @@ -0,0 +1,11 @@ +--- build_lstlisting/latex2html.pin 2013-08-07 17:07:56.042890097 +0200 ++++ build_max_char/latex2html.pin 2013-08-07 17:41:03.421857395 +0200 +@@ -9393,8 +9393,6 @@ + $_ = $saved; + } + if ($title) { +- #ensure no more than 32 characters, including .html extension +- $title =~ s/^(.{1,27}).*$/$1/; + ++$OUT_NODE; + join("", ${PREFIX}, $title, $EXTN); + } else { Added: trunk/docs/devel/latex2html/relax_no_generic_words.patch URL: http://svn.gna.org/viewcvs/relax/trunk/docs/devel/latex2html/relax_no_generic_words.patch?rev=26241&view=auto ============================================================================== --- trunk/docs/devel/latex2html/relax_no_generic_words.patch (added) +++ trunk/docs/devel/latex2html/relax_no_generic_words.patch Fri Oct 10 16:54:59 2014 @@ -0,0 +1,34 @@ +Common subdirectories: build/config and build_no_generic_words/config +Common subdirectories: build/docs and build_no_generic_words/docs +Common subdirectories: build/example and build_no_generic_words/example +Common subdirectories: build/foilhtml and build_no_generic_words/foilhtml +Common subdirectories: build/icons and build_no_generic_words/icons +Common subdirectories: build/IndicTeX-HTML and build_no_generic_words/IndicTeX-HTML +diff -u build/l2hconf.pin build_no_generic_words/l2hconf.pin +--- build/l2hconf.pin 2014-10-10 16:37:43.293399937 +0200 ++++ build_no_generic_words/l2hconf.pin 2014-10-10 16:39:29.474988939 +0200 +@@ -935,14 +935,14 @@ + 'November', 'December'); + # These words will be omitted from filenames derived + # from section-titles, when using -long_titles +- $GENERIC_WORDS = "and|the|of|for|by|a|an|to"; ++ $GENERIC_WORDS = ""; + } + + # These words will be omitted from filenames derived + # from section-titles, when using -long_titles + # Override this value within a <language>_titles subroutine. + # +-$GENERIC_WORDS = "and|the|of|for|by|a|an|to"; ++$GENERIC_WORDS = ""; + + + # Replace "english" with another language provided +Common subdirectories: build/L2hos and build_no_generic_words/L2hos +Common subdirectories: build/makeseg and build_no_generic_words/makeseg +Common subdirectories: build/styles and build_no_generic_words/styles +Common subdirectories: build/tests and build_no_generic_words/tests +Common subdirectories: build/texinputs and build_no_generic_words/texinputs +Common subdirectories: build/versions and build_no_generic_words/versions +Common subdirectories: build/wrapper and build_no_generic_words/wrapper +Common subdirectories: build/XyMTeX-HTML and build_no_generic_words/XyMTeX-HTML Added: trunk/docs/devel/latex2html/setup URL: http://svn.gna.org/viewcvs/relax/trunk/docs/devel/latex2html/setup?rev=26241&view=auto ============================================================================== --- trunk/docs/devel/latex2html/setup (added) +++ trunk/docs/devel/latex2html/setup Fri Oct 10 16:54:59 2014 @@ -0,0 +1,56 @@ +#! /bin/sh + +# Fetch the files. +curl -O http://ftp.de.debian.org/debian/pool/main/l/latex2html/latex2html_2008-debian1-10.debian.tar.gz +curl -O http://ftp.de.debian.org/debian/pool/main/l/latex2html/latex2html_2008-debian1.orig.tar.gz + +# Cleanup. +rm -rf build debian latex2html-2008-debian1 + +# Unpack the files. +tar xvf latex2html_2008-debian1-10.debian.tar.gz +tar xvf latex2html_2008-debian1.orig.tar.gz + +# The build directory. +mv latex2html-2008-debian1 build + +# Go there. +cd build + +# Patching. +#patch -p1 < ../debian/patches/add-url.patch # Useless patch as this new URL is dead! +patch -p1 < ../debian/patches/pstoimg-dont-use-rgb-txt.patch +patch -p1 < ../debian/patches/pstoimg-fix-borders.patch +patch -p1 < ../debian/patches/pstoimg-fix-file-pattern.patch +patch -p1 < ../debian/patches/fix-typos.patch +patch -p1 < ../debian/patches/html-version-4.patch +patch -p1 < ../debian/patches/l2hconf-fix-shebang.patch +patch -p1 < ../debian/patches/latex2html-fix-authoraddress.patch +patch -p1 < ../debian/patches/override-dvips-dot-in-filename-problem.patch +patch -p1 < ../debian/patches/manual-fix-address.patch +patch -p1 < ../debian/patches/makefiles-fixes.patch +patch -p1 < ../debian/patches/fix-image-types.patch +patch -p1 < ../debian/patches/add-abnt.patch +patch -p1 < ../debian/patches/fix-romanian.patch +patch -p1 < ../debian/patches/fix-mathend-mark.patch +patch -p1 < ../debian/patches/add-floatflt-ins.patch +patch -p1 < ../debian/patches/fix-pdfoutput.patch +patch -p1 < ../debian/patches/fix-gs-stderr.patch +patch -p1 < ../debian/patches/debian-install.patch +patch -p1 < ../debian/patches/pstoimg-match-gray.patch +patch -p1 < ../debian/patches/fix-spaces-in-filenames.patch +patch -p1 < ../debian/patches/manpages.patch +patch -p1 < ../debian/patches/eurosym.patch +patch -p1 < ../debian/patches/match-multiline.patch +patch -p1 < ../debian/patches/latex2html-fix-defined.patch +patch -p1 < ../relax_lstlisting.patch +patch -p1 < ../relax_max_char.patch +patch -p1 < ../relax_no_generic_words.patch + +# Configure. +./configure --prefix=/usr/local +#GS_LIB=/usr/share/ghostscript/9.14/:. ./configure --prefix=/usr/local + +# Make. +make +#GS_LIB=/usr/share/ghostscript/9.14/Resource/Init/:/usr/share/ghostscript/9.14/Resource/Font:. make Propchange: trunk/docs/devel/latex2html/setup ------------------------------------------------------------------------------ svn:executable = *