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, a simple solution Date: Wed, 03 Nov 2021 21:46:54 +0200 Message-ID: <838ry5ggy9.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> <83v91aibe7.fsf@gnu.org> <87o872s0wf.fsf_-_@db48x.net> <83lf25gm1j.fsf@gnu.org> <86h7ctyupr.fsf@mail.linkov.net> <11d5fecb44ffbf6b7dd1@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17483"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, yuri.v.khan@gmail.com, stefan@marxist.se, emacs-devel@gnu.org, db48x@db48x.net, monnier@iro.umontreal.ca, juri@linkov.net To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 03 20:47:39 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 1miMEU-0004MD-QC for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 20:47:38 +0100 Original-Received: from localhost ([::1]:51494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miMET-0006kL-E0 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 15:47:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMDq-00065I-5C for emacs-devel@gnu.org; Wed, 03 Nov 2021 15:46:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMDn-0004tA-Pd; Wed, 03 Nov 2021 15:46:55 -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=wwSNp3mPWpI73ASDLoJ0+eATqkPBonDUtxYcbrBhxbE=; b=E122nyAanrpL 4Wd7oYwU/EgNOOSiJEDGkrockM4iSw9D53UVciBSGYo4NnWFdh3Q3vUdyo5dIGmCmMQicyk569gw2 E2WTs6rsV0a+ReF3l8uAx4nZCwqxw5UjUrPQNOUN53nMwOPUacTLmnJe2MPc994hqja+We8R6HJO/ H2n+P4Qw/t2PBFq9j5AWlaSX8KTIsKE24MfcSkMGdKRaZBg3JiijL+YmSjavtlNy1eTCvkDlLFYC9 auW5W74buuh3QO/RjpNrN/fXEcatBGUnT+FMn5DVPCmlhArGd2ycALwLcuqUm+I0TyfFijE9o1UCj DuTV2WOIPaffKNPBcUwihA==; Original-Received: from [87.69.77.57] (port=4054 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 1miMDn-0003P0-Ak; Wed, 03 Nov 2021 15:46:55 -0400 In-Reply-To: <11d5fecb44ffbf6b7dd1@heytings.org> (message from Gregory Heytings on Wed, 03 Nov 2021 19:02:19 +0000) 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:278617 Archived-At: > Date: Wed, 03 Nov 2021 19:02:19 +0000 > From: Gregory Heytings > cc: Eli Zaretskii , cpitclaudel@gmail.com, stefan@marxist.se, > emacs-devel@gnu.org, db48x@db48x.net, monnier@iro.umontreal.ca, > Yuri Khan > > > >> Anyway, if one wants to be able to highlight certain characters on > >> display, one could also use highlight-regexp, I think. > > > > Or markchars.el with markchars-what customized to markchars-confusables. > > > > Neither would work AFAICS, because these characters are glyphless. > Highlighting a glyphless character will not make it more visible. ??? Of course, it will make it more visible: if the face has a distinct background. The "thin space" display looks like whitespace, and whitespace can have background color to make it stand out.