pospell is a spellchecker for po files containing reStructuedText.
Go to file
Julien Palard 48c9a75b68 Bump version: 1.0.10 → 1.0.11 2020-10-14 00:57:39 +02:00
.github Add a github sponsor button. 2020-06-28 11:27:35 +02:00
tests Avoid regression on issue 21. 2020-10-12 14:42:33 +02:00
.gitignore Git ignore file 2018-07-27 14:57:43 +02:00
.pre-commit-hooks.yaml Add pre-commit hook (#14) 2020-05-22 17:48:57 +02:00
CHANGELOG.md Bump version: 1.0.10 → 1.0.11 2020-10-14 00:57:39 +02:00
README.md Update README with up-to-date usage. 2018-07-27 16:27:42 +02:00
pospell.py Bump version: 1.0.10 → 1.0.11 2020-10-14 00:57:39 +02:00
setup.cfg Bump version: 1.0.10 → 1.0.11 2020-10-14 00:57:39 +02:00
setup.py Bump version: 1.0.10 → 1.0.11 2020-10-14 00:57:39 +02:00

README.md

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.