Re: [sane-devel] scanbd on ubuntu

2017-06-01 Thread Herr Oswald
Sorry, this probabely is stupid - but I do not know where to begin.
This is the core of my question. (Some hints at sourceforge's project
page could be helpful...)

You wrote that the old ArchLinux instructions will do. OK - I'll try
these and report back.

W

Am Donnerstag, den 01.06.2017, 21:52 +0200 schrieb Wilhelm Meier:
> Well ... what did you test?
> Did you follow some setup guide?
> Did you inspect the log files?
> Did you read the docu of scanbd?
> 
> 
> Am 01.06.2017 um 21:49 schrieb Herr Oswald:
> > I'm using an old 
> > 
> > HP 7400c USB scanner on 
> > ubuntu 16.10, 
> > scanbd 1.4.4-1build1,
> > sane-utils 1.0.27+git20170530-yakkety0
> > 
> > everything as it came - and now I'm a little helpless... ):
> > 
> > W
> > 
> > 
> > Am Donnerstag, den 01.06.2017, 09:35 +0200 schrieb Wilhelm Meier:
> > > Hi Wolf,
> > > 
> > > please provide us with a little bit more information, e.g. what
> > > scanner
> > > type, the contents of your config-files, log-files.
> > > 
> > > Despite from that: you can follow the ArchLinux setup guide.
> > > 
> > > --
> > >  Wilhelm
> > > 
> > > Am 01.06.2017 um 09:14 schrieb Herr Oswald:
> > > > Hello,
> > > > 
> > > > I installed the scanbd package on my ubuntu 16.10 - but could
> > > > not
> > > > find
> > > > a fairly recent set of instructions for the setup.
> > > > 
> > > > There is a very comprehensive one for ArchLinux from 2013,
> > > > there is
> > > > a
> > > > one for ubuntu, but for scanbuttond, which may be outdated as
> > > > well
> > > > -
> > > > and the /etc/scanbd/scanbd.conf does not really speak to me... 
> > > > 
> > > > Does anybody here happen to have a hint? - All I want is the
> > > > scanner to
> > > > make a scan when some button at it is pressed.
> > > > 
> > > > Cheers,
> > > > Wolf 
> > > > 
> > > 
> > > 
> > > 
> 
> 

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] gscan2pdf v1.8.2 released

2017-06-01 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.2:
* Don't ignore warnings from unpaper
* Fix OCR being ghosted when Tesseract is installed.
  Thanks to Chris Mayo for the patch. Closes merge request 13
* + support for scanimage v1.0.27



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanbd on ubuntu

2017-06-01 Thread Wilhelm Meier
Well ... what did you test?
Did you follow some setup guide?
Did you inspect the log files?
Did you read the docu of scanbd?


Am 01.06.2017 um 21:49 schrieb Herr Oswald:
> I'm using an old 
> 
> HP 7400c USB scanner on 
> ubuntu 16.10, 
> scanbd 1.4.4-1build1,
> sane-utils 1.0.27+git20170530-yakkety0
> 
> everything as it came - and now I'm a little helpless... ):
> 
> W
> 
> 
> Am Donnerstag, den 01.06.2017, 09:35 +0200 schrieb Wilhelm Meier:
>> Hi Wolf,
>>
>> please provide us with a little bit more information, e.g. what
>> scanner
>> type, the contents of your config-files, log-files.
>>
>> Despite from that: you can follow the ArchLinux setup guide.
>>
>> --
>>  Wilhelm
>>
>> Am 01.06.2017 um 09:14 schrieb Herr Oswald:
>>> Hello,
>>>
>>> I installed the scanbd package on my ubuntu 16.10 - but could not
>>> find
>>> a fairly recent set of instructions for the setup.
>>>
>>> There is a very comprehensive one for ArchLinux from 2013, there is
>>> a
>>> one for ubuntu, but for scanbuttond, which may be outdated as well
>>> -
>>> and the /etc/scanbd/scanbd.conf does not really speak to me... 
>>>
>>> Does anybody here happen to have a hint? - All I want is the
>>> scanner to
>>> make a scan when some button at it is pressed.
>>>
>>> Cheers,
>>> Wolf 
>>>
>>
>>
>>
> 


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] scanbd on ubuntu

2017-06-01 Thread Herr Oswald
I'm using an old 

HP 7400c USB scanner on 
ubuntu 16.10, 
scanbd 1.4.4-1build1,
sane-utils 1.0.27+git20170530-yakkety0

everything as it came - and now I'm a little helpless... ):

W


Am Donnerstag, den 01.06.2017, 09:35 +0200 schrieb Wilhelm Meier:
> Hi Wolf,
> 
> please provide us with a little bit more information, e.g. what
> scanner
> type, the contents of your config-files, log-files.
> 
> Despite from that: you can follow the ArchLinux setup guide.
> 
> --
>  Wilhelm
> 
> Am 01.06.2017 um 09:14 schrieb Herr Oswald:
> > Hello,
> > 
> > I installed the scanbd package on my ubuntu 16.10 - but could not
> > find
> > a fairly recent set of instructions for the setup.
> > 
> > There is a very comprehensive one for ArchLinux from 2013, there is
> > a
> > one for ubuntu, but for scanbuttond, which may be outdated as well
> > -
> > and the /etc/scanbd/scanbd.conf does not really speak to me... 
> > 
> > Does anybody here happen to have a hint? - All I want is the
> > scanner to
> > make a scan when some button at it is pressed.
> > 
> > Cheers,
> > Wolf 
> > 
> 
> 
> 

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Reflecta RPS 7200

2017-06-01 Thread Julian Hauser

On Thu, 01.06.17 16:59, Klaus Kaempf wrote:

* Julian Hauser  [Jun 01. 2017 11:20]:



It does seem to fail at a different point now.


Yes, indeed


If I look at the logs there does seem to be (though my interpretation
might be totally off) some calibration info coming from the scanner
(starting at around line 8034), but it then fails just after at
"sanei_pieusb_cmd_get_scanned_lines". Any idea what could be the cause
of this?


Your scanner needs a (slightly?) different protocol than the other
(pieusb-based) Reflecta scanners.

Getting this right is a larger operation, involving VirtualBox,
Windows (with the original Reflecta driver), USB port forwarding, and
a lot of USB debugging.

All doable, but might need *a lot* of time.


I would be up for doing the testing etc., if you're interested in trying
to get this scanner to work. I can set up VirtualBox with the CyberView
software, which shouldn't be too hard. I've never done USB debugging but
if you point me in the right direction, I should be able to do it.


Klaus


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Reflecta RPS 7200

2017-06-01 Thread Klaus Kaempf
* Julian Hauser  [Jun 01. 2017 11:20]:
> 
> It does seem to fail at a different point now.

Yes, indeed

> If I look at the logs there does seem to be (though my interpretation
> might be totally off) some calibration info coming from the scanner
> (starting at around line 8034), but it then fails just after at
> "sanei_pieusb_cmd_get_scanned_lines". Any idea what could be the cause
> of this?

Your scanner needs a (slightly?) different protocol than the other
(pieusb-based) Reflecta scanners.

Getting this right is a larger operation, involving VirtualBox,
Windows (with the original Reflecta driver), USB port forwarding, and
a lot of USB debugging.

All doable, but might need *a lot* of time.

Klaus
-- 
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 
(AG Nürnberg)

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Coding style/Code quality (was Re: [janitorial] Text file style convention "enforcement")

2017-06-01 Thread Olaf Meeuwissen
Hi Aaron,

Thanks for the feedback.  Details inlined below.

Aaron Muir Hamilton writes:

> Olaf Meeuwissen  writes:
>
>> [...]
>> # I wondered what to do with leading empty lines but decided not to
>> # touch these (for now).  They might serve some sort of "aesthetic"
>> # purpose.  I also noticed a note on "follow the GNU coding standards"
>> # in doc/backend-writing.txt (and shied away from that, for now?).  As
>> # for the tab vs spaces mess?  Let's leave that for later.

> There's also GNU indent, which defaults to GNU style these days, and
> should be installed on most of our workstations (except perhaps on
> OpenBSD or FreeBSD, but possibly there as well).

It's not the tool that's the problem.  There's lots of code "beautifier"
programs to choose from (too many maybe).  The problem is that backend
maintainers have their own preferences and they may not be all the same.

I can ride roughshod over everybody, convert all code files to the GNU
coding standards in a jiffy with automated checking to boot and whack
complainers over the head with a quote from doc/backend-writing.txt but
that's not gonna make me (m)any friends ;-)

> It might be interesting to ask people to run it on a file when they make
> a considerable change and there are no known outstanding patches against
> the file. Or even if there are outstanding patches which conflict with
> style repairs, one can format the patch branch and it should apply.

Backend maintainers are free to reformat/sanitize the code for *their*
backend whenever they like, IMHO.  When co-maintaining, please get some
kind of agreement between the co-maintainers first.  Whatever style you
choose, pick something that's easily checked(/fixed) by a common tool.

# People may want to add something to their pre-commit hook.  For the
# builder(s), if it's in Debian stable that's good enough.

> Honestly my greatest concern is that the genesys_gl*.c per-controller
> backends will drift further apart. The 800-series ones are still very
> similar, but the 124[+] backend has some of the function definitions
> shifted around in order, but otherwise nearly identical in function.
> I'm trying to get my hands on a scanner matching each genesys controller
> revision so that I can regression test anything I do in that realm.
>
> Those files are largely identical, the functional differences are
> limited to a few differing or new function definitions, and the magic
> values used in given registers (though the register offsets remain
> largely the same).

Sounds like a case of source code cloning.  That doesn't scale.  Been
there, done that.  It's hell.  Refactor the common functions into a
single file, parameterize the differences and you should be able to get
rid off a fair bit of code.

I haven't looked at the code much but did notice similarities while
fixing all the compiler warnings.  Maybe we should run a copy-n-paste
detector over the code base.

> The more the files drift apart, the harder it'll be to a) realize that
> fixes should be ported between them and b) that they are substantially
> similar, neigh on identical files.

Don't port fixes between them.  Use a single copy of the code for all of
them.  Just put each duplicated function in its own separate .c file and
include that directly (or declare the function extern), whatever works.

You can do this in a separate branch so others can give feedback.  I'll
be happy to take a peek and give feedback on the general direction.  I
won't be able to check all the little details.

> Anyway, if all goes well I should be receiving four more genesys-based
> scanners, including a couple not mentioned on the website. I'll also be
> getting a whole stack of calibration targets so I can tell if something
> has gone subtly wrong for a given mode on a given backend. :- )

But if you have lots of hardware to test with ... those details should
be taken care of ;-)

> Boy, that was a bit off-topic, do go on.

By all means, do get off-topic, or rather off-on-a-tangent, every once
in a while.  The list could do with some more developer talk ;-)

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Reflecta RPS 7200

2017-06-01 Thread Julian Hauser

On Thu, 01.06.17 08:48, Klaus Kaempf wrote:

* Julian Hauser  [May 31. 2017 16:12]:

On Wed, 31.05.17 15:23, Klaus Kaempf wrote:
> You're trying to scan without calibration and the scanner complains with
> "Calibration disable not granted". Try with "xsane".



Do you mean the calibration the scanner does when I turn it on? I
(thought I) waited until that was done (I always wait until after the
calibration noises end). Or is there some calibration that I actively
need to do?


There's a calibration option with values "default values", "from
internal test", "from preview", and "from options".

This should be set to "from internal test".

I don't have a scanner at hand and xsane refuses to start without a
scanner. So I can't tell you exactly where in xsane this setting is
hidden.


I think those were the settings I used. I just tried again, deleting my
xsane settings before to start with the defaults and "from internal
test". Here's the output: https://pastebin.com/gnaBff6z. 


It does seem to fail at a different point now. If I look at the logs
there does seem to be (though my interpretation might be totally off)
some calibration info coming from the scanner (starting at around line
8034), but it then fails just after at
"sanei_pieusb_cmd_get_scanned_lines". Any idea what could be the cause
of this?

Thanks a lot for your help!



Klaus


signature.asc
Description: PGP signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] scanbd on ubuntu

2017-06-01 Thread Wilhelm Meier
Hi Wolf,

please provide us with a little bit more information, e.g. what scanner
type, the contents of your config-files, log-files.

Despite from that: you can follow the ArchLinux setup guide.

--
 Wilhelm

Am 01.06.2017 um 09:14 schrieb Herr Oswald:
> Hello,
> 
> I installed the scanbd package on my ubuntu 16.10 - but could not find
> a fairly recent set of instructions for the setup.
> 
> There is a very comprehensive one for ArchLinux from 2013, there is a
> one for ubuntu, but for scanbuttond, which may be outdated as well -
> and the /etc/scanbd/scanbd.conf does not really speak to me... 
> 
> Does anybody here happen to have a hint? - All I want is the scanner to
> make a scan when some button at it is pressed.
> 
> Cheers,
> Wolf 
> 



-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] scanbd on ubuntu

2017-06-01 Thread Herr Oswald
Hello,

I installed the scanbd package on my ubuntu 16.10 - but could not find
a fairly recent set of instructions for the setup.

There is a very comprehensive one for ArchLinux from 2013, there is a
one for ubuntu, but for scanbuttond, which may be outdated as well -
and the /etc/scanbd/scanbd.conf does not really speak to me... 

Does anybody here happen to have a hint? - All I want is the scanner to
make a scan when some button at it is pressed.

Cheers,
Wolf 

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org