From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neon Absentius Newsgroups: gmane.emacs.help Subject: Re: aspell and emacs Date: Fri, 31 Dec 2004 22:43:23 +0000 Message-ID: <20041231224323.GB24591@SDF.LONESTAR.ORG> References: <20041231092853.GA11700@SDF.LONESTAR.ORG> <200412311031.iBVAVRt4010590@beta.mvs.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104533079 2214 80.91.229.6 (31 Dec 2004 22:44:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Dec 2004 22:44:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 31 23:44:32 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 1CkVVY-00011Y-00 for ; Fri, 31 Dec 2004 23:44:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CkVgZ-0007PZ-KT for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Dec 2004 17:55:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CkVgO-0007Nn-Vt for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 17:55:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CkVgN-0007Mh-9u for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 17:55:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CkVgM-0007ME-Uu for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 17:55:43 -0500 Original-Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CkVV9-0005pr-Rp for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 17:44:08 -0500 Original-Received: from sdf.lonestar.org (IDENT:absent@otaku.freeshell.org [192.94.73.2]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iBVMhOJS022591 for ; Fri, 31 Dec 2004 22:43:24 GMT Original-Received: (from absent@localhost) by sdf.lonestar.org (8.12.10/8.12.8/Submit) id iBVMhN8i027571 for help-gnu-emacs@gnu.org; Fri, 31 Dec 2004 22:43:23 GMT Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <200412311031.iBVAVRt4010590@beta.mvs.co.il> User-Agent: Mutt/1.4.2.1i 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:23082 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23082 On Fri, Dec 31, 2004 at 12:31:27PM +0200, Ehud Karni wrote: >-- 8< -- > 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)) Thank you for your reply. Unfortunately it didn't help me as I was looking specifically for help with aspell (and *not* ispell). The greek dictionaries for ispell are outdated and I can't make them to work with ispell anyway :(. There are greek dictionaries for aspell and they work pretty good, so I wanted to use them in emacs. I tried the solution you propose and it didn't work. The name of the greek dictionary is "el" so when I tried your solution when I try to spell check a buffer I get Starting new Ispell process... ispell-init-process: Error: The file "/usr/lib/aspell/el" is not in the proper format. Now the funny thing is that after that if I evaluate (setq ispell-dictionary "american") (ispell-change-dictionary "american") (set-default 'ispell-local-dictionary "american") and try to ispell a buffer I get a very similar message Starting new Ispell process... ispell-init-process: Error: The file "/usr/lib/aspell/english-med-only" is not in the proper format. However if, instead, I use the menu and select the default dictionary everything works just fine. When I do the same with the "el" dictionary, ie if I set it to be the default and then select "default" from the menu, I get an other error message ispell-process-line: Ispell misalignment: word `Faut' point 722; probably incompatible versions Probably I am doing something stupid. Thanks anyway N.A. -- Charity in capitalism is like urinating to extinguish a forest fire. -- Neon Absentius absent a.in.cirle sdf period lonestar period org SDF Public Access UNIX System - http://sdf.lonestar.org