[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: aspell and emacs

From: Ehud Karni
Subject: Re: aspell and emacs
Date: Fri, 31 Dec 2004 12:31:27 +0200

On Fri, 31 Dec 2004 09:28:53 +0000, Neon Absentius <address@hidden> wrote:
> (setq ispell-program-name "aspell")
> emacs uses the aspell program instead of ispell. I don't know however
> how to make emacs aware of a new dictionary. Specifically I just
> installed the greek aspell dictionary and I have no idea how to
> make emacs aware of the fact.

You should read the help for variables `ispell-dictionary-alist',
`ispell-dictionary' `ispell-local-dictionary' and the function
`(ispell-change-dictionary'. You may also need to set
`emacs.pane.menubar.font' and `' in your
.Xdefaults to a font that can display greek letters.

An example for how to set the it to use the Hebrew dictionary is:

    (require 'ispell)

    ;; Tell emacs what constitutes a word.
    (add-to-list 'ispell-dictionary-alist
                   "[a-zA-Z\340-\372]"                 ;Latin and Hebrew
                   "['\"]" t ("-B") nil iso-8859-8))   ;Hebrew charset

    (setq ispell-dictionary "hebrew8")
    (ispell-change-dictionary "hebrew8")
    (set-default 'ispell-local-dictionary "hebrew8")

    ;; Adding the Hebrew dictionary to ispell menu
    (if (fboundp 'define-key-after)
        (define-key-after ispell-menu-map [ispell-select-hebrew8]
          '("Select Hebrew8 Dict" . (lambda()
                                      (ispell-change-dictionary "hebrew8")))

My .Xdefaults has:

The Hebrew speller (hspell) is the the work of Dan Kenigsberg and Nadav
Har'El. The site URL: (this
page is not accessible just now, but the hspell files are also here: .


 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <>    Better Safe Than Sorry

reply via email to

[Prev in Thread] Current Thread [Next in Thread]