diff --git a/docs/batch.rst b/docs/batch.rst index 07443244..3236d460 100644 --- a/docs/batch.rst +++ b/docs/batch.rst @@ -151,14 +151,14 @@ The watcher service is included in the OCRmyPDF Docker image. To run it: .. code-block:: bash docker run \ - -v :/input \ - -v :/output \ - -v :/archive \ - -e OCR_OUTPUT_DIRECTORY_YEAR_MONTH=1 \ - -e OCR_ON_SUCCESS_ARCHIVE=1 \ - -e OCR_DESKEW=1 \ - -e PYTHONUNBUFFERED=1 \ - -it --entrypoint python3 \ + --volume :/input \ + --volume :/output \ + --volume :/archive \ + --env OCR_OUTPUT_DIRECTORY_YEAR_MONTH=1 \ + --env OCR_ON_SUCCESS_ARCHIVE=1 \ + --env OCR_DESKEW=1 \ + --env PYTHONUNBUFFERED=1 \ + --interactive --tty --entrypoint python3 \ jbarlow83/ocrmypdf \ watcher.py @@ -170,13 +170,13 @@ original to ``/archive``. The parameters to this image are: :header: "Parameter", "Description" :widths: 50, 50 - "``-v :/input``", "Files placed in this location will be OCRed" - "``-v :/output``", "This is where OCRed files will be stored" - "``-v :/archive``", "Archive processed originals here" - "``-e OCR_OUTPUT_DIRECTORY_YEAR_MONTH=1``", "Define environment variable ``OCR_OUTPUT_DIRECTORY_YEAR_MONTH=1`` to place files in the output in ``{output}/{year}/{month}/{filename}``" - "``-e OCR_ON_SUCCESS_ARCHIVE=1``", "Define environment variable ``OCR_ON_SUCCESS_ARCHIVE`` to move processed originals" - "``-e OCR_DESKEW=1``", "Define environment variable ``OCR_DESKEW`` to apply deskew to crooked input PDFs" - "``-e PYTHONBUFFERED=1``", "This will force ``STDOUT`` to be unbuffered and allow you to see messages in docker logs" + "``--volume :/input``", "Files placed in this location will be OCRed" + "``--volume :/output``", "This is where OCRed files will be stored" + "``--volume :/archive``", "Archive processed originals here" + "``--env OCR_OUTPUT_DIRECTORY_YEAR_MONTH=1``", "Define environment variable ``OCR_OUTPUT_DIRECTORY_YEAR_MONTH=1`` to place files in the output in ``{output}/{year}/{month}/{filename}``" + "``--env OCR_ON_SUCCESS_ARCHIVE=1``", "Define environment variable ``OCR_ON_SUCCESS_ARCHIVE`` to move processed originals" + "``--env OCR_DESKEW=1``", "Define environment variable ``OCR_DESKEW`` to apply deskew to crooked input PDFs" + "``--env PYTHONBUFFERED=1``", "This will force ``STDOUT`` to be unbuffered and allow you to see messages in docker logs" This service relies on polling to check for changes to the filesystem. It may not be suitable for some environments, such as filesystems shared on a diff --git a/docs/languages.rst b/docs/languages.rst index ded61e11..ff9467c9 100644 --- a/docs/languages.rst +++ b/docs/languages.rst @@ -70,13 +70,13 @@ This enables these languages for all packages (e.g. including aspell). # Display a list of all Tesseract language packs equery uses app-text/tessdata_fast - + # Add English and German language support for Tesseract only echo 'app-text/tessdata_fast l10n_de l10n_en' >> /etc/portage/package.use - + # Add global English and German language support (the `l10n_` from equery has to be omitted) echo L10N="de en" >> /etc/portage/make.conf - + # update system to reflect changed USE flags emerge --update --deep --newuse @world @@ -101,7 +101,7 @@ derived Docker image as Windows users ============= -The Tesseract installer provided by Chocolatey currently includes only English language. -To install other languages, download the respective language pack (``.traineddata`` file) -from https://github.com/tesseract-ocr/tessdata/ and place it in +The Tesseract installer provided by Chocolatey currently includes only English language. +To install other languages, download the respective language pack (``.traineddata`` file) +from https://github.com/tesseract-ocr/tessdata/ and place it in ``C:\\Program Files\\Tesseract-OCR\\tessdata`` (or wherever Tesseract OCR is installed).