unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alexander Nikolov <alexander@ip217-30.mnet.bg>
Subject: Re: ispell and emacs
Date: 22 May 2003 12:30:59 +0000	[thread overview]
Message-ID: <m2brxvxiws.fsf@ip217-30.mnet.bg> (raw)
In-Reply-To: uuznlf8pzq.fsf@nbsp.nsk.su

Sergei Pokrovsky <pok@none.nowhere.invalid> writes:

> >>>>> "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]"
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

  reply	other threads:[~2003-05-22 12:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-22  2:57 ispell and emacs Alexander Nikolov
2003-05-22  6:17 ` Sergei Pokrovsky
2003-05-22 12:30   ` Alexander Nikolov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-11-10  0:57 Ispell " vjp2.at
2007-11-10 11:30 ` Eli Zaretskii
2007-11-12 10:17 ` vjp2.at
2007-11-12 21:11   ` Eli Zaretskii
     [not found]   ` <mailman.3376.1194901930.18990.help-gnu-emacs@gnu.org>
2007-11-12 22:53     ` David Kastrup
2007-11-14  3:02       ` vjp2.at
2007-11-14  3:01     ` vjp2.at
2007-11-14  4:10       ` Eli Zaretskii
2007-11-12 10:31 ` vjp2.at
2007-11-12 19:11   ` Peter Dyballa
2007-11-12 21:13   ` Eli Zaretskii
2007-11-13  3:37 ` vjp2.at
2007-11-13  4:14   ` Eli Zaretskii
2007-11-14  3:03   ` vjp2.at

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2brxvxiws.fsf@ip217-30.mnet.bg \
    --to=alexander@ip217-30.mnet.bg \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).