From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: auto-detect multiple languages -- ispell-detect.el Date: Sun, 04 Aug 2024 08:52:31 +0300 Message-ID: <86o768u95s.fsf@gnu.org> References: <87y15h7ppj.fsf@dataswamp.org> <87wmkzl56a.fsf@no.lan> <878qxdivq1.fsf@dataswamp.org> <87zfpth6l6.fsf@dataswamp.org> <87v80hgyzy.fsf@dataswamp.org> <86r0b4ub5z.fsf@gnu.org> <87jzgwsv2q.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11356"; 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 Sun Aug 04 07:52:54 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 1saUAn-0002oJ-W6 for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Aug 2024 07:52:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saUAX-00013E-DQ; Sun, 04 Aug 2024 01:52:37 -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 1saUAW-00011E-CN for emacs-devel@gnu.org; Sun, 04 Aug 2024 01:52:36 -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 1saUAU-0008BC-Oj; Sun, 04 Aug 2024 01:52:34 -0400 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=lzERuV6KhhCnuU985WVr/De7R204wd8baxMMDGZ8aRk=; b=Wn81nRXFHakm sOTzJaF9XUOwpSIVebcKetczEcZ6Ty0PkxOiCAfZNoaOqdKUZAY8BbCESCWfEM80aGdCKnvcJIqI7 XchgzhwMxqNoQj1py4KzsUr2i6eRd6M/x/MWcZkFSnaOa1FyE4uC0opEOmW0kWflRkW6ZxKGYUQRN sqK5/WHTgT/vE2yewD/qjXTtAgFdTIJbAIxqaaHnUu7QDI6HL5g51vEnIdfnr7NTIhePx8a9rqybX EChMN/z3eu+cqxQoAmQwrmHN/LViBPEOThQCvCVhNhu9lVTsonk90pBqd78o6fcvTO0uXOSw3jh20 XsjNFSOdG1iuKyV6yLvTuQ==; In-Reply-To: <87jzgwsv2q.fsf@dataswamp.org> (message from Emanuel Berg on Sun, 04 Aug 2024 07:42:05 +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:322326 Archived-At: > From: Emanuel Berg > Date: Sun, 04 Aug 2024 07:42:05 +0200 > > The only way I can think of is to do it word-by-word. > If language 1 fails, try language 2 and so on. > > But with that method, how do you know that you didn't misspell > a language 1 word into a word in some other language? You don't. But it works very well in practice, try it. Especially if the languages use different scripts, like English and Russian.