Package: gscan2pdf
Version: 0.9.17-1
Severity: normal
Tags: patch

The  gt68xx driver outputs a warm-up message that is not recognized by
gscan2pdf. The result is an annoying alert message that comes up very often,
and doesn't actually allow the user to do anything besides clicking it away.

The attached patch will recognize the message for what it is, thus putting the
message inside the progress bar, where it doesn't bug gt68xx users too much.

Actually, this is probably more of a problem with sane backends not having a
standardized way of reporting status to clients. If the gt68xx driver changes
the message, this fix will stop working, but then gscan2pdf has the same
problem if the snapscan or plustek drivers change their message.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-lauren2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gscan2pdf depends on:
ii  imagemagick         7:6.2.4.5.dfsg1-2    Image manipulation programs
ii  libglib-perl        1:1.161-1            Perl interface to the GLib and GOb
ii  libgtk2-ex-simple-l 0.50-1               A simple interface to Gtk2's compl
ii  libgtk2-perl        1:1.161-1            Perl interface to the 2.x series o
ii  liblocale-gettext-p 1.05-1               Using libc functions for internati
ii  libpdf-api2-perl    0.64-1               provides the functions for creatin
ii  libsane             1.0.19~cvs20071028-1 API library for scanners
ii  libtiff-tools       3.8.2-7              TIFF manipulation and conversion t
ii  perlmagick          7:6.2.4.5.dfsg1-2    A perl interface to the libMagick 
ii  sane-utils          1.0.19~cvs20071028-1 API library for scanners -- utilit

Versions of packages gscan2pdf recommends:
ii  djvulibre-bin                 3.5.19-3   Utilities for the DjVu image forma
ii  gocr                          0.41-1+b1  A command line OCR
ii  libgtk2-ex-podviewer-perl     0.14-2.1   Perl Gtk2 widget for displaying Pl
ii  sane                          1.0.14-5   scanner graphical frontends
ii  tesseract-ocr                 1.02-3     Command line OCR tool
ii  unpaper                       0.2-3      post-processing tool for scanned p
ii  xdg-utils                     1.0.1-2    Desktop integration utilities from

-- no debconf information

--- gscan2pdf-0.9.17.orig/bin/gscan2pdf	2007-10-31 16:54:13.000000000 -0300
+++ gscan2pdf-0.9.17/bin/gscan2pdf	2007-11-05 13:44:55.000000000 -0300
@@ -3471,7 +3471,7 @@
        return FALSE;
       }
      }
-     elsif ($line =~ /^.* Scanner warming up - waiting \d* seconds/) {
+     elsif ($line =~ /Scanner warming up - waiting \d* seconds|wait for lamp warm-up/) {
       $pbar -> set_text($d->get('Scanner warming up'));
      }
      elsif ($line =~ /^Scanned page \d*\. \(scanner status = 7\)/) {
@@ -3609,7 +3609,7 @@
     $line .= $buffer;
 
     while ($line =~ /\n/) {
-     if ($line =~ /^.* Scanner warming up - waiting \d* seconds/) {
+     if ($line =~ /Scanner warming up - waiting \d* seconds|wait for lamp warm-up/) {
       $pbar -> set_text($d->get('Scanner warming up'));
      }
      elsif ($line =~ /^Scanned document out(\d*)\.pnm/) {

Attachment: signature.asc
Description: PGP signature

Reply via email to