From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kaEFAUASP1+mbAAA0tVLHw (envelope-from ) for ; Fri, 21 Aug 2020 00:16:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uO8BOD8SP1/uYgAAB5/wlQ (envelope-from ) for ; Fri, 21 Aug 2020 00:15:59 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 43077940656 for ; Fri, 21 Aug 2020 00:15:59 +0000 (UTC) Received: from localhost ([::1]:58254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8uis-00055K-8U for larch@yhetil.org; Thu, 20 Aug 2020 20:15:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8uiK-00050w-3j for help-guix@gnu.org; Thu, 20 Aug 2020 20:15:24 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:58128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8uiC-0001Nz-Ul for help-guix@gnu.org; Thu, 20 Aug 2020 20:15:23 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id f1a92b2f; Fri, 21 Aug 2020 00:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=ukRlptpAhBWUSgSNFOb03UP2uDT7WKG79Bv4VMJTbFo=; b=IkpTBjogPyry pxlEkR1o42vOagwwxm5sPEQKOVaahdy+6DnutVLae6D5sg3eQkqmvZLJaNn56OZ6 mZzZ/MA0sBb+Fm+1cDbChvc1m8TTBnBzIGp0z8dFz1nPR2OVpvO3tK0rvK6DQF02 ol4nOvHYboPc1JdAq55hU3qR5d0yK40jMpzlRzTQEjdpmy8loc7aJKFI3w0ZRT3B KjS9U/Ol/7yFPOqd95l2TzIHp3U5D2SA5EyCeQrN3VE9ercVCrkFs3ECC7XxzOuV m2EeAAQUckLIBNWM0Cpdn3oPVY29e91VFZ99tygnCvELTRV4EL+5/lcVIf/+eC7I RA7Xdjqx0Q== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 709572d6 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 21 Aug 2020 00:15:10 +0000 (UTC) Date: Thu, 20 Aug 2020 20:14:56 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <87k0xtf9nv.fsf@disroot.org> <87eeo1f95n.fsf@disroot.org> MIME-Version: 1.0 Subject: Re: Guix's enchant misreports numerals on Debian---both buster and bullseye To: help-guix@gnu.org,"Jorge P. de Morais Neto" From: Julien Lepiller Message-ID: Received-SPF: none client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=lepiller.eu header.s=dkim header.b=IkpTBjog; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: diOu8ErUcPYs Hi, I ended up pushing two patches: the first one installs the required =2Eaff= files along with the =2Edic files in hunspell-dict-en=2E The second adds h= unspell as an input to enchant=2E With these, on Guix System, I was able to reproduce the behavior of debian= 's enchant=2E Numerals are not marked as incorrect anymore=2E I have two issues left: enchant ignores DICPATH and loads dictionaries fro= m global directories, which is an issue on the Guix System (less so on fore= ign distros as they probably have dictionaries installed at these locations= )=2E Hunspell itself doesn't flag "doesn" as incorrect, whereas enchant does, d= espite using the same dictionary=2E If this is also the case on Debian, we = might have found a bug in enchant=2E So: after you run guix pull and update enchant, you will see the same beha= vior from guix' and debian's enchant=2E On 2020=E5=B9=B48=E6=9C=8820=E6=97=A5 15:15:53 GMT-04:00, Julien Lepiller = wrote: >So I've look at it quickly=2E It seems our enchant is built only with >aspell, whereas debian is built with hunspell=2E In fact, our hunspell is >able to detect the misspellings, and does not flag numbers nor doesn't=2E >Maybe you could use hunspell directly as your enchant? Not sure if that >works, I'm not an emacs user=2E > >I've tried building enchant with hunspell, but although it worked, it >still doesn't use the hunspell dictionnary=2E Looking at strace, it >ignores $DICPATH which hunspell uses, and looks in various other >directories=2E Sxmlinking one of them to $DICPATH didn't work either=2E >Enchant was able to find hunspell's en_US=2Edic file, but then fails when >looking for en_US=2Eaff in the same directory=2E What is this aff file? > >On 2020=E5=B9=B48=E6=9C=8820=E6=97=A5 14:45:56 GMT-04:00, "Jorge P=2E de = Morais Neto" > wrote: >>Em [2020-08-20 qui 15:35:00-0300], Jorge P=2E de Morais Neto escreveu: >> >>> So enchant 2=2E2=2E8 (either from APT or from Guix) does not understan= d >>> "doesn't"; and, what's worse, enchant-2=2E2=2E8 from Guix reports ever= y >>> numeral as a misspelling=2E >> >>I now reread my experiment and realized enchant from Guix does >>understand "doesn't"=2E So enchant 2=2E2=2E8 from Guix gets "doesn't" >>correctly, but not numerals, and enchant 2=2E2=2E8 from APT gets numeral= s >>correctly, but not "doesn't"=2E Could enchant get both numerals and >>"doesn't" correctly? That would be ideal=2E Failing that, APT's >enchant >>situation is much preferable than Guix's enchant=2E >> >>Regards >> >>--=20 >>- >>- If an email of mine arrives at your spam box, please notify me=2E >>- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, >WebM >>and 7z=2E >>- Free/libre software for Replicant, LineageOS and Android: >>https://f-droid=2Eorg >>- [[https://www=2Egnu=2Eorg/philosophy/free-sw=2Ehtml][What is free >>software?]]