nomacs-plugins icon indicating copy to clipboard operation
nomacs-plugins copied to clipboard

[OcrPlugin] Language Download

Open dschoerk opened this issue 6 years ago • 2 comments

  • [x] Remove language files from this repo
  • [x] Add action to open language download dialog
  • [x] Add a list of languages + download buttons
  • [ ] ~~List available languages based on what is available on github https://api.github.com/repos/tesseract-ocr/tessdata/~~ abandoned for the reasons below

adding buttons to a table cell: https://stackoverflow.com/a/35084467

dschoerk avatar Apr 20 '18 12:04 dschoerk

selected languages are now stored with the regular QSettings as a QStringList. the value of the stringlist is not correctly displayed and editable in the nomacs settings editor, but the values are saved and loaded correctly.

dschoerk avatar Apr 21 '18 17:04 dschoerk

https://api.github.com/repos/tesseract-ocr/tessdata/contents QNetworkAccessManager / QNetworkRequest fail to retrieve the above url.

QNetworkReply::errorString says "ssl handshake failed" QNetworkReply::sslErrors is empty the slot QNetworkReply::sslErrors(QNetworkReply*, QList<QSslError>) is not called seems buggy to me :( was testing that with the official build qt5.10 build for msvc 2015x64

Downloading of the language files works via: https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/

dschoerk avatar Apr 21 '18 18:04 dschoerk