From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: 24.5.; invoking hunspell with multiple dicts Date: Fri, 01 May 2015 20:42:29 +0300 Message-ID: <83twvwqjne.fsf@gnu.org> References: <86383gy5yk.fsf@gmx.de> <83wq0sqqzu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1430502194 8735 80.91.229.3 (1 May 2015 17:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 17:43:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 19:43:03 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YoExr-0004Zr-1E for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 19:43:03 +0200 Original-Received: from localhost ([::1]:54952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoExq-0008P8-Hm for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 13:43:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoExe-0008Kg-KR for help-gnu-emacs@gnu.org; Fri, 01 May 2015 13:42:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoExZ-0006yS-CR for help-gnu-emacs@gnu.org; Fri, 01 May 2015 13:42:50 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:41744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoExZ-0006xt-4f for help-gnu-emacs@gnu.org; Fri, 01 May 2015 13:42:45 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NNO00A00MEQOK00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Fri, 01 May 2015 20:42:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNO00ALVMJ7NF10@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Fri, 01 May 2015 20:42:43 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104140 Archived-At: > From: Arash Esbati > Date: Fri, 1 May 2015 15:33:07 +0000 (UTC) >=20 > > IOW, this feature of Hunspell is for using several dictionaries f= or > > the same language, like if you want to use a dictionary of medici= nal > > terms in addition to the general vocabulary. >=20 > Thanks for your response and clarification. I read this in hunspel= l's man page >=20 > =E2=88=92d en_US,en_geo,en_med,de_DE,de_med >=20 > and just adapted it. Obviously, I've been abusing that feature for= a long > time now, but it worked quite well ;-) I used it as well, until I bumped into a weird case where Hunspell missed a mistake, and then suggested strange replacements in another case. Then I read the source code, and figured out how this works. It cannot work with different languages. > While we're at it: I never managed to get the `OTHERCHARS' feature = work with > hunspell. I.e., >=20 > > (setq > > ispell-local-dictionary-alist > > '((nil "[A-Za-z]" "[^A-Za-z]" "[']" nil > > ("-d" "en_US") > > nil iso-8859-1) > > ("deutsch8"=20 > > "[a-zA-Z\304\326\334\344\366\337\374]"=20 > > "[^a-zA-Z\304\326\334\344\366\337\374]" > > "[-'=3D~\"]" t > ^^^^^^^^ > > ("-d" "de_DE") > > nil iso-8859-1))) >=20 > This is very useful when writing German text with LaTeX. Any idea? You shouldn't need this with kind of customization with Emacs 24.4 an= d later. That code which signals an error in your case figures OTHERCHARS automatically. (It also figures out all the rest.)