[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ispell and emacs
Re: ispell and emacs
22 May 2003 12:30:59 +0000
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sergei Pokrovsky <address@hidden> writes:
> >>>>> "AN" == Alexander Nikolov <address@hidden> 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"
> (ispell-change-dictionary "english")
> (setq diction-ruleset "en")
> (global-set-key "\C-cip"
> (lambda () "set Russian dictionary"
> (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)
Thank you again, It's always nice to get some help from a Russian. :o