From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sergei Pokrovsky Newsgroups: gmane.emacs.help Subject: Re: ispell and emacs Date: 22 May 2003 13:17:13 +0700 Organization: Magistral Telecom JV. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053584365 3957 80.91.224.249 (22 May 2003 06:19:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 06:19:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 08:19:23 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IjQB-00011f-00 for ; Thu, 22 May 2003 08:19:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IjRc-0006dh-2o for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 02:20:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.sovam.com!news.siberia.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: ns.nbsp.nsk.su Original-X-Trace: news.siberia.net 1053584330 15273 212.17.10.98 (22 May 2003 06:18:50 GMT) Original-X-Complaints-To: usenet@news.siberia.net Original-NNTP-Posting-Date: Thu, 22 May 2003 06:18:50 +0000 (UTC) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:113502 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9998 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9998 >>>>> "AN" == Alexander Nikolov writes: AN> I installed a Bulgarian dictionary for ispell and tried to make it AN> work under emacs too, but it is acting somewhat strange. What I added AN> in my .emacs file was: AN> ;;ispell Bulgarian AN> (load-library "ispell") AN> (setq ispell-dictionary-alist AN> (cons AN> '("bulgarian" AN> "[A-Za-z\192-\255]" "[^A-Za-z\192-\255]" Why do you send Latin letters to a Bulgarian dictionary? If you remove the "A-Za-z" part, your spellcheck should work faster and better (unless you have an integrated Bulgarian-English dictionary). Besides, "192" seems to be a strange octal number, I'd expect "[\300-\377]" "[^\300-\377]" [...] AN> Sometimes it seems to work nice and sometimes it doesn't(which is the AN> more frequent case). If I don't put a string of latin letters in the AN> beginning of the buffer, ispell reports that the spell-check is AN> finished (without reporting errors), no matter what terrible mistakes AN> I've made. So your ispell is not checking Bulgarian, it checks English. Did you set the Bulgarian dictionary? Something like (ispell-change-dictionary "bulgarian") You may wish to define some shortcuts, e.g. (global-set-key "\C-cia" (lambda () "set English dictionary" (interactive) (ispell-change-dictionary "english") (setq diction-ruleset "en") )) (global-set-key "\C-cip" (lambda () "set Russian dictionary" (interactive) (ispell-change-dictionary "russian") )) (global-set-key "\C-cib" 'ispell-buffer) (global-set-key "\C-cic" 'ispell-change-dictionary) (global-set-key "\C-cim" 'ispell-message) (global-set-key "\C-cir" 'ispell-region) (global-set-key "\C-ciw" 'ispell-complete-word) -- Sergei