ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] [mange@freemail.hu: Re: ispell-aspell-find-dictionary: Opening input file: no such file or directory]
@ 2005-10-13 14:06 Eugene Vlasov
  0 siblings, 0 replies; only message in thread
From: Eugene Vlasov @ 2005-10-13 14:06 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 3697 bytes --]

Добрый день.

Это опять я с проблемами проверки орфографии при помощи 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


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-13 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-13 14:06 [devel] [mange@freemail.hu: Re: ispell-aspell-find-dictionary: Opening input file: no such file or directory] Eugene Vlasov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git