From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: aspell and emacs Date: Fri, 31 Dec 2004 12:31:27 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <200412311031.iBVAVRt4010590@beta.mvs.co.il> References: <20041231092853.GA11700@SDF.LONESTAR.ORG> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104489676 25539 80.91.229.6 (31 Dec 2004 10:41:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Dec 2004 10:41:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 31 11:41:07 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CkKDS-0004tK-00 for ; Fri, 31 Dec 2004 11:41:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CkKNi-0006rB-VF for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Dec 2004 05:51:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CkKG6-0005qC-S2 for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 05:43:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CkKG3-0005po-D8 for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 05:43:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CkKG2-0005pj-B3 for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 05:43:46 -0500 Original-Received: from [193.16.147.12] (helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CkK4E-0004YZ-79 for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 05:31:34 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.0/8.13.0) with ESMTP id iBVAVSQw019408 for ; Fri, 31 Dec 2004 12:31:28 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.10/8.12.10) with ESMTP id iBVAVRrU010594 for ; Fri, 31 Dec 2004 12:31:27 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.12.10/8.12.10/Submit) id iBVAVRt4010590; Fri, 31 Dec 2004 12:31:27 +0200 Original-To: absent@sdf.lonestar.org In-reply-to: <20041231092853.GA11700@SDF.LONESTAR.ORG> (message from Neon Absentius on Fri, 31 Dec 2004 09:28:53 +0000) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23075 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23075 On Fri, 31 Dec 2004 09:28:53 +0000, Neon Absentius 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 Better Safe Than Sorry