X-Loop: help-debbugs@HIDDEN
Subject: bug#52179: Highlighting a word in `ispell' using `enchant'
Resent-From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 29 Nov 2021 14:45:02 +0000
Resent-Message-ID: <handler.52179.B.16381970932078 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 52179
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 52179 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.16381970932078
(code B ref -1); Mon, 29 Nov 2021 14:45:02 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1mrhtk-0000XR-Ok
for submit <at> 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 <tor.a.s.kringeland@HIDDEN>) id 1mrhti-0000XJ-Nb
for submit <at> 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 <tor.a.s.kringeland@HIDDEN>)
id 1mrhti-0007bj-9Q
for bug-gnu-emacs@HIDDEN; 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 <tor.a.s.kringeland@HIDDEN>)
id 1mrhtf-0004IK-9N
for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>;
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@HIDDEN)
by mailgw301.it.ntnu.no (Postfix) with ESMTPSA id C9A466829EF
for <bug-gnu-emacs@HIDDEN>; Mon, 29 Nov 2021 15:44:42 +0100 (CET)
From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Date: Mon, 29 Nov 2021 15:44:39 +0100
Message-ID: <m2h7bvxbqg.fsf@HIDDEN>
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@HIDDEN; 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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Tor Kringeland <tor.a.s.kringeland@HIDDEN> Subject: bug#52179: Acknowledgement (Highlighting a word in `ispell' using `enchant') Message-ID: <handler.52179.B.16381970932078.ack <at> debbugs.gnu.org> References: <m2h7bvxbqg.fsf@HIDDEN> X-Gnu-PR-Message: ack 52179 X-Gnu-PR-Package: emacs Reply-To: 52179 <at> debbugs.gnu.org Date: Mon, 29 Nov 2021 14:45:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 52179 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 52179: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52179 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#52179: Highlighting a word in `ispell' using `enchant'
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 29 Nov 2021 14:52:02 +0000
Resent-Message-ID: <handler.52179.B52179.163819751111490 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52179
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Cc: 52179 <at> debbugs.gnu.org
Received: via spool by 52179-submit <at> debbugs.gnu.org id=B52179.163819751111490
(code B ref 52179); Mon, 29 Nov 2021 14:52:02 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1mri0V-0002zC-Dz
for submit <at> 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 <eliz@HIDDEN>) id 1mri0U-0002z1-8K
for 52179 <at> 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 <eliz@HIDDEN>)
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 <eliz@HIDDEN>)
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@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <m2h7bvxbqg.fsf@HIDDEN> (message from Tor Kringeland on Mon, 29
Nov 2021 15:44:39 +0100)
References: <m2h7bvxbqg.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
> 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?
X-Loop: help-debbugs@HIDDEN
Subject: bug#52179: Highlighting a word in `ispell' using `enchant'
Resent-From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 29 Nov 2021 20:47:01 +0000
Resent-Message-ID: <handler.52179.B52179.16382187804634 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52179
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 52179 <at> debbugs.gnu.org
Received: via spool by 52179-submit <at> debbugs.gnu.org id=B52179.16382187804634
(code B ref 52179); Mon, 29 Nov 2021 20:47:01 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1mrnXX-0001Cf-FN
for submit <at> 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 <tor.a.s.kringeland@HIDDEN>) id 1mrnXN-0001CO-Go
for 52179 <at> 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@HIDDEN)
by mailgw301.it.ntnu.no (Postfix) with ESMTPSA id 06A0368297F;
Mon, 29 Nov 2021 21:46:06 +0100 (CET)
From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
In-Reply-To: <83k0grui9h.fsf@HIDDEN>
References: <m2h7bvxbqg.fsf@HIDDEN> <83k0grui9h.fsf@HIDDEN>
Date: Mon, 29 Nov 2021 21:46:05 +0100
Message-ID: <m2lf16vgfm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Eli Zaretskii <eliz@HIDDEN> writes:
>> From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
>> 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
X-Loop: help-debbugs@HIDDEN
Subject: bug#52179: Highlighting a word in `ispell' using `enchant'
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 30 Nov 2021 03:23:02 +0000
Resent-Message-ID: <handler.52179.B52179.16382425329857 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52179
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
Cc: 52179 <at> debbugs.gnu.org
Received: via spool by 52179-submit <at> debbugs.gnu.org id=B52179.16382425329857
(code B ref 52179); Tue, 30 Nov 2021 03:23:02 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1mrtid-0002Yv-Ld
for submit <at> 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 <eliz@HIDDEN>) id 1mrtiV-0002YL-K3
for 52179 <at> 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 <eliz@HIDDEN>)
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 <eliz@HIDDEN>)
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@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <m2lf16vgfm.fsf@HIDDEN> (message from Tor Kringeland on Mon, 29
Nov 2021 21:46:05 +0100)
References: <m2h7bvxbqg.fsf@HIDDEN> <83k0grui9h.fsf@HIDDEN>
<m2lf16vgfm.fsf@HIDDEN>
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> From: Tor Kringeland <tor.a.s.kringeland@HIDDEN>
> Cc: 52179 <at> 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.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.