From unknown Wed Jun 25 10:55:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12611: Bugfix for broken hunspell choices Resent-From: Bastian Ballmann Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Oct 2012 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12611@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.134979857528487 (code B ref -1); Tue, 09 Oct 2012 16:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Oct 2012 16:02:55 +0000 Received: from localhost ([127.0.0.1]:35903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLcGj-0007PO-Kr for submit@debbugs.gnu.org; Tue, 09 Oct 2012 12:02:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60107) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLYzl-00022k-1h for submit@debbugs.gnu.org; Tue, 09 Oct 2012 08:33:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLYz7-0007tN-HS for submit@debbugs.gnu.org; Tue, 09 Oct 2012 08:32:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLYz7-0007tG-Ed for submit@debbugs.gnu.org; Tue, 09 Oct 2012 08:32:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLYz1-0007y5-C4 for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2012 08:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLYyr-0007o6-F0 for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2012 08:32:23 -0400 Received: from edge10.ethz.ch ([82.130.75.186]:22793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLYyr-0007nt-5W for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2012 08:32:13 -0400 Received: from CAS20.d.ethz.ch (172.31.51.110) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.2.298.4; Tue, 9 Oct 2012 14:32:10 +0200 Received: from pulsar.inf.ethz.ch (129.132.10.40) by mail.ethz.ch (172.31.51.110) with Microsoft SMTP Server (TLS) id 14.2.298.4; Tue, 9 Oct 2012 14:32:11 +0200 Message-ID: <5074194B.6040305@inf.ethz.ch> Date: Tue, 9 Oct 2012 14:32:11 +0200 From: Bastian Ballmann Organization: ETH User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120825 Thunderbird/10.0.7 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Mailman-Approved-At: Tue, 09 Oct 2012 12:02:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) ** Description When using hunspell as spell checker and setting LANG=3Dde_CH.utf-8 i=20 often get an empty choices buffer after running M-x ispell. The problem=20 is the use of the -a parameter. Hunspell only outputs half of the=20 corrections when using -a in contrast to a run without -a param. Here's the configuration I tested with (require 'ispell) (setq ispell-dictionary-base-alist '( ("de_DE" "[a-z=E4=F6=FC=DFA-Z=C4=D6=DC]" "[^a-z=E4=F6=FC=DFA-Z=C4=D6=DC]" = "[']" nil ("-d" "de_DE") nil utf-8) ("de_CH" "[a-z=E4=F6=FCA-Z=C4=D6=DC]" "[^a-z=E4=F6=FCA-Z=C4=D6=DC]" "[']" = nil ("-d" "de_CH") nil utf-8) ("en_US" "[a-zA-Z]" "[^a-zA-Z]" "[']" nil ("-d" "en_US") nil utf-8) ("en_GB" "[a-zA-Z]" "[^a-zA-Z]" "[']" nil ("-d" "en_GB") nil utf-8) ) ) (eval-after-load "ispell" (progn (setq ispell-dictionary "de_CH") (setq ispell-extra-args '("-t")) ; The input file is in TeX or=20 LaTeX format. (setq ispell-silently-savep t) ; save personal dict without=20 confirmation ) ) (setq-default ispell-program-name "hunspell") (setq ispell-really-hunspell t) (setq debug-on-error t) The only way I was able to generate choices for all wrong written word=20 is by skiping the -a parameter. ** Patch diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 51a4800..2a73926 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1632,7 +1632,8 @@ This allows it to improve the suggestion list=20 based on actual misspellings." (point-min) (point-max) ispell-program-name nil output-buf nil - "-a" + ;; -a makes problems with choices when using=20 hunspell and utf-8 + (if ispell-really-hunspell "" "-a") ;; hunspell -m option means something different (if ispell-really-hunspell "" "-m") ispell-args)) @@ -2577,8 +2578,12 @@ Optional third arg SHIFT is an offset to apply=20 based on previous corrections." ((eq (aref output 0) ?+) ; found because of root word (substring output 2)) ; return root word ((equal 0 (string-match "[\ra-zA-Z]" output)) - (ding) ; error message from ispell! - (message "Ispell error: %s" output) + (if (not (equal "hunspell" ispell-program-name)) + (progn + (ding) ; error message from ispell= ! + (message "Ispell error: %s" output) + ) + ) (sit-for 5) nil) (t ; need to process &, ?, and #'s @@ -2664,7 +2669,8 @@ Keeps argument list for future Ispell invocations=20 for no async support." (let ((process-connection-type ispell-use-ptys-p)) (apply 'start-process "ispell" nil ispell-program-name - "-a" ; Accept single input lines. + ;; -a makes problems with choices when using hunspell=20 and utf-8 + (if ispell-really-hunspell "" "-a") ;; Make root/affix combos not in dict. ;; hunspell -m option means different. (if ispell-really-hunspell "" "-m") @@ -2752,30 +2758,34 @@ Keeps argument list for future Ispell=20 invocations for no async support." (set-process-coding-system ispell-process=20 (ispell-get-coding-system) (ispell-get-coding-system))) ;; Get version ID line - (ispell-accept-output 3) - ;; get more output if filter empty? - (if (null ispell-filter) (ispell-accept-output 3)) - (cond ((null ispell-filter) - (error "%s did not output version line" ispell-program-name)) - ((and - (stringp (car ispell-filter)) - (if (string-match "warning: " (car ispell-filter)) - (progn - (ispell-accept-output 3) ; was warn msg. - (stringp (car ispell-filter))) - (null (cdr ispell-filter))) - (string-match "^@(#) " (car ispell-filter))) - ;; got the version line as expected (we already know it's=20 the right - ;; version, so don't bother checking again.) - nil) - (t - ;; Otherwise, it must be an error message. Show the user. - ;; But first wait to see if some more output is going to=20 arrive. - ;; Otherwise we get cool errors like "Can't open ". - (sleep-for 1) - (ispell-accept-output 3) - (error "%s" (mapconcat 'identity ispell-filter "\n")))) - (setq ispell-filter nil) ; Discard version ID line + (if (not (eq ispell-program-name "hunspell")) + (progn + (ispell-accept-output 3) + ;; get more output if filter empty? + (if (null ispell-filter) (ispell-accept-output 3)) + (cond ((null ispell-filter) + (error "%s did not output version line"=20 ispell-program-name)) + ((and + (stringp (car ispell-filter)) + (if (string-match "warning: " (car ispell-filter)) + (progn + (ispell-accept-output 3) ; was warn msg. + (stringp (car ispell-filter))) + (null (cdr ispell-filter))) + (string-match "^@(#) " (car ispell-filter))) + ;; got the version line as expected (we already know=20 it's the right + ;; version, so don't bother checking again.) + nil) + (t + ;; Otherwise, it must be an error message. Show the=20 user. + ;; But first wait to see if some more output is=20 going to arrive. + ;; Otherwise we get cool errors like "Can't open ". + (sleep-for 1) + (ispell-accept-output 3) + (error "%s" (mapconcat 'identity ispell-filter "\n")))) + (setq ispell-filter nil) ; Discard version ID line + ) + ) (let ((extended-char-mode (ispell-get-extended-character-mode))) (if extended-char-mode ; ~ extended character mode (ispell-send-string (concat extended-char-mode "\n")))) Have a nice day! Basti --=20 ETH Z=FCrich, Bastian Ballmann, IT Service Group CAB E 44.1, Universit=E4tsstrasse 6, CH-8092 Z=FCrich Tel +41 44 632 72 04 From unknown Wed Jun 25 10:55:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12611: Bugfix for broken hunspell choices Resent-From: Agustin Martin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Oct 2012 10:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12611@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134986617325440 (code B ref -1); Wed, 10 Oct 2012 10:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Oct 2012 10:49:33 +0000 Received: from localhost ([127.0.0.1]:36930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLtr3-0006cH-Gc for submit@debbugs.gnu.org; Wed, 10 Oct 2012 06:49:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43556) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLtqz-0006c4-Us for submit@debbugs.gnu.org; Wed, 10 Oct 2012 06:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLtqE-000231-L1 for submit@debbugs.gnu.org; Wed, 10 Oct 2012 06:48:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:43001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLtqE-00022x-II for submit@debbugs.gnu.org; Wed, 10 Oct 2012 06:48:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLtqD-0004Zy-NT for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2012 06:48:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLtq7-00021K-5Q for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2012 06:48:41 -0400 Received: from edison.ccupm.upm.es ([138.100.198.71]:45249 helo=smtp.upm.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLtq6-0001zR-RK for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2012 06:48:35 -0400 Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/edison-001) with ESMTP id q9AAmQwU020706; Wed, 10 Oct 2012 12:48:26 +0200 Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 7CB9C3B5; Wed, 10 Oct 2012 12:48:26 +0200 (CEST) Date: Wed, 10 Oct 2012 12:48:26 +0200 From: Agustin Martin Message-ID: <20121010104826.GA16468@agmartin.aq.upm.es> References: <5074194B.6040305@inf.ethz.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5074194B.6040305@inf.ethz.ch> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On Tue, Oct 09, 2012 at 02:32:11PM +0200, Bastian Ballmann wrote: > ** Description > > When using hunspell as spell checker and setting LANG=de_CH.utf-8 i > often get an empty choices buffer after running M-x ispell. The > problem is the use of the -a parameter. Hunspell only outputs half > of the corrections when using -a in contrast to a run without -a > param. [...] > The only way I was able to generate choices for all wrong written > word is by skiping the -a parameter. All the ispell.el communication with the spellchecker is done in pipe mode (-a mode). If you disable it you will completely disable normal communication. As a matter of fact I get no comunication with your changes applied, just an ispell process that is started and not killed on exit. Not to mention that this also breaks flyspell.el. You are probably hit by some of the oddities in hunspell pipe mode regarding UTF-8 characters. -- Regards, From unknown Wed Jun 25 10:55:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12611: Bugfix for broken hunspell choices Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Oct 2012 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Agustin Martin Cc: 12611@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 12611-submit@debbugs.gnu.org id=B12611.134988471023916 (code B ref 12611); Wed, 10 Oct 2012 15:59:01 +0000 Received: (at 12611) by debbugs.gnu.org; 10 Oct 2012 15:58:30 +0000 Received: from localhost ([127.0.0.1]:37746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLyg1-0006Dg-Pp for submit@debbugs.gnu.org; Wed, 10 Oct 2012 11:58:30 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:63287) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLyfy-0006DQ-R8 for 12611@debbugs.gnu.org; Wed, 10 Oct 2012 11:58:28 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MBO00I00PLQAL00@a-mtaout20.012.net.il> for 12611@debbugs.gnu.org; Wed, 10 Oct 2012 17:57:41 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBO00I3KPO45Y30@a-mtaout20.012.net.il>; Wed, 10 Oct 2012 17:57:40 +0200 (IST) Date: Wed, 10 Oct 2012 17:57:44 +0200 From: Eli Zaretskii In-reply-to: <20121010104826.GA16468@agmartin.aq.upm.es> X-012-Sender: halo1@inter.net.il Message-id: <83d30qz5dz.fsf@gnu.org> References: <5074194B.6040305@inf.ethz.ch> <20121010104826.GA16468@agmartin.aq.upm.es> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > Date: Wed, 10 Oct 2012 12:48:26 +0200 > From: Agustin Martin > > > The only way I was able to generate choices for all wrong written > > word is by skiping the -a parameter. > > All the ispell.el communication with the spellchecker is done in pipe mode > (-a mode). If you disable it you will completely disable normal > communication. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > Date: Wed, 10 Oct 2012 12:48:26 +0200 > From: Agustin Martin > > > The only way I was able to generate choices for all wrong written > > word is by skiping the -a parameter. > > All the ispell.el communication with the spellchecker is done in pipe mode > (-a mode). If you disable it you will completely disable normal > communication. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] > Date: Wed, 10 Oct 2012 12:48:26 +0200 > From: Agustin Martin > > > The only way I was able to generate choices for all wrong written > > word is by skiping the -a parameter. > > All the ispell.el communication with the spellchecker is done in pipe mode > (-a mode). If you disable it you will completely disable normal > communication. Indeed. > You are probably hit by some of the oddities in hunspell pipe mode > regarding UTF-8 characters. You mean "bugs". Yes, quite probably. The solution is to fix Hunspell (I think I can give the OP patches, if he can build his own Hunspell). Failing that, the work-around would be not to use UTF-8 for communicating with Hunspell. This should be possible for the de_CH locale. I suggest to customize ispell-local-dictionary-alist, and add to it an entry for de_CH (and any other languages you care about) that uses a unibyte encoding, such as Latin-1 or Latin-9. You will also have to change the CASECHARS and NOT-CASECHARS to use the corresponding Latin code points, see the value of ispell-dictionary-base-alist for an example. This should cause Hunspell to use the unibyte encoding, which should work around the problems with UTF-8. From unknown Wed Jun 25 10:55:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12611: Bugfix for broken hunspell choices Resent-From: Agustin Martin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Oct 2012 10:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12611@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134995287926737 (code B ref -1); Thu, 11 Oct 2012 10:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Oct 2012 10:54:39 +0000 Received: from localhost ([127.0.0.1]:38951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMGPX-0006xC-0E for submit@debbugs.gnu.org; Thu, 11 Oct 2012 06:54:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38090) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMGPU-0006wu-Ey for submit@debbugs.gnu.org; Thu, 11 Oct 2012 06:54:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMGOd-0000lC-IO for submit@debbugs.gnu.org; Thu, 11 Oct 2012 06:53:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:56087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMGOd-0000l8-F8 for submit@debbugs.gnu.org; Thu, 11 Oct 2012 06:53:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMGOY-00033A-MO for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 06:53:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMGOS-0000iz-La for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 06:53:38 -0400 Received: from fibonacci.ccupm.upm.es ([138.100.198.70]:50398 helo=smtp.upm.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMGOS-0000gr-Bn for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 06:53:32 -0400 Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/fibonacci-001) with ESMTP id q9BArMKK001751; Thu, 11 Oct 2012 12:53:22 +0200 Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 325DE2FC; Thu, 11 Oct 2012 12:53:22 +0200 (CEST) Date: Thu, 11 Oct 2012 12:53:21 +0200 From: Agustin Martin Message-ID: <20121011105321.GA23520@agmartin.aq.upm.es> References: <5074194B.6040305@inf.ethz.ch> <20121010104826.GA16468@agmartin.aq.upm.es> <83d30qz5dz.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83d30qz5dz.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On Wed, Oct 10, 2012 at 05:57:44PM +0200, Eli Zaretskii wrote: > > Date: Wed, 10 Oct 2012 12:48:26 +0200 > > From: Agustin Martin > > > > > The only way I was able to generate choices for all wrong written > > > word is by skiping the -a parameter. > > > > All the ispell.el communication with the spellchecker is done in pipe mode > > (-a mode). If you disable it you will completely disable normal > > communication. > > Indeed. > > > You are probably hit by some of the oddities in hunspell pipe mode > > regarding UTF-8 characters. > > You mean "bugs". Yes, quite probably. The solution is to fix > Hunspell (I think I can give the OP patches, if he can build his own > Hunspell). Indeed. Browsing into hunspell bug tracker I noticed another report (with proposed change) that may be related to this problem, http://sourceforge.net/tracker/?func=detail&aid=3468022&group_id=143754&atid=756395 No Encoding of Word for Suggestions in Piped Mode - ID: 3468022 A consequence of this bug seems that when communicated with in UTF-8, useful suggestions are not generated from an 8-bit dictionary. This in adition to report and changes proposed in http://sourceforge.net/tracker/?func=detail&aid=3178449&group_id=143754&atid=756395 Bad UTF-8 char count in pipe mode - ID: 3178449 Hope they will soon be fixed -- Agustin From unknown Wed Jun 25 10:55:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12611: Bugfix for broken hunspell choices Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Aug 2018 23:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Agustin Martin Cc: 12611@debbugs.gnu.org Received: via spool by 12611-submit@debbugs.gnu.org id=B12611.153549725630880 (code B ref 12611); Tue, 28 Aug 2018 23:01:02 +0000 Received: (at 12611) by debbugs.gnu.org; 28 Aug 2018 23:00:56 +0000 Received: from localhost ([127.0.0.1]:36165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fumym-00081e-3C for submit@debbugs.gnu.org; Tue, 28 Aug 2018 19:00:56 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:34144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fumyi-0007v4-0s; Tue, 28 Aug 2018 19:00:52 -0400 Received: by mail-io0-f170.google.com with SMTP id c22-v6so2911126iob.1; Tue, 28 Aug 2018 16:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fM6C4zaUZEbiOMbO+a2kssFqdCXcIizXqe0MGdT8sZ8=; b=Yi2frGXTq6nI8syY83KFaPM4ivwzek1dzusiR9oAZFuwfa6YcgPo6Lr+U3Z7xQ989T 9wzlMIFSFVDOr8UY9aLXG6gpHuunFIKgvoPd60TZbxMk9DJ9zAqfwnhLX39wN2NF6cBP yyWPG2cKZH018HyeQGpHLa6wPUacd5fgkBT+9FZviPmFrcQ6FUyez8z/H/IIIz7oMrZY hUIhbihGfSa2vnCBIjRQhTLAuervgfZHkWbHte6+y6VXnLmvj1RIszev/snVLa0Rg2JU ilDs7PknQV8UBbJ20pIxK2qY9cd3GZ6RzL2q5oJYXsGXe98vd6NLTVmtdyphd9Bozuz7 CAxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=fM6C4zaUZEbiOMbO+a2kssFqdCXcIizXqe0MGdT8sZ8=; b=P72qERZOvxZwJK3GYF9/AfLXjb4YDHbcyGpI7pZg+aZDgGsslT91bMb2j15r781Yy0 GPXSl3L2eNNlmAQ6xirZXO1a3Ir36fr/l8kU1RR32dG7k89kTrV5VULRIepEBYPTpBiy QBzvpzJQ4Sj+lR+ynkEzkyjMKdQ/bVXa6B3xUbtC3K6/RJJuSb0oDHRYhGFxXSr6c82q ys0XTN0TFHkkrzZehy17zJL76+6S3d1wCQHAV6CcNh7ykHSqfh37ybYiVVm/Kmmz15Xk uzZGRi1yQdbqnTA2kKv6G0tuRftprdgNTxajQis0emS4z/GKPtavTwm4CvLzLhxdLod8 5ceg== X-Gm-Message-State: APzg51D1H7RFJiHT0VUMN9fvVEnRrHk6M8EBkLn0fwK9vW96mr5OCicD MqMsrRZfxFjSPO37tqiqel1tnSf0 X-Google-Smtp-Source: ANB0VdY1yfvaayQKSXDhmJ0q4RihZw3P+VokYIodr+ByCgNeWp8ceXw4qGLEiWRI2DAANJM+EGMlGg== X-Received: by 2002:a6b:7117:: with SMTP id q23-v6mr3324101iog.37.1535497246220; Tue, 28 Aug 2018 16:00:46 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id x30-v6sm2083174ita.2.2018.08.28.16.00.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 16:00:45 -0700 (PDT) From: Noam Postavsky References: <5074194B.6040305@inf.ethz.ch> <20121010104826.GA16468@agmartin.aq.upm.es> <83d30qz5dz.fsf@gnu.org> <20121011105321.GA23520@agmartin.aq.upm.es> Date: Tue, 28 Aug 2018 19:00:44 -0400 In-Reply-To: <20121011105321.GA23520@agmartin.aq.upm.es> (Agustin Martin's message of "Thu, 11 Oct 2012 12:53:21 +0200") Message-ID: <875zzut7tv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forwarded 12611 forwarded 12611 https://sourceforge.net/p/hunspell/bugs/211/ close 12611 quit >> You mean "bugs". Yes, quite probably. The solution is to fix >> Hunspell (I think I can give the OP patches, if he can build his own >> Hunspell). > > Indeed. Browsing into hunspell bug tracker I noticed another report (with > proposed change) that may be related to this problem, > > http://sourceforge.net/tracker/?func=detail&aid=3468022&group_id=143754&atid=756395 > No Encoding of Word for Suggestions in Piped Mode - ID: 3468022 It now redirects to https://sourceforge.net/p/hunspell/bugs/211/, the maintainer says it's probably fixed in hunspell 1.3.4. > A consequence of this bug seems that when communicated with in UTF-8, useful > suggestions are not generated from an 8-bit dictionary. > > This in adition to report and changes proposed in > > http://sourceforge.net/tracker/?func=detail&aid=3178449&group_id=143754&atid=756395 > Bad UTF-8 char count in pipe mode - ID: 3178449 This one is marked fixed (https://sourceforge.net/p/hunspell/bugs/185/).