[devel] [mange на freemail.hu: Re: ispell-aspell-find-dictionary: Opening input file: no such file or directory]

Eugene Vlasov =?iso-8859-1?q?eugene_=CE=C1_ikz=2Eru?=
Чт Окт 13 18:06:36 MSD 2005


Добрый день.

Это опять я с проблемами проверки орфографии при помощи aspell в
последнем emacs. Кто нибудь может прокомментировать?


----- Forwarded message from Magnus Henoch <mange на freemail.hu> -----

From: Magnus Henoch <mange на freemail.hu>
Date: Thu, 13 Oct 2005 14:44:19 +0200
To: emacs-devel на gnu.org
Cc: kevina на gnu.org
Subject: Re: ispell-aspell-find-dictionary: Opening input file: no such file
	or directory
X-Original-To: eugene на localhost
Delivered-To: eugene на localhost.ikz.ru
X-Original-To: eugene на ikz.ru
Delivered-To: eugene на ikz.ru
X-Injected-Via-Gmane: http://gmane.org/
Mail-Followup-To: emacs-devel на gnu.org
X-Complaints-To: usenet на sea.gmane.org
X-Gmane-NNTP-Posting-Host: dhcp-246-252.nomad.chalmers.se
Mail-Copies-To: never
X-Hashcash: 1:23:051013:kevina на gnu.org::K9Q5f25rz+uOF0yJ:00000000000000000000000000000000000000000000000P6zo
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (berkeley-unix)
Cancel-Lock: sha1:Y08RTlAXll7cs7rzt1xRn0dQvls=
X-Virus-Scanned: by amavisd-new at ikz.ru
X-IMAPbase: 1128517627 1984

Eugene Vlasov <eugene на ikz.ru> writes:

> After this:
>
> 2005-09-24  Magnus Henoch  <mange на freemail.hu>
>
>         * textmodes/ispell.el (ispell-maybe-find-aspell-dictionaries):
>         New function, code extracted from ispell-valid-dictionary-list.
>         (ispell-valid-dictionary-list, ispell-accept-buffer-local-defs):
>         Call it.
>
> spell checking on my system broken:
> $ emacs -q
> M-x flyspell-mode <RET>
>
> Loading flyspell...done
> Loading regexp-opt...done
> ispell-aspell-find-dictionary: Opening input file: no such file or directory, /usr/share/aspell/ru.dat
>
> M-x ispell-buffer <RET>
>
> ispell-aspell-find-dictionary: Opening input file: no such file or directory, /usr/share/aspell/ru.dat
>
> $ ls /usr/share/aspell/ru*
>
> /usr/share/aspell/ru-lebedev.dat
> /usr/share/aspell/ru-lebedev_phonet.dat
> /usr/share/aspell/ru-rk.dat
> /usr/share/aspell/ru-rk_phonet.dat
>
> $ aspell dicts
>
> en
> en_CA
> en_CA-w-accents
> en_CA-wo-accents
> en_GB
> en_GB-w-accents
> en_GB-wo-accents
> en_US
> en_US-w-accents
> en_US-wo-accents
> ru
> ru-lebedev
> ru-lebedev-ie
> ru-lebedev-io
> ru-rk

Sorry about the delay...

I've investigated this, and I'm not sure whether the bug is in
ispell.el, in the dictionaries used, or in aspell.

All dictionaries specify a .dat file (near the beginning of the binary
file).  The aspell manual says that this is named `LANG.dat', but the
ru-{lebedev,rk} dictionaries use ru-{lebedev,rk}.dat instead.  I'm
reluctant to parse the dictionary file from ispell.el, and "aspell -d
ru-lebedev config lang" gives "<unknown>" - making that return the
name of the .dat file minus .dat would be one way of fixing the problem.

The particular RPMs of these dictionaries that I found install
symlinks in the alternatives system, so that using the "ru" dictionary
will select one of them.  Given that, they could simply reference
ru.dat and get the right file, but that might not be in the in the
interest of the upstream maintainer.

On the third hand, ispell.el could try to find the real name of the
used dictionary (beyond symlinks), and try DICT.dat if LANG.dat
doesn't exist.  That would fix at least this particular problem.

So, I'm asking for advice: which of these should be fixed?  Or is
there another possible way?

Magnus



_______________________________________________
Emacs-devel mailing list
Emacs-devel на gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

----- End forwarded message -----


-- 
С уважением, Евгений                       mailto:eugvv at altlinux.ru

----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: Digital signature
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20051013/dd31b01b/attachment-0001.bin>


Подробная информация о списке рассылки Devel