From unknown Fri Jun 20 07:25:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52179 <52179@debbugs.gnu.org> To: bug#52179 <52179@debbugs.gnu.org> Subject: Status: Highlighting a word in `ispell' using `enchant' Reply-To: bug#52179 <52179@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:25:34 +0000 retitle 52179 Highlighting a word in `ispell' using `enchant' reassign 52179 emacs submitter 52179 Tor Kringeland severity 52179 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 29 09:44:52 2021 Received: (at submit) by debbugs.gnu.org; 29 Nov 2021 14:44:53 +0000 Received: from localhost ([127.0.0.1]:37600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrhtk-0000XR-Ok for submit@debbugs.gnu.org; Mon, 29 Nov 2021 09:44:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:38624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrhti-0000XJ-Nb for submit@debbugs.gnu.org; Mon, 29 Nov 2021 09:44:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrhti-0007bj-9Q for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2021 09:44:50 -0500 Received: from mailgw301.it.ntnu.no ([129.241.56.179]:34864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrhtf-0004IK-9N for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2021 09:44:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1638197083; h=from : to : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=8kb8Za70hRDFty1IstPWzOB9fNig2lGIjsEVg8+M/1I=; b=S+KWo/4q9z+25BgFVM8XNofEyoQ8TAr8sqayRgahlHV2vaV0gqH+gAwZsgK8gA6DNHqaS 651wWz69M0WIAExsSnVMjQW8dw6xwAKSnE1p0Og1X8VGbNzaVPLlqZ1M8wQFK5CfwQxI1oO kIBbR0u69X6qC8WLVzKqAgSaYRm3SI0sXQwzoz90JRBKIpQm7AQC3pZTbsXgxGRhMb5ehMC G4bbIpxGKQyAwGSEW6X2fbs39W7pN4f17gi6xm27URQ10qheaRIRMmKoPxZlDBnw3Ab9mDA xMTDIv+3AUu2H6S3LsPCVK2NWRKdS/OxzTZZ79YeCWmwS8bdEpOQLezuwx3Q== Received: from localhost (localhost [127.0.0.1]) by mailgw301.it.ntnu.no (Postfix) with ESMTP id 51F44682A58 for ; Mon, 29 Nov 2021 15:44:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailgw301.it.ntnu.no X-Spam-Flag: NO X-Spam-Score: -4.59 X-Spam-Level: Received: from mailgw301.it.ntnu.no ([127.0.0.1]) by localhost (mailgw301.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A8KR5cTAOu7v for ; Mon, 29 Nov 2021 15:44:43 +0100 (CET) Received: from localhost (unknown [91.219.215.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: takringe@ntnu.no) by mailgw301.it.ntnu.no (Postfix) with ESMTPSA id C9A466829EF for ; Mon, 29 Nov 2021 15:44:42 +0100 (CET) From: Tor Kringeland To: bug-gnu-emacs@gnu.org Subject: Highlighting a word in `ispell' using `enchant' Date: Mon, 29 Nov 2021 15:44:39 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=129.241.56.179; envelope-from=tor.a.s.kringeland@ntnu.no; helo=mailgw301.it.ntnu.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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: -2.6 (--) Using `ispell' with `enchant' on macOS yields the following problem. If a word contains some non-ASCII character, said character will not be considered part of the word and will split it (like a digit would). For example in "na=C3=AFve" both "na" and "ve" are considered two words. This does not happen if I use `aspell' instead of `enchant', and if I run echo -n "na=C3=AFve" | enchant-2 -a it registers that this is one word, and that it is valid (using an English dictionary). I'm using Enchant version 2.3.1 and an Emacs 29 build from 24 November on macOS Catalina. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 29 09:51:51 2021 Received: (at 52179) by debbugs.gnu.org; 29 Nov 2021 14:51:51 +0000 Received: from localhost ([127.0.0.1]:37634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mri0V-0002zC-Dz for submit@debbugs.gnu.org; Mon, 29 Nov 2021 09:51:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mri0U-0002z1-8K for 52179@debbugs.gnu.org; Mon, 29 Nov 2021 09:51:50 -0500 Received: from [2001:470:142:3::e] (port=45960 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mri0O-0005Yh-Hh; Mon, 29 Nov 2021 09:51:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=GqteGo2poh2QSlxooTfy+qmxBEVf6PIvDwaWerX0oWk=; b=rmnEjoZE6Bh+2OgsPKcC avU6tEr9jJ+Judm+JXvchuz7BDn/SVJVKjcLqDpUBGT2rDQirk936FqAVIUOQ0Z9gXHUunfW0JDxJ /8BqMjw0O2mHo+Mnz6h4brDBtsLntNktRdZ5Mc5gzeGQ46JJTo8OlVM6q8oJLTSz0O4ccHr/3CLwq ynx/THA3vOMDNMTaifFy3kKcC+mFAp+74j/JKVYTVrMEmZgysdOyOWmsTVkftQWvxzl2V3YBRgOUz YhEcwX+MRy/mR+bB6ZD9FtZWLWVBO9UwAtrAr85SfQ4f5PxHdub3MmkCSvTxY5YYD3w5NFk9qCzw+ v8c1o8TMe22iWQ==; Received: from [87.69.77.57] (port=1569 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mri0N-0002qF-Rf; Mon, 29 Nov 2021 09:51:44 -0500 Date: Mon, 29 Nov 2021 16:51:54 +0200 Message-Id: <83k0grui9h.fsf@gnu.org> From: Eli Zaretskii To: Tor Kringeland In-Reply-To: (message from Tor Kringeland on Mon, 29 Nov 2021 15:44:39 +0100) Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52179 Cc: 52179@debbugs.gnu.org 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: -3.3 (---) > From: Tor Kringeland > Date: Mon, 29 Nov 2021 15:44:39 +0100 > > Using `ispell' with `enchant' on macOS yields the following problem. If > a word contains some non-ASCII character, said character will not be > considered part of the word and will split it (like a digit would). For > example in "naïve" both "na" and "ve" are considered two words. This > does not happen if I use `aspell' instead of `enchant', and if I run > > echo -n "naïve" | enchant-2 -a > > it registers that this is one word, and that it is valid (using an > English dictionary). > > I'm using Enchant version 2.3.1 and an Emacs 29 build from 24 November > on macOS Catalina. Which dictionary do you use, and what encoding does that dictionary require? From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 29 15:46:20 2021 Received: (at 52179) by debbugs.gnu.org; 29 Nov 2021 20:46:20 +0000 Received: from localhost ([127.0.0.1]:39589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrnXX-0001Cf-FN for submit@debbugs.gnu.org; Mon, 29 Nov 2021 15:46:20 -0500 Received: from mailgw301.it.ntnu.no ([129.241.56.179]:49250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrnXN-0001CO-Go for 52179@debbugs.gnu.org; Mon, 29 Nov 2021 15:46:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1638218767; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=nX8jSmnavmqbAXnfYHq69iW0uehLz3MpRkJs00ftdCA=; b=cZ80/7nMfDrpmXBPqQTj6sGSeB42bblRkUPAsoDCvo+Hzhv+B15Wtwke7BbxbLBcEpeSo W1k0tREpBFX8yj19c8IuEm52m7mXFVszsgwoYkxhH99O8jhJrQgETsHyyJqgdWlGAYrD+K0 bRYyKTgsZbOJLi4HCvC7Jp4L56RAB3BYA8y97dG20tbVtvcExWFTaI74gRgV0LC/yKpMRxx /8+QQqALXJ0cso9Q/10ZfnuhPYhPMMZ21nKHc5nGTTMjkkPoAz4mZ0bp8GjOBuZBSNBpUDX eRLJdUPARf9F3zhSFHdB6vMDZb456m/Qt+cL5tAHIzEiNpLLDspAYUMXJEng== Received: from localhost (localhost [127.0.0.1]) by mailgw301.it.ntnu.no (Postfix) with ESMTP id 9D545682C56; Mon, 29 Nov 2021 21:46:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailgw301.it.ntnu.no X-Spam-Flag: NO X-Spam-Score: -4.59 X-Spam-Level: Received: from mailgw301.it.ntnu.no ([127.0.0.1]) by localhost (mailgw301.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27QzxVG0E7D1; Mon, 29 Nov 2021 21:46:07 +0100 (CET) Received: from localhost (unknown [91.219.215.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: takringe@ntnu.no) by mailgw301.it.ntnu.no (Postfix) with ESMTPSA id 06A0368297F; Mon, 29 Nov 2021 21:46:06 +0100 (CET) From: Tor Kringeland To: Eli Zaretskii Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' In-Reply-To: <83k0grui9h.fsf@gnu.org> References: <83k0grui9h.fsf@gnu.org> Date: Mon, 29 Nov 2021 21:46:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52179 Cc: 52179@debbugs.gnu.org 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 (-) Eli Zaretskii writes: >> From: Tor Kringeland >> Date: Mon, 29 Nov 2021 15:44:39 +0100 >>=20 >> Using `ispell' with `enchant' on macOS yields the following problem. If >> a word contains some non-ASCII character, said character will not be >> considered part of the word and will split it (like a digit would). For >> example in "na=C3=AFve" both "na" and "ve" are considered two words. Th= is >> does not happen if I use `aspell' instead of `enchant', and if I run >>=20 >> echo -n "na=C3=AFve" | enchant-2 -a >>=20 >> it registers that this is one word, and that it is valid (using an >> English dictionary). >>=20 >> I'm using Enchant version 2.3.1 and an Emacs 29 build from 24 November >> on macOS Catalina. > > Which dictionary do you use, and what encoding does that dictionary > require? In Emacs, the relevant entry in `ispell-dictionary-alist' is ("en" "[[:alpha:]]" "[^[:alpha:]]" "" t nil nil utf-8) I installed `aspell' and `enchant' from Homebrew. The installation of `aspell' included a bunch of dictionaries downloaded from gnu.org. In particular, the "en" dictionary is downloaded from [1]. It is in some kind of binary format after installation (see [2] for details). The weird part is that it works fine in a command line, and switching `ispell-program-name' to use `aspell' fixes the issue, so the problem seems to be somehow in how Emacs interacts with the `enchant-2' binary. It's doing the same for non-ASCII characters as one would expect from numbers: the string "one0two" is valid, as "one" and "two" are treated as separate words and "0" is ignored. - [1] https://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-2018.04.16-0.tar.bz2 - [2] https://github.com/Homebrew/homebrew-core/blob/master/Formula/aspell.= rb From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 29 22:22:12 2021 Received: (at 52179) by debbugs.gnu.org; 30 Nov 2021 03:22:12 +0000 Received: from localhost ([127.0.0.1]:39936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrtid-0002Yv-Ld for submit@debbugs.gnu.org; Mon, 29 Nov 2021 22:22:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrtiV-0002YL-K3 for 52179@debbugs.gnu.org; Mon, 29 Nov 2021 22:22:11 -0500 Received: from [2001:470:142:3::e] (port=46510 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrtiQ-0007ui-0D; Mon, 29 Nov 2021 22:21:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lBivYekusyej/apwxLrTkTwu3tlNXKMZJSQPZdgj00U=; b=os/vmdZJMA5o 5t7Bp5zv3r68dqZK/qJXIFMx2hUPphtHmzIXYGQ1bS4ifJrVaOXo4O0WdyxWYLKkhM8rD+vUtwW8t XDt4qG3ddmciGWLdiWjtEIv1GYxaqjrzh9J2MtKTXQh7Ia6SUEQeuKaMVOd40PJq+E3qpsXP4wL0T XxIV1eIdyeKaNh926ytTTCF+lBk88qrr4K8IV2WE5xDUza/tgTT/+CxaSsm9jQ2OsqINuMbd9uxo3 KDxlkkkxIiogdUNG7FxM8A5nr3ziHjQs/zyLEU9l0MohxSxt2rHqKXSSxA56Oyp+biJo019FDZc0H Aqs/8yBJTXx9IkLF2bHaDw==; Received: from [87.69.77.57] (port=4178 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrtiP-0005Ns-Nn; Mon, 29 Nov 2021 22:21:58 -0500 Date: Tue, 30 Nov 2021 05:22:10 +0200 Message-Id: <835ysauy3h.fsf@gnu.org> From: Eli Zaretskii To: Tor Kringeland In-Reply-To: (message from Tor Kringeland on Mon, 29 Nov 2021 21:46:05 +0100) Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' References: <83k0grui9h.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52179 Cc: 52179@debbugs.gnu.org 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: -3.3 (---) > From: Tor Kringeland > Cc: 52179@debbugs.gnu.org > Date: Mon, 29 Nov 2021 21:46:05 +0100 > > >> I'm using Enchant version 2.3.1 and an Emacs 29 build from 24 November > >> on macOS Catalina. > > > > Which dictionary do you use, and what encoding does that dictionary > > require? > > In Emacs, the relevant entry in `ispell-dictionary-alist' is > > ("en" "[[:alpha:]]" "[^[:alpha:]]" "" t nil nil utf-8) > > I installed `aspell' and `enchant' from Homebrew. The installation of > `aspell' included a bunch of dictionaries downloaded from gnu.org. In > particular, the "en" dictionary is downloaded from [1]. It is in some > kind of binary format after installation (see [2] for details). > > The weird part is that it works fine in a command line, and switching > `ispell-program-name' to use `aspell' fixes the issue, so the problem > seems to be somehow in how Emacs interacts with the `enchant-2' binary. > It's doing the same for non-ASCII characters as one would expect from > numbers: the string "one0two" is valid, as "one" and "two" are treated > as separate words and "0" is ignored. I suspect that the problem is with the LC_* and LANG environment variables in the problematic case, which confuse the speller with regards to the language and encoding used. From debbugs-submit-bounces@debbugs.gnu.org Tue May 24 13:29:36 2022 Received: (at 52179) by debbugs.gnu.org; 24 May 2022 17:29:36 +0000 Received: from localhost ([127.0.0.1]:53254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntYLe-0002JN-2J for submit@debbugs.gnu.org; Tue, 24 May 2022 13:29:36 -0400 Received: from mailgw201.it.ntnu.no ([129.241.56.178]:60654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntWn7-00064t-1w for 52179@debbugs.gnu.org; Tue, 24 May 2022 11:49:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1653407386; h=from : to : subject : date : message-id : content-type : mime-version : from; bh=OQwFb9naigTwFZZMe5rpZ9q4OqjEj6ja9oa85P2HXOI=; b=M7H/VDq5KsCuB1rmyLDbx2xlsWgpH5TE4al0nIpbcuFs+WZ4BOBvXWtMl/svXTq6x7tHx abCEo6slf2eeWnHzuSuz2KV6G1QfEU0RZNhfzppzl1EudQ6zP2bKAPwmaj4Edz0ZK8w7baV /aZMBCaTMIXWpCcRL+L+8Q+iQycfWdhFGf5YzZa8mqiD+wq52ewxgU4q1x9Cma1ef+s+bD0 DkxMiXzTx04Kl5/7vWFeTIeqK5EvqNmFCLwLIE4xtDjqFNt5UTeK9C/z9jSb00VPYI8dhJF gUoa3Py02yqt2/q5IiOqAI+KZgP9/2swB4ESnxl8kBgM6mKOu1vDmjp2lb2g== Received: from localhost (localhost [127.0.0.1]) by mailgw201.it.ntnu.no (Postfix) with ESMTP id E1CC7906968 for <52179@debbugs.gnu.org>; Tue, 24 May 2022 17:49:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailgw201.it.ntnu.no X-Spam-Flag: NO X-Spam-Score: -1.801 X-Spam-Level: Authentication-Results: mailgw201.it.ntnu.no (amavisd-new); dkim=pass (1024-bit key) header.d=studntnu.onmicrosoft.com Received: from mailgw201.it.ntnu.no ([127.0.0.1]) by localhost (mailgw201.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WfiBaOdltvv1 for <52179@debbugs.gnu.org>; Tue, 24 May 2022 17:49:46 +0200 (CEST) Received: from NOR01-SV0-obe.outbound.protection.outlook.com (mail-sv0nor01lp20206.outbound.protection.outlook.com [IPv6:2a01:111:f403:7002::206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw201.it.ntnu.no (Postfix) with ESMTPS id 68561905EBF for <52179@debbugs.gnu.org>; Tue, 24 May 2022 17:49:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gPyDQp5qasNr4azFQVCfmNduX86J03/V7vTyhhQSR6ctd15DFuXi+9WQz9a3st/jAAWFZ5J0u1kTkdKd3kYjs/IgC8KfR46UMzAo7Kej/FE6N1b6O/hFuYNv8jBhQLwVZcagGWR0HZeO2ZNPDBD9HJe5pSdNMEXtnw4t97h7MAScptqpNqG1OOmjPdTcG3zu8U9aA8Pgtu4bQqAI/NkM1Sc66IcL+qkg74K5UImnR/cJg+y+mi9EnHt7fAStFu+SNR94K7ZZO2o1fSIy3CQI0q2i6hjhBdXcfiSYrXrtpR8KEEgVB2eNCw2VEvS/epfnqWAD6iRezFIyrwXXCNK4rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OQwFb9naigTwFZZMe5rpZ9q4OqjEj6ja9oa85P2HXOI=; b=C6Rxv8RoBTh2Ml0uXlh5sis4W1aY30Vr/J9JnxWOwpRg/mJsAK9aaAtlEcHxoYxjcIcl2CJDN+AkD0sbyEAoVagaY8/NppdOAAHbqmGiPBjCSyMmvQGzl5hrMXd0+NxUfHgcemk82KAD1Lhb3iKQzB3zCpwjS5UzP+y7XyoRJGEaut/3dxdP0KGwbIbrultvFNzbTJWVbTWLkX+y9+Jomu2VPc/z1EZib24YejsGtWt0IJIEC670YC9SNeP34l1v+dcghJf7fw1zET659chGXeNnY7gFZCiGy0/SJgsxGXi56kAaq6ULHAunyNLu3aznJL/MruqHHtVoU8ka+CXsfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ntnu.no; dmarc=pass action=none header.from=ntnu.no; dkim=pass header.d=ntnu.no; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studntnu.onmicrosoft.com; s=selector2-studntnu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OQwFb9naigTwFZZMe5rpZ9q4OqjEj6ja9oa85P2HXOI=; b=UvnBGDDa54uIig6+iKcyA7QMH7ngY3IV30kOGdjc8Q5hmQQmLm4x4dTc82KeXMt9DG03sXLmEnUTK3CIZKVzgk7kphb9wGwmAqPVlr8ZwyoMa6f+lYYxfaXhPKbAZQTL020+SEXtNC1baTC/E09nH9c+oYkrc5qfDDnqTdnb5ac= Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:11::15) by SV0P279MB0044.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16; Tue, 24 May 2022 15:49:45 +0000 Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa]) by OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa%6]) with mapi id 15.20.5273.023; Tue, 24 May 2022 15:49:45 +0000 From: Tor Kringeland To: "52179@debbugs.gnu.org" <52179@debbugs.gnu.org> Subject: Highlighting a word in `ispell' using `enchant' Thread-Topic: Highlighting a word in `ispell' using `enchant' Thread-Index: AQHYb4PhMvijZ4fCrUWyEJYchL+llg== Date: Tue, 24 May 2022 15:49:45 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: a302ac17-2710-fca0-6240-aa86b158e626 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ntnu.no; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7371d8dc-9fec-4651-4347-08da3d9d0687 x-ms-traffictypediagnostic: SV0P279MB0044:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3hDHG26Ph652+T/M4rlHeGF/DRu2xjVe3cBvyPK0yLmOxkdwov4pSaNKr3BxlWGwUZU6uHPWhLwbt4AjuBypdVKiVWWbGvMTdxz7hhvOIMBZpQo8vxVSwIbbXixRClkPwZ+kn/U/ZcPmNquxaylT1xQwZSFdcAZl/N3DFiz0ixenKFdVMhwk8J17cqKIhapCCN2/iuDoYgtGPwe5++BoAY5YFCpuge5tXPaywOffAeXWK0oAIluO59u6zzVK/n+rtqeaz18IX/Hq1Sk8z6w2Jjz3AGd5YrhQpKGht5svzXmQikY6m8Nk5WSFqxuIHdHp6uhNzzkEKjhFasZFAICEi3J95pYV8kK2rakTJjECpf0731tsjCV8zOGCLPOMwohQvCcHs/sIByc9gKB623VWTXcI+fxRswfZXoCjKSp8Ud9i6opKaNc2ZaYVNB/GD8bn/Gqft4X3fsJgsqstG1VfANPF0aqhuGOramSWtpSO0/QFqunHgEOXLnQGXBCCZYX0FE2hdFDkABJrlcXXVSolMsderyQDpcopXJ+k1FkrzU/H/SHnPS9CH/OIOxou+edSWhTkL6xxfl+8RAwg0kSff2CCh+Dv2zf7kdSlAzVKuj+HDHTG9nsDapdHw3nJmw01arwqE0dE6e8VcsG9/ERqvBQjk/GF4BnQgodUUp4wDTHmlG2ThBQiy32HnfAd5VfzNSfn36ZZAF9y0pw37A7vH+w45px9/zPDN7sOhSyl8q0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OL1P279MB0194.NORP279.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(186003)(76116006)(38070700005)(55016003)(122000001)(38100700002)(7696005)(6506007)(91956017)(66946007)(508600001)(64756008)(6916009)(66556008)(786003)(316002)(66476007)(66446008)(2906002)(71200400001)(26005)(8676002)(44832011)(4744005)(5660300002)(9686003)(52536014)(33656002)(8936002)(86362001)(19627405001)(81973001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?KUuf4fYHJSadv9Kt+jRtWGX5AbBdJztxrlhp9Pmxchy4SMMbJZAQzLMqtI?= =?iso-8859-1?Q?P1V4gkS6lLJWAzBpezzJNcjghHvL1DslcUoTdcDpQE56CsjlToMQ6Gpdlf?= =?iso-8859-1?Q?sFbHupkFe9SK5UzLZcQKRWNzNhOXfNyE2NRTaQZb1dK5qj/UI/Vx8Iw2oi?= =?iso-8859-1?Q?SRVjf1GbGIeNDa0OOCDFgJYTWk+QnT5ZmOe+EzGQtU3Uv6hzv3DVjJFNDx?= =?iso-8859-1?Q?4ofYBqIIvgUlOuKJXeYb1hgczQ1/tks27kswzgtfJRg2r2iglHYsVD8rkD?= =?iso-8859-1?Q?PH0ziv8dmERj/uNfpoqx7e1B0FFz78iVEBEOFPRfKntbWCPFJUf5uruh15?= =?iso-8859-1?Q?7vU405J4l7C4RFA+v85VsAZ4jXjI7bY3xRo9IjvePDiP3rnwiIRFgcf0lV?= =?iso-8859-1?Q?vQtpsp1589z5+SMCNBNbwqNM2x2YQNkPqSRupvcc5vRTI6KYbw2OpcU0RX?= =?iso-8859-1?Q?d0B9pcRhwI0zODQX5MnFWoz6uYtnHyPVzYmCFZTh/jS2Sp0p6e8R96MMcc?= =?iso-8859-1?Q?U6m7bZMy1IkSUYP2JX6pc8FD1oEMst51SM4QbR8orEiU4ICjbc9vbqrzRD?= =?iso-8859-1?Q?LNiWJNKRXjiDTbqLjHT8ViPofvMYYCk3pV4IyTTQZYtOWX6nU2rgNu57qH?= =?iso-8859-1?Q?7Kp2Qrlfen9YPQ07cVxmjYfgCALIv1UZJz92jD3PdEzuAkvvItKz5q6BWI?= =?iso-8859-1?Q?UfwwL0QgyHLoRwWr9IAvBfWNZL0fEwLUCKifsth5shpwcQ/AK/PSGTs1R4?= =?iso-8859-1?Q?1eSQMe3XljAAt5+JvMXLIPcjwJNwpEwrgt7XdOGxJgJPURuMoyTZvHoqEH?= =?iso-8859-1?Q?7kNEgLuZc2hSDjHRDcbROUEcMien0r1ATElRjyFZJ5MRGmj8cvzNbNy5lQ?= =?iso-8859-1?Q?WQP1f20ccwdk1i5yc1Y3jl03y6uDHwwFWeadWoscXQyBqFAK4m37WOpIpe?= =?iso-8859-1?Q?MS35YsaW2tHQmjtxl8TRnnocdclQApwwSVUIejZaTgYm1CqVm2j8Xk0ZKN?= =?iso-8859-1?Q?kI4c6u6ubf2zTOptJRpA3Sy/2ZuMIl1jZ4DirvedzOOz3/fNC6ZcoAh5bX?= =?iso-8859-1?Q?w84X67mfxsNZZHvk1MA4mqGjXT9JE0pYBdm5fCHbVOqVoqkfEYag34BJSY?= =?iso-8859-1?Q?CgSkQIbN3SgVa0y5W9X1cl+cbh5h6BT8+9re5PkgG/iYrFAiiAaB7D2wvG?= =?iso-8859-1?Q?XeKvdo6UnrMYHZz/wvNnmpXbDWN691ue+J7JkYeuyk89IdDLQNwRZLQxhO?= =?iso-8859-1?Q?XzIBD4LN6WeBS4SqpNiXAwGI4ESCggxpec/sVjgNFfwRzR5VAx+onhhBJZ?= =?iso-8859-1?Q?z0A/b09FZgZD6No6N7WMob8s5UJOgttg2PLTJLj4yWD3v1KL+xJAa++2cJ?= =?iso-8859-1?Q?pJTHcCJ+ANh7ARbHtVel54ChyzZkdfmBOYXo5Q775uJHq2cWiNDlQSEZKY?= =?iso-8859-1?Q?RxNmYOQvdvXK+lNAOxw3TtIjAVg3DC6Ft6v5V8a+VN4XT40fbUSLehV0Wy?= =?iso-8859-1?Q?qVSi0lzXHa7zLdYq0rSrhwZJ0CtbTo8XhHCdLIfKYv4c40c27G8KGYz3In?= =?iso-8859-1?Q?p3TTK4E9GrQWgMKNnl7Ib7hzcqZQ91yb6L7bZ0xPttDuJ6M7qsm/11+FLR?= =?iso-8859-1?Q?TY3eq8B1i9AqysGkJ+lnm6dYPDOJXYSR6ffRSDNzmZ5T/2gWMdZuAbA5Cn?= =?iso-8859-1?Q?aHcGaRFQvpwpO86EFcG0bAbRGiaWaoCyOeuqklkAKAnVRWOqeajeeFcPEZ?= =?iso-8859-1?Q?3Qkt9Xw0IhrZ6MkW9w+L/wL92bHziaA1QFtJh435vXpTbo?= Content-Type: multipart/alternative; boundary="_000_OL1P279MB0194988AA408911D0B9BB38C88D79OL1P279MB0194NORP_" MIME-Version: 1.0 X-OriginatorOrg: ntnu.no X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OL1P279MB0194.NORP279.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 7371d8dc-9fec-4651-4347-08da3d9d0687 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 15:49:45.4409 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 09a10672-822f-4467-a5ba-5bb375967c05 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Li4g00oVf97r+pZzVT49dueQotS/xjjZdcGT0i2Lcou46UFVkWl51ojP1CBSY6QHrODkfLkgglQs8tJZ6B/1/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SV0P279MB0044 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52179 X-Mailman-Approved-At: Tue, 24 May 2022 13:29:33 -0400 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 (-) --_000_OL1P279MB0194988AA408911D0B9BB38C88D79OL1P279MB0194NORP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I had another look at it and managed to solve the problem. By default `ispe= ll-dictionary-base-alist' is conservative in setting the regexes for what c= ounts as a word in a given language. I had set `ispell-current-dictionary' = to nil so enchant would choose the dictionary on its own. The nil entry in = the aforementioned alist says a word is a string with the letters A-Z or a-= z and possibly containing '. Changing it to [[:alpha:]] solved the issue. The restrictive regexes are set in `ispell-dictionary-base-alist' but in `i= spell-dictionary-alist' (at least for me) most of the regexes are changed t= o [[:alpha:]]. I'm not sure how that is done but probably there's some good= logic behind it. "british" and "american" (as well as the nil entry) still= have the restrictive regexes, though ... Could we change the nil entry to have the [[:alpha:]] regex? So, if the use= r doesn't explicitly set their dictionary, it works more as expected? --_000_OL1P279MB0194988AA408911D0B9BB38C88D79OL1P279MB0194NORP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I had another look at it and managed to solve the problem. By default `ispe= ll-dictionary-base-alist' is conservative in setting the regexes for what c= ounts as a word in a given language. I had set `ispell-current-dictionary' = to nil so enchant would choose the dictionary on its own. The nil entry in the aforementioned alist says a wo= rd is a string with the letters A-Z or a-z and possibly containing '. Chang= ing it to [[:alpha:]] solved the issue.

The restrictive regexes are set in `ispell-dictionary-base-alist' but in `i= spell-dictionary-alist' (at least for me) most of the regexes are changed t= o [[:alpha:]]. I'm not sure how that is done but probably there's some good= logic behind it. "british" and "american" (as well as the nil entry) still have the restrictive= regexes, though ...

Could we change the nil entry to have the [[:alpha:]] regex? So, if the use= r doesn't explicitly set their dictionary, it works more as expected?
--_000_OL1P279MB0194988AA408911D0B9BB38C88D79OL1P279MB0194NORP_-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 24 15:11:55 2022 Received: (at 52179) by debbugs.gnu.org; 24 May 2022 19:11:55 +0000 Received: from localhost ([127.0.0.1]:53436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntZwh-00050B-2W for submit@debbugs.gnu.org; Tue, 24 May 2022 15:11:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntZwf-0004zz-De for 52179@debbugs.gnu.org; Tue, 24 May 2022 15:11:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntZwP-0008U7-Td; Tue, 24 May 2022 15:11:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YuN+0ZAgW6mp+DpQEXneOdNxP8fL+5fMBtGfSrHwE9c=; b=XAxgyrGr9slf mgcg9eQy7zuNBRKLQCzvoMlo5LWZYLrUdGEtoqIQ5Rt8l7kvAUVx9qLjxHnkS9e+fUF8WI0/0BMfn XRn/WMC/IqTq0Y3NZx0TfJBC+hGUD3SxLX9b2h+VwESt05mksvYKtTWroiAIhFfmgn0vgmr1+Tb0c /d0hV+2VVdzwvlvUUDbtXsXDYGoPyfNa8TCiDf4NDshk0yTcITkZ9n+ZDitfbMQ6JojD4lW5V3P2Q PNDayVmyUiKYl31JzlRMosit5e0mWsuhE57Uvw1Phel/DBwuC9zjOdda3eY8VGOhGuuTCVqkKVYPF uVvHw9ufQbgaw//oi4OZJw==; Received: from [87.69.77.57] (port=2479 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntZwO-0002Ov-Rk; Tue, 24 May 2022 15:11:37 -0400 Date: Tue, 24 May 2022 22:11:26 +0300 Message-Id: <83y1yq4ug1.fsf@gnu.org> From: Eli Zaretskii To: Tor Kringeland In-Reply-To: (message from Tor Kringeland on Tue, 24 May 2022 15:49:45 +0000) Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52179 Cc: 52179@debbugs.gnu.org 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: -3.3 (---) > From: Tor Kringeland > Date: Tue, 24 May 2022 15:49:45 +0000 > > Could we change the nil entry to have the [[:alpha:]] regex? So, if the user doesn't explicitly set their dictionary, > it works more as expected? Aren't we already doing that? See ispell-find-enchant-dictionaries and similar functions for Aspell and Hunspell. I don't think we can make that the default because Ispell doesn't support the full [:alpha:] character class, it only supports a single unibyte encoding. Or am I missing something? From debbugs-submit-bounces@debbugs.gnu.org Tue May 24 15:29:47 2022 Received: (at 52179) by debbugs.gnu.org; 24 May 2022 19:29:47 +0000 Received: from localhost ([127.0.0.1]:53483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaDy-0005SW-Pl for submit@debbugs.gnu.org; Tue, 24 May 2022 15:29:47 -0400 Received: from mailgw401.it.ntnu.no ([129.241.56.182]:57170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaCH-0005PY-KS for 52179@debbugs.gnu.org; Tue, 24 May 2022 15:28:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1653420479; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version : from; bh=T2UwEGhRxsIiL13ZDPRvgu/JZp+GSf/Y2200gHTs99I=; b=lAnnt3uFZJaFoPE+WoISKDcqIqmOFG/Z1KMJDnAGwIGLy0iEa9RBFwq8PkJ0GxbwGuci0 25umN0GkqU7qGIY/THbvrFz0wWHzije1aOCWPBS3nCUi7ULNw+XlUljlr3ZvIcGFAMLydYU uNM4zb716lnJETiQxpZIHz/nUh6xfwZmOZ26EimeZI2KL4JnaaP/m4VOJOy9Nsx469+EiwF RKv64OuI3LP27m/YH5uST9tWhu/NojhKQGTf6Y8EfQTlz5Slj4IDUTA1aE5dd94HdmJTa6t fmgPT5KES+GSkUJoQg1hEXMrVrs0UJqZfoZM7J+PHrA+uGd/XfdEN7sYtaNw== Received: from localhost (localhost [127.0.0.1]) by mailgw401.it.ntnu.no (Postfix) with ESMTP id DBA78644008; Tue, 24 May 2022 21:27:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailgw401.it.ntnu.no X-Spam-Flag: NO X-Spam-Score: -1.802 X-Spam-Level: Authentication-Results: mailgw401.it.ntnu.no (amavisd-new); dkim=pass (1024-bit key) header.d=studntnu.onmicrosoft.com Received: from mailgw401.it.ntnu.no ([127.0.0.1]) by localhost (mailgw401.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oyg7WqvOaguO; Tue, 24 May 2022 21:27:59 +0200 (CEST) Received: from NOR01-OL1-obe.outbound.protection.outlook.com (mail-ol1nor01lp20204.outbound.protection.outlook.com [IPv6:2a01:111:f400:ff0b::204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw401.it.ntnu.no (Postfix) with ESMTPS id 830D5643D56; Tue, 24 May 2022 21:27:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EMBFi5nINk1YG98XzwgW3dCgXGGHuEtkMOABMaTVWXgQEFBn2Au7NnMHmvK+Qu7heRo+2TfhHk4JJQ15M9lF4nQ0oCptnem286mSuM68+q0Kho+/mX3jQ9kY8+4XSt4lDyJ5HA3722h4FX6J1g7kD6e69Mj9srYLFOQ0C6M4ZgcCljxPTnljGTRCyYPXll0Th9sQVqNh7rgyFLf61232NHI2qRx5CiZT6TlhYVHIk8keBF6suutxdBULR1efDoncpML7Um85KIfwtXXgszowWUEgyslCsGk+PeajTj3rGUb1KEFEKa8NNHz2A4QN6p1p+FJQ7+RrXnWmO4sqf+gmHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=T2UwEGhRxsIiL13ZDPRvgu/JZp+GSf/Y2200gHTs99I=; b=gsEn1A5D56NtMgfctTQI0vg6P1M8lOuIb6gAMSCHoA1T6trb0ZWF77pk91ALmYOQaBl914okWYrhADf51TV89QHPZ69mDOJZMedPfmmaOfB7ZobckmI2Vw5b91R7rAfUgl3DZlS2+BYVO9R1DhZ48qr3VNtW9lTp6fsP19tmH3spucEiw1yiF+vtT48x82g04G24OyVte2fXdWUiwRIf02WNiKWFpMiDD5cXP6KIQtZzNS8mRUJ59CvtgUwNDlDB4OnrU5Alvbj4NnwJbC7XYh4oLlKlHKMNpOBVhnT0P+9ft03lEpMSePq/g93yKx77QR3lnBf3eMbjaVpXg+9rTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ntnu.no; dmarc=pass action=none header.from=ntnu.no; dkim=pass header.d=ntnu.no; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studntnu.onmicrosoft.com; s=selector2-studntnu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T2UwEGhRxsIiL13ZDPRvgu/JZp+GSf/Y2200gHTs99I=; b=pvpiLwsgyQPQKWAGgSqFSR7/Y7Yi4M9h3tDyd6hCeLcz52vy0n16O4gMWxK7pJNbaLYwmU9wj4EF+6RJj8qahnt0yhjODIpWKoq5J3Dac94KydTb9f/NkbZ9PCfbNURVIAcbOrslUMWu93UzLKGZjlWlkAvxz0XU/ncAhmNJRrM= Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM (10.141.225.207) by SVAP279MB0062.NORP279.PROD.OUTLOOK.COM (20.180.153.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Tue, 24 May 2022 19:27:58 +0000 Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa]) by OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa%6]) with mapi id 15.20.5273.023; Tue, 24 May 2022 19:27:58 +0000 From: Tor Kringeland To: Eli Zaretskii Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' Thread-Topic: bug#52179: Highlighting a word in `ispell' using `enchant' Thread-Index: AQHYb4PhMvijZ4fCrUWyEJYchL+llq0uZUTkgAACkXE= Date: Tue, 24 May 2022 19:27:58 +0000 Message-ID: References: <83y1yq4ug1.fsf@gnu.org> In-Reply-To: <83y1yq4ug1.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: f62c594e-e78c-9483-d302-308dd1229eb2 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ntnu.no; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f30062ed-871f-407d-3b13-08da3dbb82b3 x-ms-traffictypediagnostic: SVAP279MB0062:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vNbPUWpDUJZ6ygjywEw59e9C7KLIAeyAw7xPwSlGGrl1YTQ8Z9uBisda8XmfJtkhCaODiIhO0nvdbpMhX4FIG6mFePnVJytYDY5DVkiSVrw4z/36V8DfUh4bWvlqqK/+9tbGS6F40uC6rCEvAznV8gpkIJTOGHBtSwlWuXFzZ/SFDw4dEADiqobtExNflbHWJny8qt6CPiTmXFA3gzr9OjZxtXgouJ645p4P6wRkOQHOvwnluLFcyKhDAJEVnKf1TVCzmq12zdY1GjEPqqN8Ed1FNXjKalMnNujIIRQGomxzDUqQ3EPGKBJfL0vbGpncuApWfhoXSn3DMa/OCBnOfXcL7scecKMMcyG4kVyXA6sUoO4jwiyKhj/eODyTcxyjsLNWfs3aQ6jG5CLbUSFvVAUCQWyj+HQ+eg4cmt0JRzFHXFbe+JZcXKv7eCYy/6ttATjFiLer9nCAak3YVr/Mpq1LEB8iY6nR4Ow2fLJZOaTHoRDvUMoXItoEevh2yfgkGcem4shw4NAXTvwsSBIj/q4TR+GC/pRTCUd7IiPcLz4iwsPMSbfBzF8gR4HCKquapekDVi4CC01xstLvcGlpG76VFsGCimxcMJ0HMf06Z+uB6SLGvvvYM2IefrjoQ+6PALl+PywRdhZv1SUXu7GcgHFdwvAnLgo4enGEKJ8hb4ksdw+Ifg6wzHgKHZy9fv7IhOmAUhD3wKxuOcVBh/NLeC4ptzbyBEJ+hw0BrYo3KH4= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OL1P279MB0194.NORP279.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(9686003)(26005)(786003)(316002)(52536014)(6506007)(7696005)(33656002)(71200400001)(6916009)(186003)(86362001)(8936002)(2906002)(122000001)(4744005)(55016003)(38070700005)(508600001)(38100700002)(5660300002)(76116006)(66946007)(91956017)(66556008)(66476007)(66446008)(64756008)(8676002)(4326008)(44832011)(81973001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?vhmOScm1gPgOgCHEVBO2hQY2nXmNMUX2OcVGekbYncoXoqAft233mfw5gK?= =?iso-8859-1?Q?/rpTb790bIlV+t26IqiDIxZk0K5YjkkWGtaJ3Mx3mQ//IxKQd2Q1IC27Zt?= =?iso-8859-1?Q?1IDXrb2ybZ4ZwSIxrWScwBfoLEBqo1cYbZBk4YhXnEenNnLHGTyiiWYRm5?= =?iso-8859-1?Q?dIpZiYwxCR61RM4YGDw1LjwFIrHVNeuC838nQGye+HGUdDn98mn6/Y9bBV?= =?iso-8859-1?Q?NtDvgRPJTRT0/ZolAiBQo/TyGLcWzm+kp/LjY6MWYblU+wuJSYEj6rbLOd?= =?iso-8859-1?Q?MxycFJIaZl7iPlfzc5gwm4FaLnZyiLUPDvow7ZuWfPD9qHYiqBmQwMBFfi?= =?iso-8859-1?Q?0DqiQree8l/m9cGUKYvOKK2PdfAWxXXbB4V0c57Zr+y+QOBvUBaRbjdWSB?= =?iso-8859-1?Q?TADAhxevnO1oWfMY4UFIDpkQhBIRFnRhpEecv4E783KkO/sjaL2A8f36c8?= =?iso-8859-1?Q?rSQUdwQ0ScCm6UPrmn3dzSTGjwGmFLzaDsdaWF/l8bCgq6LPWRE11HRovP?= =?iso-8859-1?Q?84u3zBlzwsk4RA5PQrdKxYCYw7CQdFAEIIExxmsoPx4Nm49pAb70UMnlH2?= =?iso-8859-1?Q?OdtCtlfi1nzjLoE8jV32RB9fcM5xztE9tGLepg2torursYPx25zmKY3yDR?= =?iso-8859-1?Q?3BFH9Qj8W4HE7BjfvbUOaBKkI8O4YI9dtLR9H9KbXUMMSrjyj3gg9N8a3X?= =?iso-8859-1?Q?8k/s6MVV8pwTKqteWzW7ag7v9gujzuLR80/Oyau26Die6HTxXdTSSh0Gro?= =?iso-8859-1?Q?T9XnEMghP+YyXeuNjeudzcp+jep8+JOPe4bCyxpS26qZsfvOJPKqok9cKu?= =?iso-8859-1?Q?2vTDcpR8APOvd82EzsFZhhbf6IFtdVYg7aCc93XItD43n1+4+PcwkuC8WW?= =?iso-8859-1?Q?8/e+GyeKGji0b8RYQ4VaCN6chov9GMwNa4PeDvFWQ2/v0SP1BuK3/3Z/ds?= =?iso-8859-1?Q?/2S82JfZ5v5H7DJlcWYkBjIOaspYYmzs9IjLYChGZDhJKv0f/+8RMB0+EN?= =?iso-8859-1?Q?0LlLC5mYm+2r+jgZbpigaCmr7nIAwT2bMcOkb+I6EMIwfET/HbI6Y9yCqP?= =?iso-8859-1?Q?BfM/wfTVVii/L3OtLSUnsxF3fx86QY7G5W91viDTv5vYlgPZ1Mr9ghOPOy?= =?iso-8859-1?Q?5Amz2cq9kr+C4SFSpB3DnawTdB6qN4rj9XB/YI9Rn4t2oGJ24iUkV9JaWC?= =?iso-8859-1?Q?fw2eXXEQtq9eW2OocaQSBJUzAfc6SX5wL6vQk416F1w/6Od4z9mmiJbunZ?= =?iso-8859-1?Q?6clTaQGzTA84YnqD3stqUEtkLjWyBw4ibMuocHNWZQb16tiGqXxgePCk5T?= =?iso-8859-1?Q?ni/NYJ0FtlQ6filb8iV65J4Pz6WBEgoYyEmQI1x3dgrNHxNfqeQWNr9l1i?= =?iso-8859-1?Q?NAwHOHv7Zt+voLvDMeUPhD2vrfR1OkJUA4NXlWbv9tHhVCBOE6yjbp1tv4?= =?iso-8859-1?Q?jSXsnqN6Ct8wzloC+UXd25AVUNMpK3R70DAAXGeDqij1/IWLh6DUQvaHc5?= =?iso-8859-1?Q?UtGeKP0fpR3VWhLn5tWiUnyHIT5KZjGpTbsAKeg22wh4IoJovnCiaBeuKY?= =?iso-8859-1?Q?V1G8tTUQXd6yzErQztc1JHyAW5sU5bxGxfSWEhhS2CIUTGnecFNJ+LWWcW?= =?iso-8859-1?Q?nJdLdapGF8akRhLjB60FRKBu53KVvp04ycgEUncAbEID+MN++K7MVbB515?= =?iso-8859-1?Q?NfK9v87bSL+ku00HkFY6dbE87gmY3JhqPTMNDObdUe+llTb9IRpqTu8UTJ?= =?iso-8859-1?Q?Q2FvEP5mT9b7ukXLMDe7Wg5mxpzdYloqpXOq7ax801SM8V?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ntnu.no X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OL1P279MB0194.NORP279.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: f30062ed-871f-407d-3b13-08da3dbb82b3 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 19:27:58.7153 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 09a10672-822f-4467-a5ba-5bb375967c05 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DND+gqnBy4CFtwOTWjDzOXxAPdg8RxkLURhAw2xoGiFg4cMxNovyKud5aK4n2ianOVGDGbBWkl7qoJl4snBh0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SVAP279MB0062 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52179 X-Mailman-Approved-At: Tue, 24 May 2022 15:29:46 -0400 Cc: "52179@debbugs.gnu.org" <52179@debbugs.gnu.org> 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 (-) Aspell works for me, but enchant doesn't. When I change `ispell-program-nam= e' to "aspell" ispell starts recognizing full words.=0A= =0A= Looking into the functions you mentioned, it seems like `ispell-find-aspell= -dictionaries' explicitly adds an entry for nil, while `ispell-find-enchant= -dictionaries' doesn't. This is what causes the bug for me since I have set= `ispell-dictionary' to nil/haven't changed it so the resulting regex recog= nizing words is too strict for my use.=0A= =0A= Might there be a reason why `ispell-find-enchant-dictionaries' doesn't set = a nil entry? For sure I would think it could handle whatever input aspell c= an.= From debbugs-submit-bounces@debbugs.gnu.org Tue May 24 15:37:07 2022 Received: (at 52179) by debbugs.gnu.org; 24 May 2022 19:37:07 +0000 Received: from localhost ([127.0.0.1]:53498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaKz-0005f8-VR for submit@debbugs.gnu.org; Tue, 24 May 2022 15:37:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaKk-0005ei-6C for 52179@debbugs.gnu.org; Tue, 24 May 2022 15:37:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntaKd-0005eJ-Vr; Tue, 24 May 2022 15:36:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=V5gV3dH+1fi5j4OxB8S79/kLWsplyDQY+TPbD2QgJqo=; b=k1FNSlEFEML7 cPa3RlmBwX4Oh2r1CHp1nUtY709fyBGMCk0YOFVCPq/xzz391oidVpHkc0NqwGN1eqzr+bLNHcmVt DrkARETCOE0xNMPQ8XE/2MFZXGZEksxoCiFhgXKZTtIIxQDnJhfNLSax0zRBfm/ldkXEP0IDZBdyU VFOpe0MBQUnfkhqtXMSVkAWtYRxROKd9I9SSYb2D0NMJN8lCyh6T3DatPE8WJ3hSn1jCu2uebe9Zl DVFco1YpdVHCCGpOUXZmtjg5R8ZT2ykN3pMAQ+fZFXsY2E3KvCCg3KdyAZoZd63Fi+rG+YM6EZ6QW Yzta/4m7dzf5+FRujPxA9w==; Received: from [87.69.77.57] (port=4288 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntaKc-0003dL-RN; Tue, 24 May 2022 15:36:39 -0400 Date: Tue, 24 May 2022 22:36:27 +0300 Message-Id: <83v8tu4tac.fsf@gnu.org> From: Eli Zaretskii To: Tor Kringeland , Reuben Thomas In-Reply-To: (message from Tor Kringeland on Tue, 24 May 2022 19:27:58 +0000) Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' References: <83y1yq4ug1.fsf@gnu.org> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52179 Cc: 52179@debbugs.gnu.org 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: -3.3 (---) > From: Tor Kringeland > CC: "52179@debbugs.gnu.org" <52179@debbugs.gnu.org> > Date: Tue, 24 May 2022 19:27:58 +0000 > > Aspell works for me, but enchant doesn't. When I change `ispell-program-name' to "aspell" ispell starts recognizing full words. > > Looking into the functions you mentioned, it seems like `ispell-find-aspell-dictionaries' explicitly adds an entry for nil, while `ispell-find-enchant-dictionaries' doesn't. This is what causes the bug for me since I have set `ispell-dictionary' to nil/haven't changed it so the resulting regex recognizing words is too strict for my use. Then maybe ispell-find-enchant-dictionaries should be improved? > Might there be a reason why `ispell-find-enchant-dictionaries' doesn't set a nil entry? For sure I would think it could handle whatever input aspell can. I don't know. CC'ing Reuben, who might know better. From debbugs-submit-bounces@debbugs.gnu.org Tue May 24 17:34:34 2022 Received: (at 52179) by debbugs.gnu.org; 24 May 2022 21:34:34 +0000 Received: from localhost ([127.0.0.1]:53721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntcAj-0002Xt-MA for submit@debbugs.gnu.org; Tue, 24 May 2022 17:34:34 -0400 Received: from mail-pg1-f179.google.com ([209.85.215.179]:33300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntcAh-0002Xf-En for 52179@debbugs.gnu.org; Tue, 24 May 2022 17:34:32 -0400 Received: by mail-pg1-f179.google.com with SMTP id r71so17373538pgr.0 for <52179@debbugs.gnu.org>; Tue, 24 May 2022 14:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vp1wFbjRya1R1SiZg5Y6MHupQxKuP/X5K4hpFPSp3iY=; b=jM6stenWNTky9ueBVMXN5M5B+2dwgtwNgP8kGWhwnfD9Mt1KOWLFAu5t66c5tvOeFG lDs97qANcHNgAUvebzb0qts6NJa5pq9VwdqdpQH5iHxhaBAS/Qm9ttxAW96LMQnTzV1H 69PxT+BP1u9BeYx+o2Kr0rVAwiT5vyrpoJQGc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vp1wFbjRya1R1SiZg5Y6MHupQxKuP/X5K4hpFPSp3iY=; b=fqAVLnOdf2XSlixyjeqhwTN+V0i9tw06a9nXjchpb0yITMnnV9HLbw5d/lrCnVvaKJ /yQVetOxVOoe6lIFO2dQkmEcCb14tRc+sG1uzwgxHnPLvwb0707cPL5d2klXaPOTAvwq k6MMIzZzk/KyTPCYZqhl/1YQnUagWsBIw/oV+g6e0pSXJhDFBilytD2EegOydP5cSDn+ 8kgClawS7htACx9Wi3OiUQmdHODGK4sUFdzvbqhHqOZXAhsba5Xm3hSYiIRFmLG8Jgbm 3J3c1SwmkSZcS/DevRxXlqnHBL+G5YnJUxCSHkwXOafqsa/YmXKJ9exchK1nZoj5Ux34 lrxw== X-Gm-Message-State: AOAM530HFOvlf/T9aotwWIfXAhjYY+1LOhTC977g6GvXOoLI+2Apb5C/ eSRKimQzIwSadSNGualz0v3KYg1kJ2OaughYFc/b3Q== X-Google-Smtp-Source: ABdhPJyepyO6XYj08bz7u+2GkJpvnEoFqQLbatGM2B7R7w1qLz2N49JBD7uzu3kQvr19YKC4Bq+gIZg55yoTTAwnVRg= X-Received: by 2002:a05:6a00:1307:b0:50d:b02e:11df with SMTP id j7-20020a056a00130700b0050db02e11dfmr30413163pfu.4.1653428065443; Tue, 24 May 2022 14:34:25 -0700 (PDT) MIME-Version: 1.0 References: <83y1yq4ug1.fsf@gnu.org> <83v8tu4tac.fsf@gnu.org> In-Reply-To: <83v8tu4tac.fsf@gnu.org> From: Reuben Thomas Date: Tue, 24 May 2022 22:34:14 +0100 Message-ID: Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' To: Eli Zaretskii Content-Type: multipart/alternative; boundary="00000000000080c55605dfc8b843" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52179 Cc: Tor Kringeland , 52179@debbugs.gnu.org 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 (-) --00000000000080c55605dfc8b843 Content-Type: text/plain; charset="UTF-8" On Tue, 24 May 2022 at 20:36, Eli Zaretskii wrote: > > From: Tor Kringeland > > CC: "52179@debbugs.gnu.org" <52179@debbugs.gnu.org> > > Date: Tue, 24 May 2022 19:27:58 +0000 > > > > Aspell works for me, but enchant doesn't. When I change > `ispell-program-name' to "aspell" ispell starts recognizing full words. > > > > Looking into the functions you mentioned, it seems like > `ispell-find-aspell-dictionaries' explicitly adds an entry for nil, while > `ispell-find-enchant-dictionaries' doesn't. This is what causes the bug for > me since I have set `ispell-dictionary' to nil/haven't changed it so the > resulting regex recognizing words is too strict for my use. > > Then maybe ispell-find-enchant-dictionaries should be improved? > > > Might there be a reason why `ispell-find-enchant-dictionaries' doesn't > set a nil entry? For sure I would think it could handle whatever input > aspell can. > > I don't know. CC'ing Reuben, who might know better. > I had a look at the code. I think what is happening is that the default dictionary in ispell-dictionary-base-alist uses only [A-Za-z] for word chars and [^A-Za-z] for non-word chars. The assumption is that this works for ispell (the program). Then, [[:alpha:]] and [^[:alpha:]] are used in the default 'nil'-keyed entry for aspell. As far as I can tell from the rather hairy hunspell code, it too does not set a default entry. Since ispell is the only spellchecker Emacs supports that can't cope with [[:alpha:]], it would seem more sensible to have a default (nil-keyed) setting in ispell-dictionary-base-alist, and to overwrite the default with [A-Za-z] only if the spellchecker is really ispell. This way, duplicate code can be removed and future spellcheckers will not need to rediscover this problem. (I never came across this problem because I have customized ispell-local-dictionary-alist with my own nil entry!) -- https://rrt.sc3d.org --00000000000080c55605dfc8b843 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 24 May 2022 at= 20:36, Eli Zaretskii <eliz@gnu.org&= gt; wrote:
> From: Tor Kringeland <tor.kringeland@ntnu.no> > CC: "5= 2179@debbugs.gnu.org" <52179@debbugs.gnu.org>
> Date: Tue, 24 May 2022 19:27:58 +0000
>
> Aspell works for me, but enchant doesn't. When I change `ispell-pr= ogram-name' to "aspell" ispell starts recognizing full words.=
>
> Looking into the functions you mentioned, it seems like `ispell-find-a= spell-dictionaries' explicitly adds an entry for nil, while `ispell-fin= d-enchant-dictionaries' doesn't. This is what causes the bug for me= since I have set `ispell-dictionary' to nil/haven't changed it so = the resulting regex recognizing words is too strict for my use.

Then maybe ispell-find-enchant-dictionaries should be improved?

> Might there be a reason why `ispell-find-enchant-dictionaries' doe= sn't set a nil entry? For sure I would think it could handle whatever i= nput aspell can.

I don't know.=C2=A0 CC'ing Reuben, who might know better.

I had a look a= t the code. I think what is happening is that the default dictionary in isp= ell-dictionary-base-alist uses only [A-Za-z] for word chars and [^A-Za-z] f= or non-word chars. The assumption is that this works for ispell (the progra= m). Then, [[:alpha:]] and [^[:alpha:]] are used in the default 'nil'= ;-keyed entry for aspell. As far as I can tell from the rather hairy hunspe= ll code, it too does not set a default entry.

<= /div>
Since ispell is the only spellchecker Emacs support= s that can't cope with [[:alpha:]], it would seem more sensible to have= a default (nil-keyed) setting in ispell-dictionary-base-alist, and to over= write the default with [A-Za-z] only if the spellchecker is really ispell.<= /div>

This way, duplicate co= de can be removed and future spellcheckers will not need to rediscover this= problem.

(I never cam= e across this problem because I have customized ispell-local-dictionary-ali= st with my own nil entry!)

--
--00000000000080c55605dfc8b843-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 24 22:29:09 2022 Received: (at 52179) by debbugs.gnu.org; 25 May 2022 02:29:09 +0000 Received: from localhost ([127.0.0.1]:53965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntglo-0003jj-TN for submit@debbugs.gnu.org; Tue, 24 May 2022 22:29:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntglj-0003j9-T7 for 52179@debbugs.gnu.org; Tue, 24 May 2022 22:29:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntgld-0000NG-RQ; Tue, 24 May 2022 22:28:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9GAVOJDzhKEoRp7YKejuQXFEwLUcHYXzwlmYvkTOXqk=; b=I/YPR5JL14Wo BcRh9dYpYgvUJyKFbClPuL4j+hrgsBAVQzIcxCuWgJdMXb/6zAxI3dllc4rg44oMUOwTJ69L170Zc HsSdRAYu0+QFrGS8eiEmTAR7VmWtiEdbjft1jr9+w6W4WELJdxKVYO5iwza7F/Lr33D5vsv6Hus9I kiNOGBKnPs/IjhkJmVoVbTq8QROUNhbVoNTHpfil2XdbFJhrNgLbQgPcTR0NdHFxJ6kdrMCEVkne3 XBCZQyFcnkKZGcoLtNRINY0SYRr+0kPRr/pFMkkd3QvwcvY9ETajBfuY+FqexSMavykAuOcGXZg40 O/7vJmhJRuK74B+zh7knXA==; Received: from [87.69.77.57] (port=1543 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntgld-0001Me-AL; Tue, 24 May 2022 22:28:57 -0400 Date: Wed, 25 May 2022 05:28:46 +0300 Message-Id: <83tu9e4a75.fsf@gnu.org> From: Eli Zaretskii To: Reuben Thomas In-Reply-To: (message from Reuben Thomas on Tue, 24 May 2022 22:34:14 +0100) Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' References: <83y1yq4ug1.fsf@gnu.org> <83v8tu4tac.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52179 Cc: tor.kringeland@ntnu.no, 52179@debbugs.gnu.org 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: -3.3 (---) > From: Reuben Thomas > Date: Tue, 24 May 2022 22:34:14 +0100 > Cc: Tor Kringeland , 52179@debbugs.gnu.org > > Since ispell is the only spellchecker Emacs supports that can't cope with [[:alpha:]], it would seem more > sensible to have a default (nil-keyed) setting in ispell-dictionary-base-alist, and to overwrite the default with > [A-Za-z] only if the spellchecker is really ispell. > > This way, duplicate code can be removed and future spellcheckers will not need to rediscover this problem. That might be okay, but how does it help us get the Enchant support in ispell.el DTRT? We'd still need to detect when Ispell is used as the back-end speller, no? The issue here is that the current code already "patches" the nil case to use [:alpha:] when Aspell or Hunspell are the spell-checker, and we need to do that for Enchant. If you are saying that Enchant doesn't need to worry about the Ispell case, we could just modify ispell-find-enchant-dictionaries to always "patch" the nil entry to use [:alpha:], and leave the rest of the code, which already works, intact. If Enchant does need to cater to Ispell, we need a more complex change, but again it's local th the Enchant support code. From debbugs-submit-bounces@debbugs.gnu.org Wed May 25 03:40:09 2022 Received: (at 52179) by debbugs.gnu.org; 25 May 2022 07:40:09 +0000 Received: from localhost ([127.0.0.1]:54227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntlcn-0003QA-C3 for submit@debbugs.gnu.org; Wed, 25 May 2022 03:40:09 -0400 Received: from mail-pj1-f54.google.com ([209.85.216.54]:43564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntlck-0003Pr-T2 for 52179@debbugs.gnu.org; Wed, 25 May 2022 03:40:07 -0400 Received: by mail-pj1-f54.google.com with SMTP id l7-20020a17090aaa8700b001dd1a5b9965so4307486pjq.2 for <52179@debbugs.gnu.org>; Wed, 25 May 2022 00:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DVbpSaYiHEjdw/jvFUus8elEhqdKRiUqU0iyvHRVrKI=; b=loimKZz472HK0CB4VLYXLDBMQ/rXRFhhedVikh3zvyisAgd2nIDVdmB8OI8/iX1bxq RjmyKBP1/Lt4Fg5WmkAOK+9PQKwL29J8lBSnO1IBW7LlIgErX5syiT5S5naMDGV4Kc5t b1Fv61oVLo+LUtdEA8dxSHCTDRZ9t3jEyVyI8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DVbpSaYiHEjdw/jvFUus8elEhqdKRiUqU0iyvHRVrKI=; b=k5C8caNj2teQ7fUt++LcZ/tyipn1Iv5Pe5fUbHbj7t0SFCDzk9lryvoi+at8V8fy3b LLNe+NDowgL8As0kxTajrS8H99t3RUei+LNBtpmCXZuEnLVifRPoJxSNMjmImV043lbm Nb3j6L0PD68H1EJDo06enlYsOLYZ7vDyDvspgXbpuF//tXlLYf88yJfFzZjIkw2wGOMS Bmo85bdZUWCekeOp8uo+7sWDvXlbFAqzwtr9/8F2DRAvmod94J9UjWWV4q+eF4MCTLqT jLMc8p8ukelCLe6qn60Xjh2+TFTqgqGLk1wSPcwcsSysPJMrmJ6xhYCU4AQHJ8q3FbaI oEuw== X-Gm-Message-State: AOAM533+a4lrz4D+m3xv30MrzrUlqbQ1cpXlgQEv1/N6N3SgkG+YBpay qKC369IJRwd5oYtD6Qt8AaFa7Jhf27kKpVA3/Xjhvw== X-Google-Smtp-Source: ABdhPJyVCTA/+YWqtRRMLiMs8J5RZgt1uqyzJ1CJLymZi2RtEoOJ4TMl9VIRwtaFrZAtzr7//f9IRAyff5wofJFXEkg= X-Received: by 2002:a17:902:e54c:b0:162:5c8e:2acd with SMTP id n12-20020a170902e54c00b001625c8e2acdmr4721274plf.30.1653464400943; Wed, 25 May 2022 00:40:00 -0700 (PDT) MIME-Version: 1.0 References: <83y1yq4ug1.fsf@gnu.org> <83v8tu4tac.fsf@gnu.org> <83tu9e4a75.fsf@gnu.org> In-Reply-To: <83tu9e4a75.fsf@gnu.org> From: Reuben Thomas Date: Wed, 25 May 2022 08:39:49 +0100 Message-ID: Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000447a5a05dfd12eef" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52179 Cc: tor.kringeland@ntnu.no, 52179@debbugs.gnu.org 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 (-) --000000000000447a5a05dfd12eef Content-Type: text/plain; charset="UTF-8" On Wed, 25 May 2022 at 03:28, Eli Zaretskii wrote: > > From: Reuben Thomas > > Date: Tue, 24 May 2022 22:34:14 +0100 > > Cc: Tor Kringeland , 52179@debbugs.gnu.org > > > > Since ispell is the only spellchecker Emacs supports that can't cope > with [[:alpha:]], it would seem more > > sensible to have a default (nil-keyed) setting in > ispell-dictionary-base-alist, and to overwrite the default with > > [A-Za-z] only if the spellchecker is really ispell. > > > > This way, duplicate code can be removed and future spellcheckers will > not need to rediscover this problem. > > That might be okay, but how does it help us get the Enchant support in > ispell.el DTRT? We'd still need to detect when Ispell is used as the > back-end speller, no? > Versions of Enchant compatible with Emacs do not support Ispell as the back-end speller (I removed this support in version 2 of Enchant). -- https://rrt.sc3d.org --000000000000447a5a05dfd12eef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, 25 May 2022 at= 03:28, Eli Zaretskii <eliz@gnu.org&= gt; wrote:
> From: Reuben Thomas <rrt@sc3d.org>
> Date: Tue, 24 May 2022 22:34:14 +0100
> Cc: Tor Kringeland <tor.kringeland@ntnu.no>, 52179@debbugs.gnu.org
>
> Since ispell is the only spellchecker Emacs supports that can't co= pe with [[:alpha:]], it would seem more
> sensible to have a default (nil-keyed) setting in ispell-dictionary-ba= se-alist, and to overwrite the default with
> [A-Za-z] only if the spellchecker is really ispell.
>
> This way, duplicate code can be removed and future spellcheckers will = not need to rediscover this problem.

That might be okay, but how does it help us get the Enchant support in
ispell.el DTRT?=C2=A0 We'd still need to detect when Ispell is used as = the
back-end speller, no?

Versions of Enchant compatible with Emacs do not support Ispell as the ba= ck-end speller (I removed this support in version 2 of Enchant).
<= /div>

--
=
--000000000000447a5a05dfd12eef-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 25 09:23:20 2022 Received: (at 52179) by debbugs.gnu.org; 25 May 2022 13:23:20 +0000 Received: from localhost ([127.0.0.1]:54640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntqyt-0004bk-U5 for submit@debbugs.gnu.org; Wed, 25 May 2022 09:23:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntqyq-0004bS-Ah for 52179@debbugs.gnu.org; Wed, 25 May 2022 09:23:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqyk-0008L4-Bv; Wed, 25 May 2022 09:23:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0dnh/ms4bhuBzLJ5PNbdnlMnMnkAjG9FTwNE3+mFJ+o=; b=Zy2zO9pXItjo CqyR70KJrZe2WE5U/berLQs2QvN3kSyAMr2CBnwa/qqjjW7yR8o11/Xf8idwx9vlkA7aAutulQ645 kYFlvXGmRNFeeNNqEfnKNroYJq0fQIgilLO8zM26KngPhM6OS4N3SwY4ZLFrGL+dV3J4MpqWibRAj Cfq36KRW123tBZ+c+4iUAojFuQ0Y4C4rleJB9BM5cnQsVWQlYqZIRTzZb8YyIfqSgo4X5q6mpp9VD g0jplZPLD2CoKFvaoo1xsLbugRI68qWIryDkpn40iSZHtD3SLLSkf2xPdVK7YMd+AxIoX3VK23v3n 3E4o2E6iB83LGE4fNvgtxA==; Received: from [87.69.77.57] (port=1600 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqyj-0003F2-Rs; Wed, 25 May 2022 09:23:10 -0400 Date: Wed, 25 May 2022 16:23:01 +0300 Message-Id: <83mtf54uh6.fsf@gnu.org> From: Eli Zaretskii To: Reuben Thomas In-Reply-To: (message from Reuben Thomas on Wed, 25 May 2022 08:39:49 +0100) Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' References: <83y1yq4ug1.fsf@gnu.org> <83v8tu4tac.fsf@gnu.org> <83tu9e4a75.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52179 Cc: tor.kringeland@ntnu.no, 52179@debbugs.gnu.org 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: -3.3 (---) > From: Reuben Thomas > Date: Wed, 25 May 2022 08:39:49 +0100 > Cc: tor.kringeland@ntnu.no, 52179@debbugs.gnu.org > > > [1:text/plain Show] > > > [2:text/html Hide Save:noname (1kB)] > > On Wed, 25 May 2022 at 03:28, Eli Zaretskii wrote: > > > From: Reuben Thomas > > Date: Tue, 24 May 2022 22:34:14 +0100 > > Cc: Tor Kringeland , 52179@debbugs.gnu.org > > > > Since ispell is the only spellchecker Emacs supports that can't cope with [[:alpha:]], it would seem > more > > sensible to have a default (nil-keyed) setting in ispell-dictionary-base-alist, and to overwrite the default > with > > [A-Za-z] only if the spellchecker is really ispell. > > > > This way, duplicate code can be removed and future spellcheckers will not need to rediscover this > problem. > > That might be okay, but how does it help us get the Enchant support in > ispell.el DTRT? We'd still need to detect when Ispell is used as the > back-end speller, no? > > Versions of Enchant compatible with Emacs do not support Ispell as the back-end speller (I removed this > support in version 2 of Enchant). So we could just modify ispell-find-enchant-dictionaries to always patch the nil entry, like the other two backends do. Right? From debbugs-submit-bounces@debbugs.gnu.org Fri May 27 09:45:18 2022 Received: (at 52179) by debbugs.gnu.org; 27 May 2022 13:45:18 +0000 Received: from localhost ([127.0.0.1]:33187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuaHG-0002uF-97 for submit@debbugs.gnu.org; Fri, 27 May 2022 09:45:18 -0400 Received: from mailgw201.it.ntnu.no ([129.241.56.178]:33064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuaHE-0002u7-Mr for 52179@debbugs.gnu.org; Fri, 27 May 2022 09:45:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1653659115; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version : from; bh=gJ+9hVnz5CNXs2IvRleF7lCQOw8pIFFhqzaD6pVmCqk=; b=Pdwkd1NDnVFj7lP8quv65TZYcuMz/w8p5Gy4ZQcEWbw8nq0ebMEyGuzN1Ch7T9pwKQaVA EyVSMkfAkxtuB1UlI3pB4g8uvnBwoY8ugf9qy9Bx2EPFVtQTpKcrpkWlfty4M1RTSKXpAr5 5Zuu9Cw7GBy3YQcAUeUHJj2d9C2k/Z8KEFTD2eCMvxq91ESoUedCV3JA4AZkR9fO+8Fouk/ dnvaHRzGENRi3t4PRh4VvVnX2CQhHaVMnMukVSUerbKNz90WJGvSU7ntuOjeofsEFKdWOx+ Bu1kWv5eWm+ddVR3b51TugZp0d/xByO0+yG1rlRHWv9/nDwUox1+JCX/EXbg== Received: from localhost (localhost [127.0.0.1]) by mailgw201.it.ntnu.no (Postfix) with ESMTP id 6EFD5907143; Fri, 27 May 2022 15:45:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailgw201.it.ntnu.no X-Spam-Flag: NO X-Spam-Score: -1.802 X-Spam-Level: Authentication-Results: mailgw201.it.ntnu.no (amavisd-new); dkim=pass (1024-bit key) header.d=studntnu.onmicrosoft.com Received: from mailgw201.it.ntnu.no ([127.0.0.1]) by localhost (mailgw201.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5OoeMLd2E5mw; Fri, 27 May 2022 15:45:15 +0200 (CEST) Received: from NOR01-SV0-obe.outbound.protection.outlook.com (mail-sv0nor01lp20204.outbound.protection.outlook.com [IPv6:2a01:111:f403:7002::204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw201.it.ntnu.no (Postfix) with ESMTPS id 0B43A907140; Fri, 27 May 2022 15:45:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UqEmeMQIFdBSWcu5FfGnZqHiVk2SCzToQEfB9+S1xoIG4oufBqD2oCqxuIxqqDCWf2oyWdcvvC5WsHVEcCSCcjvyIYdRt3Dhdxi7RyZfVkTk0Xz85QSNwhx0bbc20GlH+Jry1xkCO4zGaZZntPiVS/pMDT5vFR3xDLz7gZEd6qNd9Uemld6jMCebZxCftwcBmYBxNQBn03T2KISphR2wJjmX/pn9wfS28Ao4SJ9Iy0NUJUCgj6cISoZ5GOmlvhvWXyS9ZOAJQ+N4tg1dBxwHfylrB2gtlHtKe/bPbhcvsD4nb1I/hEl4fgrTGtfO2mUGlvA2jpARTFQagGGRA8fEgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LrTdi7vXLURt1DpB7+l4NlhfAz80CQADkd/tn0dDp4I=; b=jdqT0WAGbv3QqMhVJicDw7atW7K5ZBmAV/dz1KT9TNH6t22Svl2QSy4jm53564RkYsNwpz6B3go/stR9jaVQSSX2soebabvIPYPuRjTTWHmsyXjB03Fg3JM+PFo6DKffKeIh61XQp1wesX9+OcYAZ7WZvLt/EUccLKMaL3omD/6wcVkE7lIFOKX41zR3GrSaRx1Oi8P6v6PrVhoWxNCMFJlL8NPglaFHcimkf2TnpFW7vyBp0LrYj0FLEGDl3xo9WaInNwvYSK6oqikE04KfK4Jh+NDQZ+R8UWukK8QD2U1zFJTX0B4xNKBhBpeAdQov7VoBAXdIA34ncgCYrrLl/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ntnu.no; dmarc=pass action=none header.from=ntnu.no; dkim=pass header.d=ntnu.no; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studntnu.onmicrosoft.com; s=selector2-studntnu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LrTdi7vXLURt1DpB7+l4NlhfAz80CQADkd/tn0dDp4I=; b=FUbkUC5kIUvNzJ96ljVxUVv/ddRBkYOav3fa+K987OLLxCNG0D2flX0KEw0J4dZrMUrvw2yucOT/gbkeaIc6RA4pFXlQ4nvZly+Ye46BGdHAtOuLCYhhjvbcPQZa6QzZ6cHhfg/QorVrhOFa2s3hqrMz+VSIms7DexHnNvOap14= Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:11::15) by OL1P279MB0210.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:11::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Fri, 27 May 2022 13:45:14 +0000 Received: from OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa]) by OL1P279MB0194.NORP279.PROD.OUTLOOK.COM ([fe80::6533:db8c:602f:62aa%5]) with mapi id 15.20.5293.015; Fri, 27 May 2022 13:45:14 +0000 From: Tor Kringeland To: Eli Zaretskii , Reuben Thomas Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' Thread-Topic: bug#52179: Highlighting a word in `ispell' using `enchant' Thread-Index: AQHYb4PhMvijZ4fCrUWyEJYchL+llq0uZUTkgAACkXGAAARpCoAAIMEAgABSZNeAAFbOgIAAX/sYgAMqxoA= Date: Fri, 27 May 2022 13:45:14 +0000 Message-ID: References: <83y1yq4ug1.fsf@gnu.org> <83v8tu4tac.fsf@gnu.org> <83tu9e4a75.fsf@gnu.org> <83mtf54uh6.fsf@gnu.org> In-Reply-To: <83mtf54uh6.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ntnu.no; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f11795ec-6c0e-4d06-041b-08da3fe7208e x-ms-traffictypediagnostic: OL1P279MB0210:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RKBiHEU/XfM4JGpkYVmC87ZyTs+x+e7Btc0o2eIEElnHOAUwjhMTV1gF2o997sGuzVdvdymT3ldaMjmjHHtDrjpuREXvD2I7/HgeMaQ/ly96lCEtLR+i34jcrqEGDjCeKyoif7dErboKd7QJ0A/xcECn3WD2Jq09V4M9YKVJLSjWPDJkA12vFsGw6O5q/38L36bSX+qfGfqyZV65TDTq7yClzvG22r+74sbn0cpIBei0iRtyPXAOrYQQFhrL3qpAM6twWJ45DUPn+Ofy4tjqNf/s6Z2XMLEoC6K5m04hhM2D2S+GbwHQtrv7zAjm7xLfzrDzetBmeTgNF/4Frdds0SIpS8/A0QTAX50wwVG3h2lun0mPA0A+g3OTOgfUfFWVvIJA6UyiU9jFLXaqy0gonPYRh6GgOwR0jAUBGMufV0pS+wnS8nBVCoD9hMaKndmRtT0sY43Hh/qh6/a25BY/4oGRNvCy7r0DEB+cjqKKYJfEVCintDwmYWWe9k8yeSrdEVr1dBtNJC90rWuVVmwrrr4ISS+uQkurioxbeceijK9oQV6MpUKBO616mJbhGHsPACAs8/loRonj2knNkw7TF+FIAmlyFEeZhByYw2afA0j8bWBaS4oo+NG7ZpWApcn78r7LGoz5+AiM+l8LM/fzMyu0W1ZalUs1Jk3MrM9ufSetUyxHCS+06ygDxPS5C3K2CK79i7jD69IPAHQ7mMo8C9AVyyaZOpESmS5Zshd1DWo= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OL1P279MB0194.NORP279.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(5660300002)(44832011)(508600001)(6506007)(4326008)(38100700002)(2906002)(71200400001)(8936002)(36756003)(110136005)(8676002)(66476007)(38070700005)(66556008)(186003)(64756008)(66946007)(76116006)(316002)(2616005)(66446008)(786003)(4744005)(6486002)(122000001)(91956017)(86362001)(26005)(6512007)(81973001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?preERWphVkXXd/WWdTJXw6Up1gaOV774wdp1fo2VunoYyvwFrPwo/QU8iG?= =?iso-8859-1?Q?dlK8jSeXY7MZQIrdOQLkVgv3aIvM7Gd8iXnZ1TzJYQPhjuivzJqzr/AMn7?= =?iso-8859-1?Q?/gjoj/CzSQ88UXxyQVQSrvLgkm3bqDxGzl+Aq3to9Thd2ldKzSNyMblN7p?= =?iso-8859-1?Q?NbU3WagURmOaj7cA/1uIsxcrR1coo8U/4B/Fbs5EkQvmukI9V9NcOn5Tja?= =?iso-8859-1?Q?zPCFf8s7jhtOO9mi3/0KjEDsir2lOSw9m3OcCRYKyMhxKfLg3OTvrswofL?= =?iso-8859-1?Q?Uhs6fjavaQvBn5Tpk/GcJt4y2oaQzEn4SQlbVWINwiaKFdZZF78EugMYfF?= =?iso-8859-1?Q?fV9hGm8WrQzh8rF1+EuoP4QY5cWKm+x/JCDsp+/1SBENnX2gkbRw3HAdU1?= =?iso-8859-1?Q?zXzWvss7gIZjUB2z5KBBtSZin5CMWP/kZnwDrSTdBuRwDgbFVLEtYO5I2k?= =?iso-8859-1?Q?51hFIxuTj/QDBBCuTTrg4R3ss8yxDjWMvYaTX8R2+lyIA24w8z9Vy5p1qo?= =?iso-8859-1?Q?50XAt62V3tDG3iUCpLA67Xj81gOkZyYyOcNlIVaJzr4pDAvSKRE+TtGfGh?= =?iso-8859-1?Q?M2qresX4GbnPhqbAfqbMR8V5qo8Ny6J5cvDgVVUQyIV+Q9AsHGURIJ/Kbt?= =?iso-8859-1?Q?vIJw9yMdAkWD1m9UmOC5WdM70OG9n1rm/XsH2/jjuFNCdI0bsRiIr1aPzQ?= =?iso-8859-1?Q?/m6JRmQ7kvvq10d5z33Azl6uywXqp3glnvDZzOKc9cCDjUFb6qy5XPMBlW?= =?iso-8859-1?Q?boF7JpUZZ/rxIvsI4ixjd+dpIatcr3VyzR7t9GCGmjPmWiPbtuEhynRVbv?= =?iso-8859-1?Q?wuHAyDTAtZbeCbfOVu4cl/wzYRnysTrxTu8fwcEHNE1IadS2PXYZQUQPgt?= =?iso-8859-1?Q?6FtdPnGEyOiDfXI7pGd4fNix/gDiLOkKBemmpo1hXDw8pQ0HrWsX4uFv5j?= =?iso-8859-1?Q?/uxzb/a84AbbY8kY5yLiNdh/6k4dnyDPDdLipCmmeI1/h1N2guHoPpon97?= =?iso-8859-1?Q?LI4pOaTv4NMEOvXnMgMpqh+04XtPLJqXlp8hzjQlFmX5edgt2kNQVNQVkm?= =?iso-8859-1?Q?GBv3knXT5FHw/QC8ItbIku+E5Z555tc3B4HMvqm71qAAoe1gXqOAxeT+Ng?= =?iso-8859-1?Q?hv8P/7TZkIY60MSBCfZQlD/oWPYLbJPd6PFFh0i8JAiDJpMqChUUPaYnCt?= =?iso-8859-1?Q?XHlsTftehSOHGebwL3YSC8tf6KetJ8i6Sl8o0+sQFL1cJFbvZEVrCI804E?= =?iso-8859-1?Q?rcT+QhjSkxTBP8YU6uDKbUuswB9085TtMmjPNvEJHrgngG9Fj25f5PlxlS?= =?iso-8859-1?Q?bxdgfPFBHXhiXQr9VZ0u5kFzIHzrQtX0sgpM+mxAyZ5RBEKghE0c81nv0D?= =?iso-8859-1?Q?m3fdNdR3N3egd2D5X6PPGpM9Qtpp1RcEUOUwwKO410s5OXghN0a5aW1CZC?= =?iso-8859-1?Q?r6lEpyFx6b6ldlKTnzZvfTJLLkqkZ5kMUr8i+O2ilE9LezIbvXQH44orEa?= =?iso-8859-1?Q?eXarWAXbEOmHijTwdK+8tYdvh6OVCs2xYczjZuVsf4Czk2Ci60rR5SEJIx?= =?iso-8859-1?Q?5SAgqqoHK5bjvlnyuGpZp3DIRsEqe12ia9XADky0eajUbnvLTwCVhg8Hnb?= =?iso-8859-1?Q?U2s308ytdXcv9ncdaDRoLslZqj78kxfBn9OC3Tr9BbyRLdT0iXm99QMs4+?= =?iso-8859-1?Q?4L3Nvq+8NXIfzvudmKgd/UkC7QSplG4uHL8gush7L4RUfHs3grNuvuu8Zz?= =?iso-8859-1?Q?MVrAIHnBdZbf3SnZmlCegRulopmtxJ+liUX4eZHm8cTdfDKfhZuNcmaEis?= =?iso-8859-1?Q?GAgatEi67A=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ntnu.no X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OL1P279MB0194.NORP279.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: f11795ec-6c0e-4d06-041b-08da3fe7208e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 May 2022 13:45:14.2363 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 09a10672-822f-4467-a5ba-5bb375967c05 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7aoqgodIBYTotp5WxuO1AZzIepAWO4cASNqaHZXGTtKLGDjbqCEbMWJB3TLg9Zcy9aRL1oNw3AoODIQwAIuwLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OL1P279MB0210 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52179 Cc: "52179@debbugs.gnu.org" <52179@debbugs.gnu.org> 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 (-) Eli Zaretskii writes: > So we could just modify ispell-find-enchant-dictionaries to always > patch the nil entry, like the other two backends do. Right? Yes, it's the easiest way to fix it. But maybe we should document this behavior explicitly? So if support for some other spell-checker is added it's clear that the nil entry requires special attention.= From debbugs-submit-bounces@debbugs.gnu.org Fri May 27 10:22:55 2022 Received: (at 52179) by debbugs.gnu.org; 27 May 2022 14:22:55 +0000 Received: from localhost ([127.0.0.1]:35564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuarf-0004ae-5o for submit@debbugs.gnu.org; Fri, 27 May 2022 10:22:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuarb-0004aJ-MK for 52179@debbugs.gnu.org; Fri, 27 May 2022 10:22:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuarS-0005bP-2z; Fri, 27 May 2022 10:22:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GmoKgL76tY/Y0nr5znfAXA7rZxXQP8a3gvw0RWhk3YY=; b=j6x0SUqCvVGK mhbe2Oz58dUZFrWZG33ib6JGKxIzlixK6LmAqCw4CXEMefZH37ts5rU6fcty/wjARJm+dgCRQOhnz PWvrNB4JQ+ZSJLWyPa13Cl5GAL2jsfCaHw/DRNJUzywjU0RtWwqWqLBUDK/IEzKCCbLPLzbu9vONi FOK8DDJAZ4vZEHtCiT5uAJHwapV3MPMPwwsMwLifaOb/mhyIRJWcE4hFl5uwtQQX+WbtRMN07YJH5 U/OTqqqhs88IEFuhQ6J4mytyPc1pyVFvXlJjuW93FLBqAyKBpVjKL1HU2a7bbLWxfeVGWfRp6PNHz SrAeLiVKOUyJomrWgp+eLA==; Received: from [87.69.77.57] (port=2970 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuarR-0004R4-Gw; Fri, 27 May 2022 10:22:41 -0400 Date: Fri, 27 May 2022 17:22:38 +0300 Message-Id: <83zgj3m4wh.fsf@gnu.org> From: Eli Zaretskii To: Tor Kringeland In-Reply-To: (message from Tor Kringeland on Fri, 27 May 2022 13:45:14 +0000) Subject: Re: bug#52179: Highlighting a word in `ispell' using `enchant' References: <83y1yq4ug1.fsf@gnu.org> <83v8tu4tac.fsf@gnu.org> <83tu9e4a75.fsf@gnu.org> <83mtf54uh6.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52179 Cc: 52179@debbugs.gnu.org, rrt@sc3d.org 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: -3.3 (---) > From: Tor Kringeland > CC: "52179@debbugs.gnu.org" <52179@debbugs.gnu.org> > Date: Fri, 27 May 2022 13:45:14 +0000 > > Eli Zaretskii writes: > > > So we could just modify ispell-find-enchant-dictionaries to always > > patch the nil entry, like the other two backends do. Right? > > Yes, it's the easiest way to fix it. But maybe we should document this > behavior explicitly? So if support for some other spell-checker is > added it's clear that the nil entry requires special attention. Sure, adding comments for this is fine.