[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ispell and emacs
From: |
Sergei Pokrovsky |
Subject: |
Re: ispell and emacs |
Date: |
22 May 2003 13:17:13 +0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>>>> "AN" == Alexander Nikolov <alexander@ip217-30.mnet.bg> 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
- ispell and emacs, Alexander Nikolov, 2003/05/21
- Re: ispell and emacs,
Sergei Pokrovsky <=