summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--debian/patches/debian-changes53
1 files changed, 40 insertions, 13 deletions
diff --git a/debian/patches/debian-changes b/debian/patches/debian-changes
index 41c0f8fc..1fc814fe 100644
--- a/debian/patches/debian-changes
+++ b/debian/patches/debian-changes
@@ -9,8 +9,8 @@ patches. To obtain a patch queue for package version 1.2.3-1:
% git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'
See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
---- ocrmypdf-13.4.0+dfsg.orig/docs/conf.py
-+++ ocrmypdf-13.4.0+dfsg/docs/conf.py
+--- ocrmypdf-13.4.3+dfsg.orig/docs/conf.py
++++ ocrmypdf-13.4.3+dfsg/docs/conf.py
@@ -100,7 +100,7 @@ except ModuleNotFoundError:
from importlib.metadata import version as package_version
@@ -20,8 +20,8 @@ See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
version = '.'.join(release.split('.')[:2])
---- ocrmypdf-13.4.0+dfsg.orig/docs/index.rst
-+++ ocrmypdf-13.4.0+dfsg/docs/index.rst
+--- ocrmypdf-13.4.3+dfsg.orig/docs/index.rst
++++ ocrmypdf-13.4.3+dfsg/docs/index.rst
@@ -15,7 +15,6 @@ image processing and OCR to existing PDF
introduction
@@ -30,8 +30,8 @@ See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
optimizer
languages
jbig2
---- ocrmypdf-13.4.0+dfsg.orig/docs/languages.rst
-+++ ocrmypdf-13.4.0+dfsg/docs/languages.rst
+--- ocrmypdf-13.4.3+dfsg.orig/docs/languages.rst
++++ ocrmypdf-13.4.3+dfsg/docs/languages.rst
@@ -22,9 +22,6 @@ English is assumed by default unless oth
For Linux users, you can often find packages that provide language
packs:
@@ -42,7 +42,7 @@ See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
.. code-block:: bash
# Display a list of all Tesseract language packs
-@@ -35,42 +32,5 @@ Debian and Ubuntu users
+@@ -35,69 +32,5 @@ Debian and Ubuntu users
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
@@ -65,6 +65,33 @@ See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
-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
-===========
-
@@ -87,8 +114,8 @@ See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
-``C:\\Program Files\\Tesseract-OCR\\tessdata`` (or wherever Tesseract OCR is installed).
+requested using either ``-l eng+fre`` (English and French) or
+``-l eng -l fre``.
---- ocrmypdf-13.4.0+dfsg.orig/pyproject.toml
-+++ ocrmypdf-13.4.0+dfsg/pyproject.toml
+--- ocrmypdf-13.4.3+dfsg.orig/pyproject.toml
++++ ocrmypdf-13.4.3+dfsg/pyproject.toml
@@ -81,7 +81,6 @@ known_third_party = [
minversion = "6.0"
norecursedirs = ["lib", ".pc", ".git", "venv", "output", "cache", "resources"]
@@ -97,8 +124,8 @@ See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
markers = ["slow"]
filterwarnings = ["ignore:.*XMLParser.*:DeprecationWarning"]
---- ocrmypdf-13.4.0+dfsg.orig/setup.py
-+++ ocrmypdf-13.4.0+dfsg/setup.py
+--- ocrmypdf-13.4.3+dfsg.orig/setup.py
++++ ocrmypdf-13.4.3+dfsg/setup.py
@@ -11,7 +11,6 @@ from setuptools import setup
setup(
setup_requires=[ # can be removed whenever we can drop pip 9 support
@@ -107,8 +134,8 @@ See dgit(1), dgit(7) and dgit-maint-merge(7) for more information.
],
use_scm_version={'version_scheme': 'post-release'},
)
---- ocrmypdf-13.4.0+dfsg.orig/src/ocrmypdf/cli.py
-+++ ocrmypdf-13.4.0+dfsg/src/ocrmypdf/cli.py
+--- ocrmypdf-13.4.3+dfsg.orig/src/ocrmypdf/cli.py
++++ ocrmypdf-13.4.3+dfsg/src/ocrmypdf/cli.py
@@ -118,7 +118,7 @@ minimize the number of changes made to y
If OCRmyPDF is given an image file as input, it will attempt to convert the