From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: case-insensitive string comparison Date: Wed, 20 Jul 2022 15:30:00 +0200 Message-ID: References: <2492DD45-FAF2-4A8F-AA70-0B10AA6FFB35@acm.org> <834jzcm2yu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q/ASRHZH1S5ODUjM" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6050"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, mattiase@acm.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 20 15:33:58 2022 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 1oE9pt-0001LA-Q2 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jul 2022 15:33:57 +0200 Original-Received: from localhost ([::1]:48856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE9ps-0005rD-Sh for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jul 2022 09:33:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE9mC-0000pK-Lg for emacs-devel@gnu.org; Wed, 20 Jul 2022 09:30:08 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:48422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE9mA-0001kw-EA; Wed, 20 Jul 2022 09:30:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8m88Vv65SG9r99wKiUuxiUpyErrNkD2PI21DFsIpU44=; b=Op5tJzcx6nhvyPMYBgvLX+4Gke nZ3z2M1oy5X+VX2jYSmakfM1pj335/xqazVJZEJ13u0U+iEkuGTuPuvi+mghJgHVx5WM3ezXb9LxE i6k5DrTwlDnbAFq0AFoxfI+pWFONwRb6wrGyhe+Av8caM21ZdF63hvayWCtf8ri7CwqRJZpFnKbuq EV0ZrRI4Fmi3Jv0pyzGp+H85mDS/aCNixGmlxwMiJrz4I7xmtuLUdUw94p0Ys0X2IMWBFmdG1aAD9 pboq25lUZvVBln67gEUw6z5KELuQLsuGIbddGfupvfHH8SjgHn7cC4totzVyqcQDCIr2dUOFh5vQW CMIMoMrw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1oE9m4-0001sg-A0; Wed, 20 Jul 2022 15:30:00 +0200 Content-Disposition: inline In-Reply-To: <834jzcm2yu.fsf@gnu.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.devel:292305 Archived-At: --Q/ASRHZH1S5ODUjM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 20, 2022 at 02:35:21PM +0300, Eli Zaretskii wrote: > > Date: Wed, 20 Jul 2022 06:39:46 +0200 > > Cc: Mattias Engdeg=C3=A5rd > > From: [...] > > Human languages are a messy mix, in which politics figures > > prominently. Unicode reflects that. >=20 > This could be hard on the Unicode Consortium, but relatively easy in > Emacs: just bind the case table of the current buffer to something > reasonable around code which performs case-insensitive comparison. =2E..still: "something reasonable" is (human) language-dependent; if you're writing a German-Turkish dictionary... Cheers --=20 t --Q/ASRHZH1S5ODUjM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYtgDUQAKCRAFyCz1etHa Rs3bAJ9f4mRcz2KS0dlGJIT7c/JmueYg6QCeLWx1eJ4pgh1YUfD6FXbtldB3A/8= =KOul -----END PGP SIGNATURE----- --Q/ASRHZH1S5ODUjM--