From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Nikolov Newsgroups: gmane.emacs.help Subject: Re: ispell and emacs Date: 22 May 2003 12:30:59 +0000 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 1053596511 18230 80.91.224.249 (22 May 2003 09:41:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 09:41:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 11:41:49 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 19ImYe-0004g7-00 for ; Thu, 22 May 2003 11:40:20 +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 19ImVI-0006VH-Ca for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 05:36:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!ip217-30.mnet.BG!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 65 Original-NNTP-Posting-Host: ip217-30.mnet.bg (193.110.217.30) Original-X-Trace: fu-berlin.de 1053595927 29323023 193.110.217.30 (16 [159246]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:113512 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:10007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10007 Sergei Pokrovsky writes: > >>>>> "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]" i knew it couldn't be plain decimal numbers ;) > > [...] > > 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") I got that one right- I did change the dictionary. ispell was checking Bulgarian but only when it was interspersed with some English letters. Now with the right characters set it seems to work just fine, so thank you indeed. > You may wish to define some shortcuts, e.g. Sounds quite useful. > (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 Thank you again, It's always nice to get some help from a Russian. :o