From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: auto-detect multiple languages -- ispell-detect.el Date: Thu, 01 Aug 2024 22:53:01 -0400 Message-ID: References: <87y15h7ppj.fsf@dataswamp.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34589"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 02 04:53:56 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sZiQW-0008rb-2x for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Aug 2024 04:53:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZiPg-0001CK-Hz; Thu, 01 Aug 2024 22:53:04 -0400 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 1sZiPf-0001Bp-0E for emacs-devel@gnu.org; Thu, 01 Aug 2024 22:53:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZiPe-0006My-67; Thu, 01 Aug 2024 22:53:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=KaVyXL9NJqZMt4oV7FQRCdAzwyxEyGGh/v8s6K0YXdk=; b=okWXXmPDDGxy WWxAauPrRyakgn/FvRE85I+1bL25P7MMztnBhOe0CMAsZE962okK2zPQ/3FVQtt4Mb2KwEdJ/GVou VvZZS9FKN4Gex9sLVwRH+3enV8iP5k1hZ3Rpvl8afNwmeIPgSM1b/3NN8lh2HSA0xpOva2canB7N1 WLQ3bTx/Utc/VfvqN7/s+kXhp2M1fVyiUw75/7dWrXZ//LciH32lj/1CX40WJ9zJ0WIhSTaMnStaN CpPlVHIjHPJKWOxw74amz0DXcWHYS/NbgG9ZnXms0sx0x7GiTq+KbbRDAZjVLiSO1sLIdMWxMBUhz WsUJ6lBJ5d0h3bkQYR8f/g==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sZiPd-0003uw-98; Thu, 01 Aug 2024 22:53:01 -0400 In-Reply-To: <87y15h7ppj.fsf@dataswamp.org> (message from Emanuel Berg on Wed, 31 Jul 2024 13:42:16 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322276 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > It works on arbitrary texts with no markup or > anything required. > Also a future release for ELPA, I hope. It is a good idea, if it works reliably enough, In order to be convenient, it needs to choose heuristically how much text to test. I suggest having a custom variable `ispell-language-list' which could look like ("french" "spanish" "english"). Maybe there should be a special short file property to specify a given file's spell check language. Let's not complicate usage by putting small pieces of code in separate packaes. It would be simpler for users to add this code to ispell.el. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)