Use out%d.tif by default if --format tiff was selected. Update documentation about default formats.

Fixed spelling mistakes.
Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2001-11-20 20:23:10 +00:00
rodzic a58ea53052
commit 0f2483aafa
2 zmienionych plików z 15 dodań i 11 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
.TH scanimage 1 "24 May 2001" .TH scanimage 1 "20 Nov 2001"
.IX scanimage .IX scanimage
.SH NAME .SH NAME
scanimage - scan an image scanimage - scan an image
@ -131,11 +131,10 @@ The
options provide the features for scanning documents using document options provide the features for scanning documents using document
feeders. feeders.
.B --batch[=FORMAT] .B --batch[=FORMAT]
is used to specify the format of the filename that each page will be is used to specify the format of the filename that each page will be written
written to. Each page is written out to a single file. If the FORMAT to. Each page is written out to a single file. If the FORMAT is not
is not specified, the default of out%d.tif will be used. specified, the default of out%d.pnm (or out%d.tif for --format tiff) will be
FORMAT is given as a printf style string with one integer used. FORMAT is given as a printf style string with one integer parameter.
parameter.
.B --batch-start=# .B --batch-start=#
selects the page number to start naming files with. If this option is not selects the page number to start naming files with. If this option is not
given, the counter will start at 0. given, the counter will start at 0.
@ -272,7 +271,7 @@ expects zero or more values in the range 0 to 255. For example, a
legal value for this option would be "3,4,5,6,7,8,9,10,11,12". Since legal value for this option would be "3,4,5,6,7,8,9,10,11,12". Since
it's cumbersome to specify long vectors in this form, the same can be it's cumbersome to specify long vectors in this form, the same can be
expressed by the abbreviated form "[0]3-[9]12". What this means is expressed by the abbreviated form "[0]3-[9]12". What this means is
that the first vector element is set to 0, the 9-th element is set to that the first vector element is set to 3, the 9-th element is set to
12 and the values inbetween are interpolated linearly. Of course, it 12 and the values inbetween are interpolated linearly. Of course, it
is possible to specify multiple such linear segments. For example, is possible to specify multiple such linear segments. For example,
"[0]3-[2]3-[6]7,[7]10-[9]6" is equivalent to "3,3,3,4,5,6,7,10,8,6". "[0]3-[2]3-[6]7,[7]10-[9]6" is equivalent to "3,3,3,4,5,6,7,10,8,6".
@ -302,7 +301,7 @@ This directory holds various configuration files. For details, please
refer to the manual pages listed below. refer to the manual pages listed below.
.TP .TP
.I ~/.sane/pass .I ~/.sane/pass
This file contains a lines of the form This file contains lines of the form
.PP .PP
.RS .RS
user:password:resource user:password:resource

Wyświetl plik

@ -1486,8 +1486,8 @@ main (int argc, char **argv)
Start image acquisition on a scanner device and write PNM image data to\n\ Start image acquisition on a scanner device and write PNM image data to\n\
standard output.\n\ standard output.\n\
\n\ \n\
-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%%d.tif' by\n\ -b, --batch[=FORMAT] working in batch mode, FORMAT is `out%%d.pnm' or\n\
default\n\ `out%%d.tif' by default depending on --format\n\
--batch-start=# page number to start naming files with\n\ --batch-start=# page number to start naming files with\n\
--batch-count=# how many pages to scan in batch mode\n\ --batch-count=# how many pages to scan in batch mode\n\
--batch-increment=# increase number in filename by an amount of #\n\ --batch-increment=# increase number in filename by an amount of #\n\
@ -1739,7 +1739,12 @@ List of available devices:", prog_name);
int n = batch_start_at; int n = batch_start_at;
if (batch && NULL == format) if (batch && NULL == format)
format = "out%d.pnm"; {
if (output_format == OUTPUT_TIFF)
format = "out%d.tif";
else
format = "out%d.pnm";
}
if(batch) { if(batch) {
fprintf(stderr, "Scanning %d pages, incrementing by %d, numbering from %d\n", fprintf(stderr, "Scanning %d pages, incrementing by %d, numbering from %d\n",