From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel Subject: Re: Fly-spelling with multiple dictionaries Date: Sun, 06 Apr 2008 16:41:20 +0200 Message-ID: References: <47F4A79C.6000006@alice.it> <47F4CD60.8010802@gmx.at> <47F4FDB9.6010306@gmx.at> <47F5040B.2070900@gmail.com> <47F51288.8000805@gmx.at> <47F51885.1090109@gmail.com> <47F54544.1050701@gmx.at> <47F54895.2070503@gmail.com> <47F54F85.4050206@gmx.at> <47F61CE2.5070409@gmx.at> <87y77t8lb2.fsf@uwakimon.sk.tsukuba.ac.jp> <47F69AC3.1010605@gmx.at> <47F76CDD.70502@gmx.at> <47F7EC6A.8050904@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207492909 12158 80.91.229.12 (6 Apr 2008 14:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2008 14:41:49 +0000 (UTC) Cc: pj@heslin.eclipse.co.uk, lennart.borgman@gmail.com, emacs-devel@gnu.org, "Stephen J. Turnbull" , claus.klingberg@gmail.com, Eli Zaretskii To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 06 16:42:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JiW4S-0001mJ-7n for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 16:42:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiW3p-00070F-Cq for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 10:41:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiW3l-000705-Ly for emacs-devel@gnu.org; Sun, 06 Apr 2008 10:41:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiW3k-0006zi-2B for emacs-devel@gnu.org; Sun, 06 Apr 2008 10:41:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiW3j-0006zd-Uq for emacs-devel@gnu.org; Sun, 06 Apr 2008 10:41:27 -0400 Original-Received: from mail2.sha-bang.de ([78.47.120.114] helo=mail.sha-bang.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JiW3g-00004u-1s; Sun, 06 Apr 2008 10:41:24 -0400 Original-Received: from kenny.sha-bang.de (xdsl-92-252-11-163.dip.osnanet.de [92.252.11.163]) by mail.sha-bang.de (Postfix) with ESMTP id E0B0C55C; Sun, 6 Apr 2008 16:58:57 +0200 (CEST) Original-Received: from wilde by kenny.sha-bang.de with local (Sha Bang MUA v.0711184.68) ID 1JiW3c-0000Ic-SQ; Sun, 06 Apr 2008 16:41:20 +0200 In-Reply-To: <47F7EC6A.8050904@gmx.at> (martin rudalics's message of "Sat, 05 Apr 2008 23:17:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94489 Archived-At: martin rudalics wrote: >> Anyway, regarding the issue of hunspell: there is already a >> ispell/aspell like command line interface included with hunspell [...] >> I'm quite confident that it will not take too much afford to >> integrate it with Emacs [...] > > Could you have a slightly longer look at this and tell us how it could > be used? I didn't find anything about this at their site. Ok, I did some bold experimenting and simply made an ad hoc setup for ispell like this: (setq ispell-program-name "hunspell" ispell-local-dictionary "en_US" ispell-local-dictionary-alist '(("en_US" "[A-Za-z]" "[^A-Za-z]" "[']" nil nil nil iso-8859-1))) then M-x ispell-buffer used hunspell as back end and worked as expected! (Even a quick attempt to use flyspell succeeded.) Very promising IMO. It seems that basically the dictionary setup must be implemented for hunspell to work as back end for Emacs. I guess there are a bunch of additional harry details which will need fixing, but in general it seems that hunspell actually can be used as a drop-in replacement for ispell with Emacs. cheers sascha -- Parents strongly cautioned -- this posting is intended for mature audiences over 18. It may contain some material that many parents would not find suitable for children and may include intense violence, sexual situations, coarse language and suggestive dialogue.