unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: aspell and emacs
Date: Fri, 31 Dec 2004 12:31:27 +0200	[thread overview]
Message-ID: <200412311031.iBVAVRt4010590@beta.mvs.co.il> (raw)
In-Reply-To: <20041231092853.GA11700@SDF.LONESTAR.ORG> (message from Neon Absentius on Fri, 31 Dec 2004 09:28:53 +0000)

On Fri, 31 Dec 2004 09:28:53 +0000, Neon Absentius <absent@sdf.lonestar.org> 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	other threads:[~2004-12-31 10:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-31  9:28 aspell and emacs Neon Absentius
2004-12-31 10:31 ` Ehud Karni [this message]
2004-12-31 22:43   ` Neon Absentius
2005-01-01 10:40     ` Eli Zaretskii
2005-01-02 13:04     ` Ehud Karni
2005-01-03 21:08 ` aspell and emacs, SOLVED Neon Absentius
  -- strict thread matches above, loose matches on Subject: below --
2004-01-28  3:06 Aspell and Emacs Chris Swoyer
2004-01-28 21:50 ` Martin Stemplinger
2004-01-28 22:46   ` Chris Swoyer
2004-01-29  1:35     ` Tim McNamara
2004-01-28 23:18 ` Bruce Ingalls
2004-01-29  0:30   ` Chris Swoyer
2004-01-29 20:17   ` Kevin Rodgers

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=200412311031.iBVAVRt4010590@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --cc=help-gnu-emacs@gnu.org \
    /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).