diff -Nur -x '*.orig' -x '*.rej' FuzzyOcr-3.5.1/FuzzyOcr/Config.pm mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr/Config.pm --- FuzzyOcr-3.5.1/FuzzyOcr/Config.pm 2007-03-06 08:09:26.000000000 -0700 +++ mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr/Config.pm 2007-03-06 08:02:56.000000000 -0700 @@ -626,6 +626,10 @@ debuglog(" $k => ".$conf->{$k}); } + unless (@scansets) { + warn("No scansets loaded, did you remove the \"focr_config_end\" line at the end of the .cf file?"); + } + foreach my $prep (@preprocessors) { my $preplabel = $prep->{label}; my $off = ($prep->{command} =~ m/^\$/) ? 1 : 0; diff -Nur -x '*.orig' -x '*.rej' FuzzyOcr-3.5.1/FuzzyOcr.cf mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.cf --- FuzzyOcr-3.5.1/FuzzyOcr.cf 2007-03-06 08:09:26.000000000 -0700 +++ mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.cf 2007-03-06 07:58:33.000000000 -0700 @@ -130,7 +130,6 @@ #focr_bin_pnmnorm /usr/bin/pnmnorm #focr_bin_pnminvert /usr/bin/pnminvert -#focr_bin_convert /usr/bin/convert ### ### Scansets diff -Nur -x '*.orig' -x '*.rej' FuzzyOcr-3.5.1/FuzzyOcr.pm mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.pm --- FuzzyOcr-3.5.1/FuzzyOcr.pm 2007-03-06 08:09:26.000000000 -0700 +++ mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.pm 2007-03-06 08:03:08.000000000 -0700 @@ -576,7 +576,7 @@ infolog("Skipping image check"); next; } - if (defined($conf->{focr_max_size_png}) and ($$pic{fsize} > $conf->{focr__max_size_png})) { + if (defined($conf->{focr_max_size_png}) and ($$pic{fsize} > $conf->{focr_max_size_png})) { infolog("PNG file size ($$pic{fsize}) exceeds maximum file size for this format, skipping..."); next; } @@ -795,6 +795,8 @@ debuglog("ocrdata=>>".join("",@result)."<<=end"); foreach $modus (0 .. 1) { + $cmcnt = 0; + @cfound = (); foreach my $ww (keys %words) { my $w = lc $ww; $w =~ s/[^a-z0-9 ]//g;