LINUX.ORG.RU

[emacs, arch, ispell-ru] - проверка орфографии


0

0

Насколько я понимаю, emacs для проверки орфографии использует ispell.

Правильно ли я понимаю, что в arch нет готового словаря русского для ispell?

emas@xal:~$ yaourt -Ss ispell
extra/aspell 0.60.6-4 [installed]
A spell checker designed to eventually replace Ispell
extra/ispell 3.3.02-3
An interactive spell-checking program for Unix
aur/ispell-de 2.0-1 (12)
German dictionary for ispell.
aur/ispell-da 1.4.73-1 (4)
Danish dictionary for ispell
aur/ispell-fr 1.0-1 (10)
French dictionary for ispell
aur/ispell-czech 20040229-1 (1)
Czech dictionary for ispell.
aur/ispell-pl 20021127-1 (12)
Polish dictionary for ispell
aur/ispell-british 3.3.02-1 (13)
British English dictionary for ispell
aur/tmispell-voikko 0.7-2 (4)
An Ispell compatible front-end for spell-checking modules
aur/ispell-pt-br 1.0-1 (3)
Brazilian portuguese dictionary for ispell.
aur/ispell-et 20070530-1 (2)
Estonian dictionary for ispell
aur/iitalian 2.3-1 (3)
Italian dictionary for Ispell
aur/ispell-hu 1.3-2 (2)
Hungarian dictionary for ispell.
aur/ispell-it 2001-1 (2)
Italian dictionary for ispell.

Как его лучше установить?

★★

Ответ на: комментарий от Evgueni

Если не сложно - приведите минимальные настройки конфига для проверки русской орфографии в emacs.

lemas ★★
() автор топика
Ответ на: комментарий от lemas

Например так:

(setq-default ispell-program-name "/home/baldin/local/bin/ispell")

(setq ispell-dictionary "russian")

Но у меня в этом случае ispell локально собран, так как окружение довольно старое. С aspell какая-то бага была - тормозил fly-spell.

Evgueni ★★★★★
()
Ответ на: комментарий от Evgueni

У меня ругается так:

The file "/usr/lib/aspell-0.60/russian" can not be opened for reading.

Конфиг:

(setq-default ispell-program-name "aspell")
(setq ispell-local-dictionary "russian")

Указанного файла вообще нет в директории, хотя пакет aspell-ru стоит:

demas@xal:~$ yaourt -Ql aspell-ru
aspell-ru /usr/
aspell-ru /usr/lib/
aspell-ru /usr/lib/aspell-0.60/
aspell-ru /usr/lib/aspell-0.60/ru-ye.multi
aspell-ru /usr/lib/aspell-0.60/ru-ye.rws
aspell-ru /usr/lib/aspell-0.60/ru-yeyo.multi
aspell-ru /usr/lib/aspell-0.60/ru-yo.multi
aspell-ru /usr/lib/aspell-0.60/ru-yo.rws
aspell-ru /usr/lib/aspell-0.60/ru.dat
aspell-ru /usr/lib/aspell-0.60/ru.multi
aspell-ru /usr/lib/aspell-0.60/ru_affix.dat


P.S. Кажется сам сообразил - надо:

(setq ispell-local-dictionary "ru")

lemas ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.