Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pospell-0.3.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

pospell-0.3.0-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pospell-0.3.0.tar.gz.

File metadata

  • Download URL: pospell-0.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pospell-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a77fac1a47e840104f9258ab5c179f0e70e45cbef0dff1f8877271afc6293825
MD5 2673a7c1e6f21a15a90f1015a8a52c0e
BLAKE2b-256 115c6c54556cda7caf4079e794aa056533117dd7e1eeedf2d1abcbdd3ac183b0

See more details on using hashes here.

File details

Details for the file pospell-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pospell-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pospell-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 244aa64af5e1c63ce7e1026494276a0c6ddb967fce710a40eebf8b53c27a44fa
MD5 f29a6c8d5a7346a6cc5874d61e77a019
BLAKE2b-256 3efeedf8b4cffe2f80717690c6df6fb25dc86d2897110c1660f21bad5c739061

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page