User talk:Inductiveload/Scripts/DJVU OCR

From Wikisource
Jump to navigation Jump to search

The script does not work for me:

python ocr-djvu-tesseract.py -i ~/INFILE.djvu -u

 File "ocr-djvu-tesseract.py", line 69
   print "complete"
   ^^^^^^^^^^^^^^^^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? unsigned comment by Fair2003 (talk) .

@Fair2003: This is a Python 2 script (from 2010), so it won't run under Python 3 without changes. Though FYI, this is a pretty rudimentary script anyway, so it's not exactly state of the art or even near best practises! Inductiveloadtalk/contribs 09:23, 24 January 2022 (UTC)[reply]