dangerzone/dangerzone/conversion
Alex Pyrgiotis f75d471ec8
Fix OCR bug in Qubes Fedora 38 templates
Provide a fix for an OCR bug that affected Fedora 38 templates of Qubes
OS. In that specific configuration, the PyMuPDF version accepts the
Tesseract data directory only from the `TESSDATA_PREFIX` environment
variable. Our mistake was that we were setting this environment variable
in a dev script, instead of setting it for all configurations.

In this commit, we set an attribute in the fitz.fitz module, so that
both dev scripts and end-user installations can work. This is hacky, but
it targets an old PyMuPDF release after all, so we don't expect things
to break in the long run.

Fixes #737
2024-03-04 16:53:04 +02:00
..
__init__.py Restructure container code 2023-06-21 11:44:47 +03:00
common.py Remove timeouts 2024-02-06 20:11:43 +00:00
doc_to_pixels.py Remove leftover progress variable in pixels_to_pdf 2024-02-06 20:11:52 +00:00
errors.py Handle gracefully unknown error codes 2024-02-20 16:00:35 +02:00
pixels_to_pdf.py Fix OCR bug in Qubes Fedora 38 templates 2024-03-04 16:53:04 +02:00