pospell is a spellchecker for po files containing reStructuedText.
Go to file
Julien Palard eae438ed4a Git ignore file 2018-07-27 14:57:43 +02:00
.gitignore Git ignore file 2018-07-27 14:57:43 +02:00
README.md Allow to modify personal dict path. 2018-07-23 22:05:57 +02:00
pospell.py isort 2018-07-27 11:38:17 +02:00
setup.py Strip sphinx variables and a href links. 2018-07-27 11:01:20 +02:00

README.md

pospell

pospell is a spellcheckers for po files containing reStructuedText.

Usage

$ pospell --help
usage: pospell [-h] [-l LANGUAGE] [--glob GLOB]

Check spelling in po files containing restructuredText.

optional arguments:
  -h, --help            show this help message and exit
  -l LANGUAGE, --language LANGUAGE
  --glob GLOB
  -p PERSONAL_DICT, --personal-dict PERSONAL_DICT

A personal dict (the -p option) is simply a text file with one word per line.

Example

pospell "just" lists the wrong words, it's up to you to find where they are in your file. Yes this can be enhanced by giving the line number so we could use it as a linter in our editors.

$ pospell --language fr --glob *.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