From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#20741: 24.4; flyspell doesn't work with abbreviations ending in a period Date: Mon, 14 Feb 2022 15:28:42 +0000 Message-ID: References: <87pp5az1u7.fsf@sc3d.org> <83twumnem2.fsf@gnu.org> <83iob1nxfb.fsf@gnu.org> <87o83bxhll.fsf@gnus.org> <83fsonq6w9.fsf@gnu.org> <8735klu3pz.fsf@gnus.org> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f44ef705d7fc12da" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35966"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 20741@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 14 16:44:47 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJdWx-0009CW-9O for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 16:44:47 +0100 Original-Received: from localhost ([::1]:45946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJdWw-0004Q5-2p for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 10:44:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJdHj-0006mn-6e for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2022 10:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJdHi-00048a-TI for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2022 10:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJdHi-0003lk-Oa for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2022 10:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Feb 2022 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 20741-submit@debbugs.gnu.org id=B20741.164485254114473 (code B ref 20741); Mon, 14 Feb 2022 15:29:02 +0000 Original-Received: (at 20741) by debbugs.gnu.org; 14 Feb 2022 15:29:01 +0000 Original-Received: from localhost ([127.0.0.1]:42323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJdHg-0003lN-Sa for submit@debbugs.gnu.org; Mon, 14 Feb 2022 10:29:01 -0500 Original-Received: from mail-pf1-f173.google.com ([209.85.210.173]:34542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJdHf-0003l8-1y for 20741@debbugs.gnu.org; Mon, 14 Feb 2022 10:28:59 -0500 Original-Received: by mail-pf1-f173.google.com with SMTP id g1so10005370pfv.1 for <20741@debbugs.gnu.org>; Mon, 14 Feb 2022 07:28:59 -0800 (PST) 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=v4clzQ7FowQxWyf+o4EHKaM1jD5q3ULyhFqbonJQk1g=; b=mJPRK5OqmN19k25T89S/xNHXjJz022gueJIGM01mWXP65DUdaQ7l2zpruppyaF0Y3L Up9s//au4aaisMuP1EEi+9VZzpnWkvKkgTXdevPEeC8/Ae0FbA15idUPNk0LV7jcOTJq Mdi7mJzx5NNnVyftpSgtds5qOaqI7bUnpz/D0= 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=v4clzQ7FowQxWyf+o4EHKaM1jD5q3ULyhFqbonJQk1g=; b=uX6q43EhTQYp+PNgMcmhYrx9SxGB+IEObddRVQEpw6DHMvGueK2b9CmTpdad5R7c2l RjQOgpiN2yW0iEfcgHKqejQp9y1F1H2KXwqoEasgohCDBizb6AXpTKUTN8V9bMhYGSML jDzoV78+K4t9bdLnqSdskl6Kw8SdtrlTn/KmbEoPi0hx1pI9EidNrnuJzo8hPRgk2SLK cZOSKOniF/zWVs8Kg+I7QH5an8c35mIc6hILHNkIDrvSLN4KD7BH+vx9wQrQDZ8kOrc/ 0h6IgNOZQCrmdQeNTLQD8oI7yQPMk5XiYDKAMo9rlaO0O3Hf9cs8mwLTEo5alp1X0L6r b7mA== X-Gm-Message-State: AOAM5331hljYwptMn8QPGzm+NzAgp6PbOQmPbaPjID07hDtO5jLLwC1J bbUkExxUVjMZ890VbSLXmDEKDGslGepcpBSwhGzBUg== X-Google-Smtp-Source: ABdhPJyc5THjCaOzSAA9GWGBttk3gyTCNIl5ZbmmNiuCD6aVNyhXCHxJ6iQq+IUUnnMfb/kSvvDbjh8PYa1GDUpiX1Q= X-Received: by 2002:a65:5943:: with SMTP id g3mr227052pgu.3.1644852533276; Mon, 14 Feb 2022 07:28:53 -0800 (PST) In-Reply-To: <8735klu3pz.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226898 Archived-At: --000000000000f44ef705d7fc12da Content-Type: text/plain; charset="UTF-8" On Mon, 14 Feb 2022 at 10:45, Lars Ingebrigtsen wrote: > Reuben Thomas writes: > > > To be honest, I'm not sure Emacs can do much here. As far as I can > > tell, hunspell doesn't cope well with characters like "." that > > normally are non-word characters, but *can* occur in a word. > > > > Relatedly, see: https://github.com/hunspell/hunspell/issues/361 > > So it's a problem on the hunspell side, and not because Emacs is > considering the "." to be a non-word character? (I haven't tried to > debug what's going on.) For natural language, yes. There's also a problem in common abbreviations like "i.e.", which is > considered as the words "i" and "e", apparently... > This is indeed the case, and it's not normally a problem because Emacs does not spellcheck words so short. I was wondering whether Emacs could query the backend speller whether it > had the word "foo." in the dictionary before squiggly-lining "foo", but > I'm very unfamiliar with how these functions work. > It could! -- https://rrt.sc3d.org --000000000000f44ef705d7fc12da Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, 14 Feb 2022 at 10:45, Lars Ingebr= igtsen <larsi@gnus.o= rg> wrote:
rrt@s= c3d.org> writes:

> To be honest, I'm not sure Emacs can do much here. As far as I can=
> tell, hunspell doesn't cope well with characters like "."= ; that
> normally are non-word characters, but *can* occur in a word.
>
> Relatedly, see: https://github.com/hunspell/huns= pell/issues/361

So it's a problem on the hunspell side, and not because Emacs is
considering the "." to be a non-word character?=C2=A0 (I haven= 9;t tried to
debug what's going on.)
For natural language, yes.

There's also a problem in common abbreviations like "i.e.", w= hich is
considered as the words "i" and "e", apparently...
<= /blockquote>

This is indeed the case,= and it's not normally a problem because Emacs does not spellcheck word= s so short.


It could!
= =C2=A0
--
--000000000000f44ef705d7fc12da--