From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Fly-spelling with multiple dictionaries Date: Fri, 04 Apr 2008 08:55:09 +0200 Message-ID: <47F5D0CD.3070704@gmx.at> References: <47F4A79C.6000006@alice.it> <47F4CD60.8010802@gmx.at> <47F4FDB9.6010306@gmx.at> <47F5040B.2070900@gmail.com> <47F51288.8000805@gmx.at> <47F51885.1090109@gmail.com> <47F54544.1050701@gmx.at> <47F54895.2070503@gmail.com> <47F54F85.4050206@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207295791 15187 80.91.229.12 (4 Apr 2008 07:56:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 07:56:31 +0000 (UTC) Cc: Emacs Devel , Claus , "Lennart Borgman \(gmail\)" , Peter Heslin To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 04 09:57:03 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jhgn9-0006kV-SH for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 09:56:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhgmX-0007D0-Cs for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 03:56:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jhglo-0006tA-NZ for emacs-devel@gnu.org; Fri, 04 Apr 2008 03:55:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jhglo-0006sl-4m for emacs-devel@gnu.org; Fri, 04 Apr 2008 03:55:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhglo-0006sc-0q for emacs-devel@gnu.org; Fri, 04 Apr 2008 03:55:32 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Jhgln-00038D-Kn for emacs-devel@gnu.org; Fri, 04 Apr 2008 03:55:31 -0400 Original-Received: (qmail invoked by alias); 04 Apr 2008 06:55:30 -0000 Original-Received: from 62-47-35-109.adsl.highway.telekom.at (EHLO [62.47.35.109]) [62.47.35.109] by mail.gmx.net (mp027) with SMTP; 04 Apr 2008 08:55:30 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+Qa6khqc+QC2lOTYgPa6Pn/Cjw4aafBIYF2b+Pzt 1gzgNwM+jrX4KE User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94306 Archived-At: > Does any of the packages (yours, Peter's) define a clear API to > integrate other spell-checkers than Ispell/Aspell? Ispell/Aspell are, to my knowledge, the only spell-checkers providing the piping mechanism Emacs uses - Hunspell has a C(++) interface only. Currently, all we do is send some buffer text to the spell-checker and wait what the spell-checker tells us about that text. > The OS may offer spell-checking facilities, and it would make for > better integration (and also better spell-checking in my case) if that > was supported. IIRC integrating spell-checking wasn't that trivial with Open Office and Thunderbird either - especially when using some European languages like German. > Also note that modern text services go beyond spell-checking: grammar > checking, if done right, can be very helpful, too. If there was a > clear API, people could create the necessary components to integrate > such services. Grammar checking can (and should, IMHO) be done separately from spell-checking. Neither Aspell nor Ispell provide any support for this. > Such an API should allow the service to spell-check more than one word > at a time, That's what I do with speck, I send one line of text to the spell-checker at a time. I don't want to send more since this might interfere with typing. > and it should define text filtering hooks so we don't pass > each \begin{itemize} to the spell-checker when in latex-mode. Currently, Aspell and Ispell know better what should be ignored in LaTeX buffers. Why duplicate work in this area? > [If > there is such an API already, can you please point me to its > documentation?] I'm not aware of such an API.