help-gnu-emacs
[Top][All Lists]
Advanced

[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 `emacs.menu.popup.font' 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
                 '("hebrew8"
                   "[a-zA-Z\340-\372]"                 ;Latin and Hebrew
                   "[^a-zA-Z\340-\372]"
                   "['\"]" 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()
                                      (interactive)
                                      (ispell-change-dictionary "hebrew8")))
          'american))

My .Xdefaults has:
emacs.pane.menubar.font:  
-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8
emacs.menu.popup.font:    
-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8


The Hebrew speller (hspell) is the the work of Dan Kenigsberg and Nadav
Har'El. The site URL: http://ivrix.org.il/projects/spell-checker/ (this
page is not accessible just now, but the hspell files are also here:
http://sf.net/project/showfiles.php?group_id=99645&package_id=107592 .

Ehud.


--
 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
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry




reply via email to

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