From f22f18f107255ce0cfa96ffcc97515b9d0179a76 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Tue, 21 Jun 2005 13:12:52 +0000 Subject: [PATCH] - remove '\n' causing that pstoimg generates gray images (#161186, #127010), solution from Julius Smith --- latex2html-2002.2.1-grayimg.patch | 11 +++++++++++ latex2html.spec | 10 +++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 latex2html-2002.2.1-grayimg.patch diff --git a/latex2html-2002.2.1-grayimg.patch b/latex2html-2002.2.1-grayimg.patch new file mode 100644 index 0000000..329359d --- /dev/null +++ b/latex2html-2002.2.1-grayimg.patch @@ -0,0 +1,11 @@ +--- latex2html-2002-2-1/pstoimg.pin.grayimg 2005-05-04 11:20:46.000000000 +0200 ++++ latex2html-2002-2-1/pstoimg.pin 2005-06-21 14:54:30.899550448 +0200 +@@ -1021,7 +1021,7 @@ sub ps2pnm { + } + my $had_nonwhite; + if($opt{white}) { +- $had_nonwhite = ($ps =~ s/(\n\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray clippath fill grestore)/$1 1 $2/s); ++ $had_nonwhite = ($ps =~ s/(\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray clippath fill grestore)/$1 1 $2/s); + } + $ps_changed = $had_papersize || $had_nonwhite; + if($ps_changed) { diff --git a/latex2html.spec b/latex2html.spec index 6d9e454..06bf552 100644 --- a/latex2html.spec +++ b/latex2html.spec @@ -4,7 +4,7 @@ Summary: Converts LaTeX documents to HTML Name: latex2html Version: 2002.2.1 -Release: 3 +Release: 4 License: Free To Use But Restricted (See LICENSE) Group: Applications/Publishing URL: http://www.latex2html.org/ @@ -16,6 +16,7 @@ Patch1: teTeX-l2h-config.patch Patch3: latex2html-2K.1beta-DB.patch Patch4: latex2html-2002-2-1-SHLIB.patch Patch5: latex2html-2002-2-1-gsfont.patch +Patch6: latex2html-2002.2.1-grayimg.patch ### # Japanization patches @@ -55,6 +56,9 @@ pushd %{name}-%{latex2html_ver} # don't require the font directory to be ended with PATH/fonts %patch5 -p1 -b .gsfont +# don't generate gray images as output form latex2html +%patch6 -p1 -b .grayimg + # remove all platforms we don't need for i in Dos Mac OS2 Win32; do rm -f L2hos/${i}.pm @@ -210,6 +214,10 @@ exit 0 %{_mandir}/man1/pstoimg.* %changelog +* Tue Jun 21 2005 Jindrich Novy 2002.2.1-4 +- remove '\n' causing that pstoimg generates gray images + (#161186, #127010), solution from Julius Smith + * Wed May 4 2005 Jindrich Novy 2002.2.1-3 - add latex2html, texexpand, pstoimg man pages (#60308)