Spellcheck .po files containing reStructuredText translations
Project description
pospell
pospell
is a spellcheckers for po files containing reStructuedText.
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.
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
pospell-1.0.1.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file pospell-1.0.1.tar.gz
.
File metadata
- Download URL: pospell-1.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c96f8a364c09cb554e3b7403281a9807850356d8068ab1518b4e4f9039aef3 |
|
MD5 | 6df47d687661676cf5161e0c90d9d4a3 |
|
BLAKE2b-256 | f26f114654dd48ff60829e797c69ec159b439f8dc1213bd8e0cf09f477a3e67b |
File details
Details for the file pospell-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pospell-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799de1bc066e8bd7498ee9f9e0659cce1d50fbeb1c33b343ba9c3c566e82eeec |
|
MD5 | 39b91982fc211636b8f79bd9b7bb9c23 |
|
BLAKE2b-256 | bb142e94c4a00d605d8bd567797d229b63b500892ec2fe16881fade189ddafc2 |