Package: pct-scanner-scripts
Version: 0.0.4-3
Followup-For: Bug #634760
Dear Maintainer,
I'm using a Fujitsu ScanSnap500. The device name contains a whitespace:
fujitsu:ScanSnap iX500:15997
According to 'pct-scanner-script --search' the source also contains
whitespace:
Options specific to device `fujitsu:ScanSnap iX500:15997':
Standard:
--source ADF Front|ADF Back|ADF Duplex [ADF Front]
Selects the scan source (such as a document-feeder).
The pct-scanner-script cannot handle whitespaces in DEVICE and SOURCE-
The following patch would solve the problem:
@@ -362,7 +362,7 @@
echo $"resolution: $RESOLUTION"
echo $"scanning of document has started, please standby ..."
scan_busy_set
- scanadf $VERBOSE --device-name $DEVICE --scan-script "$COMMAND"
--output-file "$OUTDIR"/scanscript/input/image-%04d.pbm --source $SOURCE
--resolution $RESOLUTION --mode Lineart --compression None -x 210.000mm -y
297.000mm --start-count "$startcount" $EXTRA $EXEC_VERBOSE
+ scanadf $VERBOSE --device-name "$DEVICE" --scan-script "$COMMAND"
--output-file "$OUTDIR"/scanscript/input/image-%04d.pbm --source "$SOURCE"
--resolution $RESOLUTION --mode Lineart --compression None -x 210.000mm -y
297.000mm --start-count "$startcount" $EXTRA $EXEC_VERBOSE
scan_busy_unset
}
@@ -380,7 +380,7 @@
echo $"resolution: $RESOLUTION"
echo $"scanning of document has started, please standby ..."
scan_busy_set
- scanadf $VERBOSE --device-name $DEVICE --scan-script "$COMMAND"
--output-file "$OUTDIR"/scanscript/input/image-%04d.pbm --source $SOURCE
--resolution $RESOLUTION --mode Color -x 210.000mm -y 297.000mm --start-count
"$startcount" $EXTRA $EXEC_VERBOSE
+ scanadf $VERBOSE --device-name "$DEVICE" --scan-script "$COMMAND"
--output-file "$OUTDIR"/scanscript/input/image-%04d.pbm --source "$SOURCE"
--resolution $RESOLUTION --mode Color -x 210.000mm -y 297.000mm --start-count
"$startcount" $EXTRA $EXEC_VERBOSE
scan_busy_unset
}
@@ -398,7 +398,7 @@
echo $"resolution: $RESOLUTION"
echo $"scanning of document has started, please standby ..."
scan_busy_set
- scanadf $VERBOSE --device-name $DEVICE --scan-script "$COMMAND"
--output-file "$OUTDIR"/scanscript/input/image-%04d.pbm --source $SOURCE
--resolution $RESOLUTION --mode Gray -x 210.000mm -y 297.000mm --start-count
"$startcount" $EXTRA $EXEC_VERBOSE
+ scanadf $VERBOSE --device-name "$DEVICE" --scan-script "$COMMAND"
--output-file "$OUTDIR"/scanscript/input/image-%04d.pbm --source "$SOURCE"
--resolution $RESOLUTION --mode Gray -x 210.000mm -y 297.000mm --start-count
"$startcount" $EXTRA $EXEC_VERBOSE
scan_busy_unset
}
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pct-scanner-scripts depends on:
ii djvulibre-bin 3.5.25.4-4+b1
ii imagemagick 8:6.8.9.9-5
ii sane 1.0.14-9
Versions of packages pct-scanner-scripts recommends:
ii pdftk 2.02-2
Versions of packages pct-scanner-scripts suggests:
ii evince 3.14.1-2
-- no debconf information