"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Gscan2pdf/Unpaper.pm" between
gscan2pdf-2.13.1.tar.xz and gscan2pdf-2.13.2.tar.xz

About: gscan2pdf is a GUI to produce PDFs from scanned documents (using Perl).

Unpaper.pm  (gscan2pdf-2.13.1.tar.xz):Unpaper.pm  (gscan2pdf-2.13.2.tar.xz)
skipping to change at page 1, line 22 skipping to change at page 1, line 22
use version; use version;
use Gscan2pdf::Document; use Gscan2pdf::Document;
use Gscan2pdf::Translation '__'; # easier to extract strings with xgettext use Gscan2pdf::Translation '__'; # easier to extract strings with xgettext
use Readonly; use Readonly;
Readonly my $NOT_FOUND => -1; Readonly my $NOT_FOUND => -1;
BEGIN { BEGIN {
use Exporter (); use Exporter ();
our ( $VERSION, @EXPORT_OK, %EXPORT_TAGS ); our ( $VERSION, @EXPORT_OK, %EXPORT_TAGS );
$VERSION = '2.13.1'; $VERSION = '2.13.2';
use base qw(Exporter); use base qw(Exporter);
%EXPORT_TAGS = (); # eg: TAG => [ qw!name1 name2! ], %EXPORT_TAGS = (); # eg: TAG => [ qw!name1 name2! ],
# your exported package globals go here, # your exported package globals go here,
# as well as any optionally exported functions # as well as any optionally exported functions
@EXPORT_OK = qw(); @EXPORT_OK = qw();
} }
our @EXPORT_OK; our @EXPORT_OK;
my $COMMA = q{,}; my $COMMA = q{,};
my $SPACE = q{ }; my $SPACE = q{ };
our $UNPAPER_VERSION; our $UNPAPER_VERSION;
skipping to change at page 1, line 78 skipping to change at page 1, line 78
min => 1, min => 1,
max => 2, max => 2,
step => 1, step => 1,
default => 1, default => 1,
}, },
'direction' => { 'direction' => {
type => 'ComboBox', type => 'ComboBox',
string => __('Writing system'), string => __('Writing system'),
options => { options => {
ltr => { ltr => {
string => __('Left-to-right'), string => __('Left-to-right'),
tooltip => tooltip =>
__('Most writings systems, e.g. Latin, Greek, Cyrillic.'), __('Most writings systems, e.g. Latin, Greek, Cyrillic.'),
}, },
rtl => { rtl => {
string => __('Right-to-left'), string => __('Right-to-left'),
tooltip => __('Scripts like Arabic or Hebrew.'), tooltip => __('Scripts like Arabic or Hebrew.'),
}, },
}, },
default => 'ltr', default => 'ltr',
export => FALSE, export => FALSE,
skipping to change at page 1, line 139 skipping to change at page 1, line 139
tooltip => __('Disable blur filter.'), tooltip => __('Disable blur filter.'),
default => FALSE, default => FALSE,
}, },
'no-border-scan' => { 'no-border-scan' => {
type => 'CheckButton', type => 'CheckButton',
string => __('No border scan'), string => __('No border scan'),
tooltip => __('Disable border scanning.'), tooltip => __('Disable border scanning.'),
default => FALSE, default => FALSE,
}, },
'no-border-align' => { 'no-border-align' => {
type => 'CheckButton', type => 'CheckButton',
string => __('No border align'), string => __('No border align'),
tooltip => tooltip =>
__('Disable aligning of the area detected by border scanning.'), __('Disable aligning of the area detected by border scanning.'),
default => FALSE, default => FALSE,
}, },
'deskew-scan-direction' => { 'deskew-scan-direction' => {
type => 'CheckButtonGroup', type => 'CheckButtonGroup',
string => __('Deskew to edge'), string => __('Deskew to edge'),
tooltip => __( tooltip => __(
"Edges from which to scan for rotation. Each edge of a mask can be used to detec t the mask's rotation. If multiple edges are specified, the average value will b e used, unless the statistical deviation exceeds --deskew-scan-deviation." "Edges from which to scan for rotation. Each edge of a mask can be used to detec t the mask's rotation. If multiple edges are specified, the average value will b e used, unless the statistical deviation exceeds --deskew-scan-deviation."
), ),
options => { options => {
left => { left => {
type => 'CheckButton', type => 'CheckButton',
string => __('Left'), string => __('Left'),
tooltip => tooltip =>
__("Use 'left' for scanning from the left edge."), __("Use 'left' for scanning from the left edge."),
}, },
top => { top => {
type => 'CheckButton', type => 'CheckButton',
string => __('Top'), string => __('Top'),
tooltip => __("Use 'top' for scanning from the top edge."), tooltip => __("Use 'top' for scanning from the top edge."),
}, },
right => { right => {
type => 'CheckButton', type => 'CheckButton',
string => __('Right'), string => __('Right'),
tooltip => tooltip =>
__("Use 'right' for scanning from the right edge."), __("Use 'right' for scanning from the right edge."),
}, },
bottom => { bottom => {
type => 'CheckButton', type => 'CheckButton',
string => __('Bottom'), string => __('Bottom'),
tooltip => __("Use 'bottom' for scanning from the bottom."), tooltip => __("Use 'bottom' for scanning from the bottom."),
}, },
}, },
default => 'left,right', default => 'left,right',
skipping to change at page 1, line 233 skipping to change at page 1, line 233
'Horizontal distance to keep from the sheet edge when aligning a border area.' 'Horizontal distance to keep from the sheet edge when aligning a border area.'
), ),
min => 0, min => 0,
max => 1000, max => 1000,
step => 1, step => 1,
order => 1, order => 1,
}, },
}, },
}, },
'white-threshold' => { 'white-threshold' => {
type => 'SpinButton', type => 'SpinButton',
string => __('White threshold'), string => __('White threshold'),
tooltip => tooltip =>
__('Brightness ratio above which a pixel is considered white.'), __('Brightness ratio above which a pixel is considered white.'),
min => 0, min => 0,
max => 1, max => 1,
step => .01, step => .01,
default => 0.9, default => 0.9,
}, },
'black-threshold' => { 'black-threshold' => {
type => 'SpinButton', type => 'SpinButton',
string => __('Black threshold'), string => __('Black threshold'),
 End of changes. 7 change blocks. 
11 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)