Re: [sane-devel] scanimage / tesseract interoperability

2014-07-15 Thread Jeff Breidenbach
Very much appreciated. -Jeff -- 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] scanimage / tesseract interoperability

2014-07-14 Thread Jeff Breidenbach
Revised so printing filenames to stdout is optional and defaults to off. The new option is --batch-print. Please consider applying along with happy-batch-1.1.gz names-to-stdout-1.4.diff.gz Description: GNU Zip compressed data -- sane-devel mailing list: sane-devel@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-07-14 Thread m. allan noah
Both of these patches (with some minor compiler silencing modifications) have been committed to sane-backends. Thanks for your effort and your patience. Thanks to Olaf for reviewing the code when I was away. allan On Mon, Jul 14, 2014 at 3:57 PM, Jeff Breidenbach j...@jab.org wrote: Revised so

Re: [sane-devel] scanimage / tesseract interoperability

2014-06-17 Thread Jeff Breidenbach
Friendly reminder. -- 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] scanimage / tesseract interoperability

2014-06-05 Thread Jeff Breidenbach
Is there anything more that I can do to help? -- 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] scanimage / tesseract interoperability

2014-05-30 Thread Jeff Breidenbach
Thank you for the review, Olaf. I've incorporated both of your suggestions. Jeff On Thu, May 29, 2014 at 4:49 PM, Olaf Meeuwissen olaf.meeuwis...@avasys.jp wrote: Jeff Breidenbach writes: Are these two patches on track for inclusion? What more can I do to help? names-to-stdout-1.2.diff.gz

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-29 Thread Olaf Meeuwissen
Jeff Breidenbach writes: Are these two patches on track for inclusion? What more can I do to help? names-to-stdout-1.2.diff.gz happy-batch-1.0.diff.gz I don't have commit privileges but both look mostly good to me. Re: names-to-stdout-1.2.diff.gz, you have @@ -2283,19 +2291,27 @@ List

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-19 Thread Jeff Breidenbach
Implementation was a little intrusive because there is no recovery from calling freopen() on stdout. This preliminary patch follows the recommendations of the C FAQ and introduces an explicit stream variable. I've only done light testing. http://c-faq.com/stdio/undofreopen.html $ scanimage

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-19 Thread Jeff Breidenbach
Implemented and tested. Please consider for inclusion. happy-batch-1.0.diff.gz Description: GNU Zip compressed data -- 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

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-19 Thread Jeff Breidenbach
Testing found an error path with a double fclose. Tiny tweak to make that impossible. - if (0 != fclose(ofp)) + if (!ofp || 0 != fclose(ofp)) names-to-stdout-1.2.diff.gz Description: GNU Zip compressed data -- sane-devel mailing list: sane-devel@lists.alioth.debian.org

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-18 Thread Olaf Meeuwissen
Jeff Breidenbach writes: When I run scanimage on a Fujitsu S1500, the program is a little unhappy even after normal operation, note the return code. This is not great for pipelines. Should I attempt a fix? This is version 1.0.23-3ubuntu3 on the latest Ubuntu release. Sorry, I haven't yet

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-15 Thread Jeff Breidenbach
When I run scanimage on a Fujitsu S1500, the program is a little unhappy even after normal operation, note the return code. This is not great for pipelines. Should I attempt a fix? This is version 1.0.23-3ubuntu3 on the latest Ubuntu release. Sorry, I haven't yet figured out how to configure a

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-12 Thread Jeff Breidenbach
Thank you, Allan. Tesseract will also accept image data directly on stdin, so single scan mode should work just fine. I think it is cleaner to use stdout as opposed to stderr for filenames. I will work on a patch. There is one possible alternative. Scanimage could emit image data to stdout using

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-11 Thread Jeff Breidenbach
Jeffrey, gscan2pdf is terrific and I expect most users will prefer the friendly graphical user interface. I would love to compare notes with you on PDF generation nuances, and also coordinate with respect to future Tesseract releases. It's also good have the command line programs connect together

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-11 Thread m. allan noah
We would accept a patch which adds a new argument to scanimage which causes it to output the filename to stdout when it is in batch mode. In single scan mode, this will never work, because the image is printed on stdout. Another option is to add the filename to stderr, which already has some meta

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-10 Thread Jeff Breidenbach
Thank you Simon, the --batch-script feature looks very flexible. It almost does the trick: scanimage --batch --batch-script (echo) | tesseract - - Unfortunately, it runs just a little too early. The script executes just before the temporary image file is renamed. Tesseract wants to know about