Spellcheck .po files containing reStructuredText translations
Project description
pospell
pospell
is a spellcheckers for po files containing reStructuredText.
Pospell is part of poutils!
Poutils (.po
utils) is a metapackage to easily install useful Python tools to use with po files
and pospell
is a part of it! Go check out Poutils to discover the other tools!
Examples
By giving files to pospell
:
$ pospell --language fr about.po
about.po:47:Jr.
about.po:55:reStructuredText
about.po:55:Docutils
about.po:63:Fredrik
about.po:63:Lundh
about.po:75:language
about.po:75:librarie
By using a bash expansion (note that we do not put quotes around
*.po
to let bash do its expansion):
$ pospell --language fr *.po
…
By using a glob pattern (note that we do put quotes around **/*.po
to keep your shell from trying to expand it, we'll let Python do the
expansion:
$ pospell --language fr --glob '**/*.po'
…
Usage
usage: pospell [-h] [-l LANGUAGE] [--glob GLOB] [--debug] [-p PERSONAL_DICT]
[po_file [po_file ...]]
Check spelling in po files containing restructuredText.
positional arguments:
po_file Files to check, can optionally be mixed with --glob,
or not, use the one that fit your needs.
optional arguments:
-h, --help show this help message and exit
-l LANGUAGE, --language LANGUAGE
Language to check, you'll have to install the
corresponding hunspell dictionary, on Debian see apt
list 'hunspell-*'.
--glob GLOB Provide a glob pattern, to be interpreted by pospell,
to find po files, like --glob '**/*.po'.
--debug
-p PERSONAL_DICT, --personal-dict PERSONAL_DICT
A personal dict (the -p
option) is simply a text file with one word
per line.
Contributing
You can work in a venv, to install the project locally:
python -m pip install .
And to test it locally:
python -m pip install tox
tox -p all
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 pospell-1.2.tar.gz
.
File metadata
- Download URL: pospell-1.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f769f2fed55de8da8b6ccd61e33879b411259354be62f8c3c4795de0eda314 |
|
MD5 | 42d1c3b081be58bd5682c45c4ee81293 |
|
BLAKE2b-256 | f590873336ed099334ab262230e248e269696205ae60e5f1881b55da204bf2e0 |
File details
Details for the file pospell-1.2-py3-none-any.whl
.
File metadata
- Download URL: pospell-1.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fcad1e4fcbb5a6ba32820d4d235ee711232e16611ef1328dee929258baf3186 |
|
MD5 | a0af56e64cb5aeb0e418e23a10d24389 |
|
BLAKE2b-256 | eb57a037c2d91dd1edd02ecd1891daf1bf5065f437e55cde44015614aa400af0 |