summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJames R. Barlow <james@purplerock.ca>2022-04-05 16:04:45 -0700
committerJames R. Barlow <james@purplerock.ca>2022-04-05 16:04:45 -0700
commit24f1b57288681b86c8b65a9502f801fcb23ca443 (patch)
treeb47ac103dde4cc21c0ccf63227867c28918628ee
parent43302d7e1242263479768c17c5d00b9112654dc3 (diff)
parentfed0226761a7166f79ec8c71b66ce7edd284fb7d (diff)
downloadocrmypdf-24f1b57288681b86c8b65a9502f801fcb23ca443.tar.gz
Merge branch 'master' of github.com:ocrmypdf/OCRmyPDF
-rw-r--r--docs/jbig2.rst3
-rw-r--r--docs/languages.rst27
2 files changed, 30 insertions, 0 deletions
diff --git a/docs/jbig2.rst b/docs/jbig2.rst
index c49f0e9c..2e7b7746 100644
--- a/docs/jbig2.rst
+++ b/docs/jbig2.rst
@@ -32,6 +32,9 @@ For all other Linux, you must build a JBIG2 encoder from source:
.. _jbig2-lossy:
+Dependencies include libtoolize and libleptonica, which on Ubuntu systems
+are packaged as libtool and libleptonica-dev.
+
Lossy mode JBIG2
================
diff --git a/docs/languages.rst b/docs/languages.rst
index 45dfac6f..76c0c778 100644
--- a/docs/languages.rst
+++ b/docs/languages.rst
@@ -54,6 +54,33 @@ to what languages it should search for. Multiple languages can be
requested using either ``-l eng+fra`` (English and French) or
``-l eng -l fra``.
+Gentoo users
+============
+
+On Gentoo the package ``app-text/tessdata_fast``, which ``app-text/tesseract`` depends on, handles Tesseract languages.
+It accepts USE flags to select what languages should be installed, these can be set in ``/etc/portage/package.use``.
+Alternatively one can globally set the `L10N use extension <https://wiki.gentoo.org/wiki/Localization/Guide#L10N>`__ in ``/etc/portage/make.conf``.
+This enables these languages for all packages (e.g. including aspell).
+
+.. code-block:: bash
+
+ # 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 omited)
+ echo L10N="de en" >> /etc/portage/make.conf
+
+ # update system to reflect changed USE flags
+ emerge --update --deep --newuse @world
+
+You can then pass the ``-l LANG`` argument to OCRmyPDF to give a hint as
+to what languages it should search for. Multiple languages can be
+requested using either ``-l eng+fra`` (English and French) or
+``-l eng -l fra``.
+
macOS users
===========