gkovacs / pdfocr

Adds text to PDF files using the cuneiform OCR software
MIT License
325 stars 49 forks source link

add -L parameter to allow language combinations bypass the language avai... #19

Closed duesenklipper closed 9 years ago

duesenklipper commented 9 years ago

add -L parameter to allow language combinations bypass the language availability check

tesseract allows to give several languages at once, e.g. "deu+eng". Unfortunately that is prevented by the language availability check in pdfocr.rb. Rather than extend that part with my limited Ruby knowledge, I added a seperate -L parameter that is simply passed on without checking. Since I only use this in scripting, I don't really need the extra safety there. What do you think?