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: Unicode confusables and reordering characters considered harmful Date: Tue, 02 Nov 2021 21:51:44 +0200 Message-ID: <83v91aibe7.fsf@gnu.org> References: <875ytag0hb.fsf@yahoo.com> <87zgqmd5np.fsf@mat.ucm.es> <83wnlqk3rn.fsf@gnu.org> <72dd5c2a-42c7-b12e-05ed-e93adbd89727@gmail.com> <83ilxajyhw.fsf@gnu.org> <83fssejxf8.fsf@gnu.org> <835ytajsv2.fsf@gnu.org> <831r3yjqo9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, stefan@marxist.se, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 02 20:53:13 2021 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 1mhzqL-0008fG-IY for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Nov 2021 20:53:13 +0100 Original-Received: from localhost ([::1]:53514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhzqJ-000558-NE for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Nov 2021 15:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhzp1-0003NK-BG for emacs-devel@gnu.org; Tue, 02 Nov 2021 15:51:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhzoz-0008Sq-HF; Tue, 02 Nov 2021 15:51:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=WZMgOIMpNqsJ4PO99XUlplEWqiwkcC6JAzvdN/5gTtM=; b=R1XtbTxSxFxtTtIPEDzC 4o0qU2GqsfK0dpHPqZNNU16vjD8hnuZLP1rZCZMeuCZazrr5GoPf6LzxijquQCJCfG0agbFhmOoU4 aLPn8pM0Eb4rHfdJfx9BgaWK/SJQF5DXT5leJ695gpzrV6s8IIi7TZcvgrGtKBK6bC4LltRSIFvyn O/se1vqf3DdDddCkyGhe+EiuaCrd6qAmX6pJ4S8JhaOVfZMbck/adhv9XwTVhU76mBEdcUObqryxY idDaRoxw3okvxu/BPMxTcr/CQiaZ7AIirvfjl9nSyhfKKy+DB7JkofNoNXoV0yK677g9/8l63YctY wcSlEZBMDwpBVA==; Original-Received: from [87.69.77.57] (port=3380 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhzoy-0007OU-KV; Tue, 02 Nov 2021 15:51:49 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 02 Nov 2021 15:47:27 -0400) 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:278532 Archived-At: > From: Stefan Monnier > Cc: stefan@marxist.se, cpitclaudel@gmail.com, emacs-devel@gnu.org > Date: Tue, 02 Nov 2021 15:47:27 -0400 > > > In most cases, there's no need to make these controls stand out, > > because situations where this presents security risks are extremely > > rare, to put it mildly, and OTOH having them stand out more by default > > will make it harder to read text with completely legitimate uses of > > these controls (example: TUTORIAL.he). > > Fully agreed. That's the problem: how to define the problematic cases > in a precise enough way that it doesn't rule out all lots of > legitimate cases. That's what bidi-find-overridden-directionality already does, albeit not yet for the specific examples in that paper. But Someoneā„¢ should write a minor mode or an optional display feature which uses that function to highlight the problematic stretches of text on display, using the function's output for finding such stretches of text.