#699609 tesseract-ocr: please provide source for language files

Package:
tesseract-ocr
Source:
tesseract
Description:
Tesseract command line OCR tool
Submitter:
Jeffrey Ratcliffe
Date:
2015-07-20 19:24:03 UTC
Severity:
normal
#699609#5
Date:
2013-02-02 12:37:18 UTC
From:
To:
The language files are provided ATM in binary format as-is.

This is against the Debian Free Software Guidelines[1] #2, that
software must be provided in source format, and modifyable.

Either the source should be provided for the language files, or they
should go to non-free.

[1] http://www.debian.org/social_contract

#699609#10
Date:
2013-05-31 20:49:23 UTC
From:
To:
Sorry for the slow reply. I talked with upstream, and I think the
language files are DFSG compliant both in letter and spirit.

The language files are the product of machine learning, against
a few hundred fonts and a bunch of symbolic text. The machine
learning program already ships with Tesseract. The fonts
already ship in Debian. The list of fonts is a little too long for
this email,  but I have it in hand and will check that it is
documented appropriately along with the overall procedure.
The symbolic text can be extracted from the language
packages using tools that already ship with Tesseract [1].

I think it is technically inappropriate to run machine learning as
part of the package building process, for two reasons. First, the
machine learning process is very computationally expensive.
Second, there are many labor intensive manual steps involved.
Upstream  continues to work on tools to reduce the amount of
labor.

Please let me know if this resolves your concerns.

Cheers,
Jeff

===

[1] The program combine_tessdata can extract individual components
from the combined binary traineddata file. The program dawg2wordlist
unpacks the binary dictionary (dawg) files back to their original input \
wordlist text files.

#699609#15
Date:
2015-07-11 04:33:56 UTC
From:
To:
Making some progress; they are on github in the
'langdata'  repository. Much packaging work still
required, particularly around tesstrain.sh

#699609#20
Date:
2015-07-20 19:21:22 UTC
From:
To:
More progress. Training scripts now ship with 'tesseract-ocr'
package, with some Debian specific instructions in README.debian.
We'll probably be in this state for quite a while.