Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
657445fbb6 | ||
|
|
0ff489c755 | ||
|
|
e50721d561 | ||
|
|
87326cc15e | ||
|
|
d6d2f196d5 |
+2
-17
@@ -31,29 +31,14 @@ matrix:
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: python
|
language: python
|
||||||
python: "3.5"
|
python: "3.5"
|
||||||
env: EXTRAS=
|
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
language: python
|
language: python
|
||||||
python: "3.6"
|
python: "3.6"
|
||||||
env: EXTRAS=
|
|
||||||
- os: linux
|
|
||||||
sudo: required
|
|
||||||
language: python
|
|
||||||
python: "3.6"
|
|
||||||
env: EXTRAS=[fitz]
|
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
language: python
|
language: python
|
||||||
python: "3.7-dev"
|
python: "3.7-dev"
|
||||||
- os: osx
|
|
||||||
osx_image: xcode8
|
|
||||||
language: generic
|
|
||||||
env: EXTRAS=
|
|
||||||
- os: osx
|
|
||||||
osx_image: xcode8
|
|
||||||
language: generic
|
|
||||||
env: EXTRAS=[fitz]
|
|
||||||
|
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -f $HOME/.cache/pip/log/debug.log
|
- rm -f $HOME/.cache/pip/log/debug.log
|
||||||
@@ -72,7 +57,7 @@ before_install: |
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- pip3 install pycparser # py3.7 workaround for https://github.com/eliben/pycparser/issues/251
|
- pip3 install pycparser # py3.7 workaround for https://github.com/eliben/pycparser/issues/251
|
||||||
- pip3 install ".$EXTRAS"
|
- pip3 install .
|
||||||
- pip3 install -r test_requirements.txt
|
- pip3 install -r test_requirements.txt
|
||||||
|
|
||||||
script:
|
script:
|
||||||
@@ -94,5 +79,5 @@ deploy:
|
|||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
tags: true
|
tags: true
|
||||||
condition: $TRAVIS_PYTHON_VERSION == "3.6" && $TRAVIS_OS_NAME == "linux" && $EXTRAS == ""
|
condition: $TRAVIS_PYTHON_VERSION == "3.6" && $TRAVIS_OS_NAME == "linux"
|
||||||
skip_upload_docs: true
|
skip_upload_docs: true
|
||||||
|
|||||||
+7
-14
@@ -192,15 +192,13 @@ You can then install OCRmyPDF from PyPI, for the current user:
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
pip3 install --user ocrmypdf[fitz]
|
pip3 install --user ocrmypdf
|
||||||
|
|
||||||
or system-wide:
|
or system-wide:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
pip3 install ocrmypdf[fitz]
|
pip3 install ocrmypdf
|
||||||
|
|
||||||
``[fitz]`` includes the optional dependency on PyMuPDF, which improves OCRmyPDF's output in many cases.
|
|
||||||
|
|
||||||
The command line program should now be available:
|
The command line program should now be available:
|
||||||
|
|
||||||
@@ -226,7 +224,7 @@ Then install ocrmypdf 6.1.5 for the local user and set the user's ``PATH`` to ch
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
pip3 install --user ocrmypdf[fitz]
|
pip3 install --user ocrmypdf
|
||||||
|
|
||||||
|
|
||||||
Installing on Ubuntu 16.04 LTS
|
Installing on Ubuntu 16.04 LTS
|
||||||
@@ -249,13 +247,13 @@ If you wish install OCRmyPDF for the current user:
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
pip3 install --user ocrmypdf[fitz]
|
pip3 install --user ocrmypdf
|
||||||
|
|
||||||
Alternately, system-wide. Note that this may modify the system Python environment:
|
Alternately, system-wide. Note that this may modify the system Python environment:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo pip3 install ocrmypdf[fitz]
|
sudo pip3 install ocrmypdf
|
||||||
|
|
||||||
If you wish to install OCRmyPDF to a virtual environment to isolate the system Python, you can follow these steps.
|
If you wish to install OCRmyPDF to a virtual environment to isolate the system Python, you can follow these steps.
|
||||||
|
|
||||||
@@ -263,9 +261,7 @@ If you wish to install OCRmyPDF to a virtual environment to isolate the system P
|
|||||||
|
|
||||||
python3 -m venv venv-ocrmypdf
|
python3 -m venv venv-ocrmypdf
|
||||||
source venv-ocrmypdf/bin/activate
|
source venv-ocrmypdf/bin/activate
|
||||||
pip3 install ocrmypdf[fitz]
|
pip3 install ocrmypdf
|
||||||
|
|
||||||
``[fitz]`` includes the optional dependency on PyMuPDF, which improves OCRmyPDF's output in many cases.
|
|
||||||
|
|
||||||
|
|
||||||
Installing on Ubuntu 14.04 LTS
|
Installing on Ubuntu 14.04 LTS
|
||||||
@@ -316,7 +312,7 @@ Now we need to install ``pip`` and let it install ocrmypdf:
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.6 && python3.6 -m easy_install pip
|
curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.6 && python3.6 -m easy_install pip
|
||||||
pip3.6 install ocrmypdf[fitz]
|
pip3.6 install ocrmypdf
|
||||||
|
|
||||||
The ``wget`` command will download a program and run it.
|
The ``wget`` command will download a program and run it.
|
||||||
|
|
||||||
@@ -396,14 +392,11 @@ The following dependencies are recommended:
|
|||||||
- Ghostscript 9.22 or newer
|
- Ghostscript 9.22 or newer
|
||||||
- qpdf 8.0.2 or newer
|
- qpdf 8.0.2 or newer
|
||||||
- unpaper 6.1
|
- unpaper 6.1
|
||||||
- PyMuPDF 1.12.5 or newer
|
|
||||||
|
|
||||||
These are in addition to the Python packaging dependencies, meaning that unfortunately, the ``pip install`` command cannot satisfy all of them.
|
These are in addition to the Python packaging dependencies, meaning that unfortunately, the ``pip install`` command cannot satisfy all of them.
|
||||||
|
|
||||||
Python 3.6 and Tesseract 4.0.0-beta.1 are recommended for best OCR results and best performance.
|
Python 3.6 and Tesseract 4.0.0-beta.1 are recommended for best OCR results and best performance.
|
||||||
|
|
||||||
The library PyMuPDF is not widely available in platform distributions, and it improves OCRmyPDF in certain conditions. Consider installing OCRmyPDF from the Python binary wheels, which include a precompiled version of this library.
|
|
||||||
|
|
||||||
|
|
||||||
Installing HEAD revision from sources
|
Installing HEAD revision from sources
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|||||||
@@ -10,6 +10,16 @@ The OCRmyPDF package itself does not contain a public API, although it is fairly
|
|||||||
replace: `#$1 <https://github.com/jbarlow83/OCRmyPDF/issues/$1>`_
|
replace: `#$1 <https://github.com/jbarlow83/OCRmyPDF/issues/$1>`_
|
||||||
|
|
||||||
|
|
||||||
|
v6.2.5
|
||||||
|
------
|
||||||
|
|
||||||
|
- Disable a failing test due to Tesseract 4.0rc1 behavior change. Previously, Tesseract would exit with an error message if its configuration was invalid, and OCRmyPDF would intercept this message. Now Tesseract issues a warning, which OCRmyPDF v6.2.5 may relay or ignore. (In v7.x, OCRmyPDF will respond to the warning.)
|
||||||
|
|
||||||
|
- This release branch no longer supports using the optional PyMuPDF installation, since it was removed in v7.x.
|
||||||
|
|
||||||
|
- This release branch no longer supports macOS. macOS users should upgrade to v7.x.
|
||||||
|
|
||||||
|
|
||||||
v6.2.4
|
v6.2.4
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|||||||
@@ -723,6 +723,9 @@ def test_tesseract_config_notfound(renderer, resources, outdir):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('renderer', RENDERERS)
|
@pytest.mark.parametrize('renderer', RENDERERS)
|
||||||
|
@pytest.mark.skipif(
|
||||||
|
tesseract.v4(),
|
||||||
|
reason='not valid due to behavior change in Tesseract >= 4.0-rc1')
|
||||||
def test_tesseract_config_invalid(renderer, resources, outdir):
|
def test_tesseract_config_invalid(renderer, resources, outdir):
|
||||||
cfg_file = outdir / 'test.cfg'
|
cfg_file = outdir / 'test.cfg'
|
||||||
with cfg_file.open('w') as f:
|
with cfg_file.open('w') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user