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 22:31:09 +0200 Message-ID: <83zgqlf0c2.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> <838ry5ggy9.fsf@gnu.org> <11d5fecb446ff1ae06b6@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36191"; 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 21:32:27 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 1miMvr-0009EA-N4 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 21:32:27 +0100 Original-Received: from localhost ([::1]:38336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miMvq-0004Lp-Kz for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 16:32:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMuj-0002qS-2n for emacs-devel@gnu.org; Wed, 03 Nov 2021 16:31:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMue-0000ax-VR; Wed, 03 Nov 2021 16:31:12 -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=SKPeA60dbzV6G2MigKtj3seE7eYf2yTGL/Tdoyq/P2o=; b=cxhqx+TH3SBX gTGSgJ5z+tft0mTFY/vNayWnlNFT+aNupxRvDeh4XHKXq8MNYbGcX86GfHc/wha5UiFnxQx0rRtWw s320C0V2O1ZNppx5Y+vSAWsYvN+hPmY4hawz2Lfh/+8vfsbxSRgRDGgft2/1EYZ4QBcmtoN51mWGv GiEYBE1aAVpjn8DdZezH+pktoMwfG3dX2tCek32XZXAJ+LetqLjFUgqvj7Z/jRdgZZ6rbNMd7TC5d x7YI6b5HS4LS7Gzv2TBw52UUFz5Vhjsmw5yToYIA5kPzlPiT9+Rjg1t/OCt5sx+FHBCbNtaggHiC5 BqKIyvvoy/+Szz0fX9LLOA==; Original-Received: from [87.69.77.57] (port=2808 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 1miMue-0008AR-Gd; Wed, 03 Nov 2021 16:31:12 -0400 In-Reply-To: <11d5fecb446ff1ae06b6@heytings.org> (message from Gregory Heytings on Wed, 03 Nov 2021 20:21:50 +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:278627 Archived-At: > Date: Wed, 03 Nov 2021 20:21:50 +0000 > From: Gregory Heytings > cc: juri@linkov.net, cpitclaudel@gmail.com, stefan@marxist.se, > emacs-devel@gnu.org, db48x@db48x.net, monnier@iro.umontreal.ca, > yuri.v.khan@gmail.com > > > >>>> 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. > > > > I tried various of the predefined colors with highlight-regexp, of course > those with a distinct background, and none make any of those characters > more visible. Not even with a single pixel wide bar. That's very strange, because I see them even if I make the region span only a single such character. The default background of the region face is quite pale, and still I see them quite clearly, even with the default light theme.