From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.bugs Subject: bug#67857: 30.0.50; ispell fails on apostrophes when the dictionary includes contractions Date: Sun, 17 Dec 2023 13:22:07 -0800 Message-ID: <25983.26239.904439.633771@orion.rgrjr.com> References: <25982.4274.795598.983142@orion.rgrjr.com> <83a5q9l3fl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1585"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67857@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 17 22:23:22 2023 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 1rEyba-0000Bz-8d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Dec 2023 22:23:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEybI-0006Mh-AT; Sun, 17 Dec 2023 16:23:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEybE-0006ME-Kl for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2023 16:23:00 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rEybE-0000T3-BB for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2023 16:23:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rEybF-0004uV-JS for bug-gnu-emacs@gnu.org; Sun, 17 Dec 2023 16:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bob Rogers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Dec 2023 21:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 67857-submit@debbugs.gnu.org id=B67857.170284813918812 (code B ref 67857); Sun, 17 Dec 2023 21:23:01 +0000 Original-Received: (at 67857) by debbugs.gnu.org; 17 Dec 2023 21:22:19 +0000 Original-Received: from localhost ([127.0.0.1]:59074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEyaY-0004tL-G7 for submit@debbugs.gnu.org; Sun, 17 Dec 2023 16:22:18 -0500 Original-Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]:52484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEyaW-0004t5-L6 for 67857@debbugs.gnu.org; Sun, 17 Dec 2023 16:22:17 -0500 Original-Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-35fb38747c7so187825ab.1 for <67857@debbugs.gnu.org>; Sun, 17 Dec 2023 13:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rgrjr-com.20230601.gappssmtp.com; s=20230601; t=1702848129; x=1703452929; darn=debbugs.gnu.org; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=uYMHg1we3z2mSNPc4HcHJkRhN2ii80sUFraMX/K3mUY=; b=xz7PkPTgBxWAbUX7QXk1Cuc4UqICGzfQuIREp2zuzEWMGPuY2+Ii0dFBqKGl9C5yMf xnPKC9ZZfRqXiAn3Zd8LIGdfMtm9dgYkLdlIi3/9V4eFWUifdhnraRY6asM9fg0pFPpg ovkgm2R+eKhASewXRHMFISYr8gwQIybyq3nZ+PSxkv7HtkYKVfzj8ab956u8zziWS7+b j7H8xd6Cmt58I9G0zunR9fZLYR5geUTSVpP31mS33wkXcCAZx1vHrlhAG4oAFwNzsuF9 +5KexiPmZOfGyWIYE7+xZUMp8fxkRGmCyM63Z+aRhXk1L/IyU1x4DtC4mt4UUwbb3e+z px5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702848129; x=1703452929; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=uYMHg1we3z2mSNPc4HcHJkRhN2ii80sUFraMX/K3mUY=; b=JODyd0sit/GQnJvlbWiPZ0pxz5VMg8I+M2SoDW0L+2mFQ1O5iAK+XcJv8TPh1/6IHh Ori+nk9Ma2zU1wOztJt1VGOt1z5V0A7VmYTncPb4EBOAZeN1pFZZ2N9gwhUNWG+DrkZ3 +/D3qdJLcs4WCjRQ73QY1aK+X16w33xi9SGKTnneEKnNQLLVu0etZaH6kBm+8iTt+KWj Sak1X3tes+iToS9difgWSt7IgdS2S7VdsqRifRQcxrJXJzrXJ6zKsvKPsBu1/Ul4zRiw yU3NUpYTmD2rqO+m5TlSUj0ToytPBRinPqOowunbmsyI90ab0F//TP33d4aak9x0ElTu m+wA== X-Gm-Message-State: AOJu0Yzsmj3693zWVoGKACup9tOrkzlwULEgQ7RWih+RHYweDjsFjrly bFM+nt6i3lGN18W5q3EOnDiYdQ== X-Google-Smtp-Source: AGHT+IHXizFvWyLm6pl6zK/QopKRagJi8vn18TKzkWMWiRLU7DZsNYlYkwY5Lqq0Dse8L0UO2OzxMQ== X-Received: by 2002:a05:6e02:20e2:b0:35d:5ac0:5062 with SMTP id q2-20020a056e0220e200b0035d5ac05062mr26649328ilv.48.1702848129434; Sun, 17 Dec 2023 13:22:09 -0800 (PST) Original-Received: from orion.rgrjr.com ([2600:1700:7c2c:e000::22]) by smtp.gmail.com with ESMTPSA id y18-20020a170902b49200b001d1cda6bdfdsm17545556plr.34.2023.12.17.13.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 13:22:08 -0800 (PST) In-Reply-To: <83a5q9l3fl.fsf@gnu.org> X-Mailer: VM 8.2.0b under 30.0.50 (x86_64-pc-linux-gnu) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276441 Archived-At: From: Eli Zaretskii Date: Sun, 17 Dec 2023 08:59:42 +0200 > Date: Sat, 16 Dec 2023 13:03:46 -0800 > From: Bob Rogers > > . . . > > 4. Type M-$. The sole offered replacement is "wouldn't" but the > text it offers to replace is "wiouldn"; typing "0" to take the > replacement results in "this wouldn't't work" in the buffer. Doesn't happen for me . . . You are looking at the wrong places to try fixing this. First, the default for OTHERCHARS in English and American dictionaries is "[']" (see ispell-dictionary-base-alist), and likewise for the "default" dictionary, so this already includes the apostrophe. Yes, I see this. However, when ispell.el uses Hunspell, it doesn't use this database for OTHERCHARS; instead, it looks in the dictionary's affix file, see ispell-parse-hunspell-affix-file. So you should look in your affix file and see if the apostrophe is mentioned there. In my affix file for English, I see this line: WORDCHARS 0123456789' which includes the apostrophe. See hunspell(4) man page for more details about the affix file and its settings. Yes, this is my problem; the apostrophe was missing, and ispell DTRT when I add it. (I think I understand now what "different character maps" means.) Thanks for pointing me in the right direction. My affix file also has this line, which also includes the apostrophe: TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'- Not sure if it's relevant, but I though I'd mention it for completeness. Mine has the apostrophe (though not the hyphen), so I left it alone. I see no bug in Emacs here. ispell.el works as intended. Agreed; this is probably an openSUSE config problem. Unfortunately, I can't file a bug with them because they are still shipping 27.2 (at least in their openSUSE Leap 15.5 release) and I can't reproduce this issue in that version. -- Bob