From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 13 Oct 2005 20:06:36 +0600 From: Eugene Vlasov To: devel@altlinux.ru Message-ID: <20051013140636.GB8236@eugene-home.ikz.ru> Mail-Followup-To: devel@altlinux.ru Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline X-Virus-Scanned: by amavisd-new at ikz.ru Subject: [devel] [mange@freemail.hu: Re: ispell-aspell-find-dictionary: Opening input file: no such file or directory] X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 14:00:39 -0000 Archived-At: List-Archive: List-Post: --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =E4=CF=C2=D2=D9=CA =C4=C5=CE=D8. =FC=D4=CF =CF=D0=D1=D4=D8 =D1 =D3 =D0=D2=CF=C2=CC=C5=CD=C1=CD=C9 =D0=D2=CF= =D7=C5=D2=CB=C9 =CF=D2=C6=CF=C7=D2=C1=C6=C9=C9 =D0=D2=C9 =D0=CF=CD=CF=DD=C9= aspell =D7 =D0=CF=D3=CC=C5=C4=CE=C5=CD emacs. =EB=D4=CF =CE=C9=C2=D5=C4=D8 =CD=CF=D6= =C5=D4 =D0=D2=CF=CB=CF=CD=CD=C5=CE=D4=C9=D2=CF=D7=C1=D4=D8? ----- Forwarded message from Magnus Henoch ----- =46rom: Magnus Henoch 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:000000000000000000= 00000000000000000000000000000P6zo User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (berkeley-unix) Cancel-Lock: sha1:Y08RTlAXll7cs7rzt1xRn0dQvls=3D X-Virus-Scanned: by amavisd-new at ikz.ru X-IMAPbase: 1128517627 1984 Eugene Vlasov writes: > After this: > > 2005-09-24 Magnus Henoch > > * 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 > > Loading flyspell...done > Loading regexp-opt...done > ispell-aspell-find-dictionary: Opening input file: no such file or direct= ory, /usr/share/aspell/ru.dat > > M-x ispell-buffer > > ispell-aspell-find-dictionary: Opening input file: no such file or direct= ory, /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 "" - 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 ----- --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E5=D7=C7=C5=CE=C9=CA = mailto:eugvv at altlinux.ru --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDTmnsVvv8gASO8rIRAnr7AKCExvKaoql3I0yRjtunhTObpPNtZACbBkpj WbUYs1c88aymH81tV+2P41w= =kOTI -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--