From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Regexp capturing unicode characters Date: Thu, 01 Aug 2024 19:44:18 +0000 Message-ID: References: <865xskygar.fsf@gnu.org> <2wHi4S9MruOl3ZOkpjKnin3CJxnVnomMkaIdhl-i3OF7AYEda3X-7-1ijhWUrLZ22JwOMXQu5ntZ3FFBuAlmhkpMxgXFbhZ-sS_XMmCrE4g=@protonmail.com> <86le1gwii6.fsf@gnu.org> <86h6c4w93c.fsf@gnu.org> <86frrow2z1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1940"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 01 21:45:14 2024 Return-path: Envelope-to: geh-help-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 1sZbje-0000MY-MZ for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Aug 2024 21:45:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZbiy-0002Ps-Tc; Thu, 01 Aug 2024 15:44:32 -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 1sZbix-0002PT-9E for help-gnu-emacs@gnu.org; Thu, 01 Aug 2024 15:44:31 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZbiu-0003bB-Oo; Thu, 01 Aug 2024 15:44:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1722541465; x=1722800665; bh=ZK5oE7heylDccTfeb8V88A2GPXntNs0gD5mZClIrviI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=tTg/E9IXnL5B3Bb5W00jXsWNeWps0Ldh2EiOyhXHOKbrIhkoqZ8fl9Srk0WL7AUMG BXdun83bvkBoYO4dU4YlgPGtP9VsKGdcyinOTCLNXR/ivH7rMKLAK7FUnQdHFaIsOQ L6Q6zRJiEn8VGnhXAM/I2tcLXLy7Y8rZ1vG4pHoX8vw4P9gWwIGIudzypUyoqQjiEm nSXCDIlW4IStfLX8FgIyfq27+VmYBuCDlpz1Xjs+l34wvmtYn58gUucECE5TIzY5AT XrBVyN/kJMCyBxape9eV73Mok2hnj8xiTUnpOZX9QdMlsq5yGxWrNcokIjybZnFkfo Zkz8pPLX44/Hg== In-Reply-To: <86frrow2z1.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 0db18d62bb4d26d3af18dba9c70e46f92660854b Received-SPF: pass client-ip=185.70.43.19; envelope-from=heimeborgia@protonmail.com; helo=mail-4319.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147493 Archived-At: On Friday, August 2nd, 2024 at 5:46 AM, Eli Zaretskii wrote: > > Date: Thu, 01 Aug 2024 17:06:26 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=20 > > On Friday, August 2nd, 2024 at 3:34 AM, Eli Zaretskii eliz@gnu.org wrot= e: > >=20 > > I want to include in the regexp the possibility that the user wrote som= e > > comment in a foreign language other than english. Otherwise the regexp > > would simply skip them. And your suggestion has been [alpha] and [:alnu= m:]. >=20 >=20 > Once again, [:alpha:] and [:alnum:] will match letters and digits in > any language, not just in English. >=20 > > > The useful information is already there (including a cross-reference > > > to a detailed description of what "multibyte" means). I just > > > translated it into simpler terms, based on what you told about the jo= b > > > you want to do, to save you from the need to read that if you don't > > > want to. > >=20 > > A mention that [:multibyte:] is not used much nowadays. >=20 >=20 > That's not what I said. I said it is almost never the right thing > nowadays, especially in your case. >=20 > I'm trying to help you by saying simplified things. The manual > doesn't simplify, because it's a reference. Would graph [:graph:] be the most powerful ? =20 In "34.2 Disabling Multibyte Characters", it is stated=20 "Multibyte mode allows you to use all the supported languages=20 and scripts without limitations." Yet you say that it is never the right thing especially in my case. Where in my case I want to support languages without limitations. I did not find the reference is enough to decide what is appropriate=20 to use for languages without limitations, or for specific languages. Mainly because I would not know what the classes include exactly. Have read=20 34.1 Text Representtions 34.7 Character Sets 36.2.1 Table of Syntax Classes and=20 35.3.1.1 Special Characters in Regular Expressions 35.3.1.2 Character Classes 35.3.1.3 Backslash Constructs in Regular Expressions Would I have missed other things important to the discussion ?