From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "cmr.Pent@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Spellcheck against multiple dictionaries? Date: Wed, 18 Mar 2009 12:36:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1237405333 28700 80.91.229.12 (18 Mar 2009 19:42:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2009 19:42:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 20:43:30 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lk1fA-0003Er-LA for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 20:42:52 +0100 Original-Received: from localhost ([127.0.0.1]:44658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lk1do-0004yS-BO for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 15:41:28 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w34g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 89.179.245.94 Original-X-Trace: posting.google.com 1237404978 5562 127.0.0.1 (18 Mar 2009 19:36:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 18 Mar 2009 19:36:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w34g2000yqm.googlegroups.com; posting-host=89.179.245.94; posting-account=gGXeuQoAAAAj0VaJ1PQ4rEKCfxef3hne User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.6) Gecko/2009020409 Iceweasel/3.0.6 (Debian-3.0.6-1),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167763 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63056 Archived-At: 2009/3/18 martin rudalics : > Privet, Andrey! > >> Is there a nice way to let Emacs use multiple dictionaries for >> spellchecking? I think it is a very practical approach, especially if >> language character sets do not intersect (English/Russian for >> example). > > I once wrote a mode to handle multiple dictionaries which you should be > able to find here > > http://www.emacswiki.org/emacs/SpeckMode > > Note, however, that it provides only flyspell-like behavior which means > it will eagerly check all text displayed in a window and not just > individual words in the lazy manner of ispell. Please give it a try, in > particular because I never had any feedback from Russian users ;-). If > it works and the flyspell-type behavior annoys you sufficiently, we can > think about implementing a more ispell-like behavior. > > Sincerely, martin. > Gr=C3=BC=C3=9F Gott! I've downloaded speck.el file, but I'm not sure how do I use it. I've created a test file containing mixed correct and incorrect words, in Russian and English: Test =D1=82=D0=B5=D1=81=D1=82 correct =D0=BE=D1=87=D0=B5=D0=BF=D1=8F=D1=82= =D0=BA=D0=B0 incorect =D0=B2=D0=B5=D1=80=D0=BD=D0=BE Then I've done M-x speck-mode. Emacs said that Speck-mode has been activated and is using "ru_RU" dictionary, but nothing has changed in the test buffer. From your description I was expecting that the incorrect words would be highlighted somehow. Am I missing something? I think that the ispell-ish behavior would indeed be nice. I've looked through the ispell code, and it looks like Emacs raises some kind of exception if the ispell process returns "invalid" status. Do you think it is possible to fallback to another dictionary on such an event? Andrey