notes Hunspell Tutorial

来源:互联网 发布:传奇3数据库修改 编辑:程序博客网 时间:2024/05/20 13:10

google
http://xahlee.info/comp/hunspell_spell_checking.html
Hunspell Tutorial
By Xah Lee. Date: 2010-06-16

Hunspell Tutorial

How to check words interactively?
hunspell -d en_US
example <cr> exampl <cr>

Setting Environment Variables Path

暂无

Simple Usage

How to spell check a file interactively?

echo exampl > ~/1hunspell -d en_US 1输入1,cat 1

输出:example

How to spell check a file in batch?

echo exampl > ~/1cat ~/1 | hunspell

输出:& exampl 4 0: example, exam pl, exam-pl, exemplar

echo exampl > ~/1hunspell -l ~/1

输出:exampl

How to specify the file’s encoding?

echo exampl > ~/1hunspell -l -i utf-8 ~/1

输出:exampl

How to check a single word?
echo exampl | hunspell
输出:& exampl 4 0: example, exam pl, exam-pl, exemplar

Where is personal dictionary at?
cat ~/.hunspell_en_US

0 0
原创粉丝点击