DjVu encoder with foreground/background separation (Python 3 fork)
Project description
Overview
didjvu uses the Gamera framework to separate foreground/background layers, which can be then encoded into a DjVu file.
Prerequisites
The following software is required:
Python 3 (≥ 3.6)
Gamera-4 (≥ 4.0)
DjVuLibre (≥ 3.5.22)
minidjvu (≥ 0.8) for the --pages-per-dict/-p option
Additionally, one of the following libraries is needed for the --xmp option:
Installation
The easiest way to install didjvu is from PyPI:
pip install didjvu
Alternatively, you can use didjvu without installing it, straight out of an unpacked source tarball or a VCS checkout.
It’s also possible to install it from source for the current interpreter with:
pip install .
The man pages can be deployed using:
make install_manpage
By default, make install_manpage installs them to /usr/local/. You can specify a different installation prefix by setting the PREFIX variable, e.g.:
make install PREFIX="$HOME/.local"
About this fork
This repository is a port of the original repository to Python 3.
The process involved the 2to3 tool and manual fixes afterwards to get the existing tests to pass. Some of the error reports and fixes arising from the early porting process have been contributed by @rmast.
At the moment there are no plans to submit a pull request to the upstream repository, which would probably require some changes to my code as well. This is mostly due to the corresponding upstream issue being marked as wontfix: Issue #13.
I will try to keep this fork/port in sync with the upstream changes where necessary. Please note that I do not have any plans on implementing completely new features for now. Feature requests and bugs which can be reproduced in the original version as well should be reported at both places in the best case.
Differences from upstream
Package requires Python ≥ 3.6.
Drop old Gamera workarounds.
Migrate from nose to plain unittest stdlib module.
Conform to PEP8 coding style.
Use standardized setup.py-based installation.
Rename lib to didjvu and migrate didjvu binary to __main__.py and console script version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file didjvu-0.10.2.tar.gz
.
File metadata
- Download URL: didjvu-0.10.2.tar.gz
- Upload date:
- Size: 49.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e22a57129e2aed76980c07d4131035861290bfbe92b98135653ebcefbfcf9f8 |
|
MD5 | a7f7d7fddc8dc194e6f4114b3906fbfd |
|
BLAKE2b-256 | 8d567b95d3e19e32add0ae310828612092232205ec96de404d15b788d5e1203d |
Provenance
The following attestation bundles were made for didjvu-0.10.2.tar.gz
:
Publisher:
release.yml
on FriedrichFroebel/didjvu
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
didjvu-0.10.2.tar.gz
- Subject digest:
2e22a57129e2aed76980c07d4131035861290bfbe92b98135653ebcefbfcf9f8
- Sigstore transparency entry: 148968343
- Sigstore integration time:
- Predicate type:
File details
Details for the file didjvu-0.10.2-py3-none-any.whl
.
File metadata
- Download URL: didjvu-0.10.2-py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 557b66201d9483b85dd7d4d333b70ec79c90dd4a6cba3c2244cc4687685d5ea1 |
|
MD5 | 3495c34a5cf5318c04c9c1e5f15b009c |
|
BLAKE2b-256 | 757dda4afdff124ef9d3486596d318101b348dc487031b3bbe384c650e62c782 |
Provenance
The following attestation bundles were made for didjvu-0.10.2-py3-none-any.whl
:
Publisher:
release.yml
on FriedrichFroebel/didjvu
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
didjvu-0.10.2-py3-none-any.whl
- Subject digest:
557b66201d9483b85dd7d4d333b70ec79c90dd4a6cba3c2244cc4687685d5ea1
- Sigstore transparency entry: 148968344
- Sigstore integration time:
- Predicate type: