检查包含reStructuredText翻译的.po文件中的拼写
项目描述
pospell
pospell
是用于包含reStructuredText的po文件的拼写检查器。
Pospell是poutils的一部分!
Poutils(.po
实用工具)是一个元包,可以轻松安装与po文件和pospell
一起使用的Python实用工具!查看Poutils以了解其他工具!
示例
通过向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
使用bash扩展(注意我们不在*.po
周围放置引号,以便bash执行其扩展)
$ pospell --language fr *.po
…
使用glob模式(注意我们在**/*.po
周围放置引号,以防止shell尝试扩展它,我们将让Python进行扩展)
$ pospell --language fr --glob '**/*.po'
…
用法
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
个人词典(-p
选项)只是一个包含每行一个单词的文本文件。
贡献
您可以在虚拟环境中工作,以在本地安装项目
python -m pip install .
并且可以在本地测试它
python -m pip install tox
tox -p all
项目详细信息
下载文件
下载适用于您的平台的文件。如果您不确定该选择哪一个,请了解有关安装包的更多信息。
源分布
pospell-1.3.tar.gz (8.6 kB 查看散列)
构建分布
pospell-1.3-py3-none-any.whl (7.9 kB 查看散列)