原文地址:https://raw.githubusercontent.com/lujun9972/lujun9972.github.com/source/Emacs之怒/Emacs帮你进行英文写作.org
Emacs帮你进行英文写作
ispell
ispell是Unix下的一个拼写(不仅仅是英文)检查工具,同时它也是Emacs用来调用ispell类工具进行拼写检查的插件名称。
之所以说是ispell类工具是因为Emacs的ispell插件不仅仅支持调用ispell来进行拼写检查,也支持调用aspell/hunspell来进行拼写检查。
而且事实上,aspell已经逐渐取代ispell成为主流。
安装aspell
既然Emacs是调用外部工具来做的拼写检查,那么第一步当然是要安装 aspell
了
sudo pacman -S aspell --noconfirm
resolving dependencies...
looking for conflicting packages...
Packages (1) aspell-0.60.6.1-5
Total Download Size: 0.57 MiB
Total Installed Size: 3.00 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
aspell-0.60.6.1-5-x... 0.0 B 0.00B/s 00:00 [----------------------] 0%
aspell-0.60.6.1-5-x... 361.4 KiB 531K/s 00:00 [#############---------] 61%
aspell-0.60.6.1-5-x... 587.9 KiB 1760K/s 00:00 [######################] 100%
(0/1) checking keys in keyring [----------------------] 0%
(1/1) checking keys in keyring [######################] 100%
(0/1) checking package integrity [----------------------] 0%
(1/1) checking package integrity [######################] 100%
(0/1) loading package files [----------------------] 0%
(1/1) loading package files [######################] 100%
(0/1) checking for file conflicts [----------------------] 0%
(1/1) checking for file conflicts [######################] 100%
(0/1) checking available disk space [----------------------] 0%
(1/1) checking available disk space [######################] 100%
:: Processing package changes...
(1/1) installing aspell [----------------------] 0%
(1/1) installing aspell [######################] 100%
Optional dependencies for aspell
perl: to import old dictionaries [installed]
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...
不过光安装 aspell
并没什么鸟用, aspell
是通过字典来检查拼写的,因此你还需要安装对应的字典.
pacman -Ss aspell
extra/aspell 0.60.6.1-5 [已安装]
A spell checker designed to eventually replace Ispell
extra/aspell-de 20161207-1
German dictionary for aspell
extra/aspell-en 2017.08.24-1
English dictionary for aspell
extra/aspell-es 1.11-6
Spanish dictionary for aspell
extra/aspell-fr 0.50.3-7
French dictionary for aspell
extra/aspell-nl 0.50.2-4
Dutch dictionary for aspell
community/aspell-ca 2.3.0-2
Catalan dictionary for aspell
community/aspell-cs 20040614-8
Czech dictionary for aspell
community/aspell-el 0.08-2
Greek dictionary for aspell
community/aspell-hu 0.99.4.2-5
Hungarian spellcheck dictionary for aspell
community/aspell-it 2.2_20050523-6
Italian dictionary for aspell
community/aspell-pl 20171220-1
Polish dictionary for aspell
community/aspell-pt 20161001-1
Portuguese and Brazilian Portuguese dictionary for aspell
community/aspell-ru 0.99f7-7
Russian dictionary for aspell
community/aspell-sv 0.51-1
Swedish dictionary for aspell
community/aspell-uk 1.8.0-1
Ukrainian dictionary for aspell
你可以看到aspell有很多个语言的字典,也就是支持多种语言的拼写检查,不过可惜的是不支持中文拼写检查(中文分词是个大问题)。
这里我们来安装英文的字典吧