From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Bidirectional text and URLs Date: Sun, 30 Nov 2014 22:36:41 +0100 Message-ID: References: <87a93cngwv.fsf@uwakimon.sk.tsukuba.ac.jp> <837fyfml31.fsf@gnu.org> <874mtio7wh.fsf@uwakimon.sk.tsukuba.ac.jp> <83r3wml8kq.fsf@gnu.org> <83zjb9an0q.fsf@gnu.org> <831toka82r.fsf@gnu.org> <83oaro8km7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1417383444 23589 80.91.229.3 (30 Nov 2014 21:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2014 21:37:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 30 22:37:17 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XvCB9-00008R-KS for ged-emacs-devel@m.gmane.org; Sun, 30 Nov 2014 22:37:15 +0100 Original-Received: from localhost ([::1]:51827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvCB9-0002Ro-7X for ged-emacs-devel@m.gmane.org; Sun, 30 Nov 2014 16:37:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvCB0-0002RO-SS for emacs-devel@gnu.org; Sun, 30 Nov 2014 16:37:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvCAv-0002ep-HJ for emacs-devel@gnu.org; Sun, 30 Nov 2014 16:37:06 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:44380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvCAv-0002eh-6J; Sun, 30 Nov 2014 16:37:01 -0500 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XvCAb-0003Ns-H0; Sun, 30 Nov 2014 22:36:41 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEVzfmz5/OLy99qLm4yU pJS8xq7s8c8SDgY9PzDJ0rnc48Wms6NnVfgFAAACOUlEQVQ4jW1UPYvbQBAdUArBVTIhkKTyEgS5 SrDbhDQGbZGgegudO8OpUH6AVBpcnPqcDOsyhUDbWjpI9s9lZle2ZO4eRrvMm/dmP2YNVVU39VN1 i6auoKqr18BEeCNMkmZW1NfsmtyhQTw1zWIgQAjIhGGI3/0U2wOCA4T70E1fITwAJEEScAmcC4Gp PEFBAptDgl/x3drzILlPDjjHWQDcZnc2syQhJLOVkHcWIQlcEolmPw6ZnTA4RqZc4Be26Ts7eGJS pKQIQI3jdlReQCZUeEMbsWeF2I5bZ5USkVIhsJbiixLOihOBoUv9gVi/aMACWud6q3zCIDNkBBJK t1RETctCbUp+FnKj21wj6+rkqrVqGC0RegLJaMy10jbTkJ+MvqLVOfGtGhVosyDUDNCnXus3KFL0 Rp8M4iYDTqajYFF0pSN7n2QAQwiGiIuSck6diwAOO4yuV/Rjj9YeiwuxYxFhFTF2P0jxbSJMsVtH a2JYHD/TfZOkNE7hJOuI3XM+DPwfER10Ps7QiH1NeSJ4Zoqy16SInRNqvlBPQXosYrS6OBE+B67d XtCLiOiKT2eBxOYFXQugRV3w8e/D5uez+OMJNhMfyv73Q3mkY2C0qmiB97hTPIEVAzynJfELE/3O i6XXqle5Nv50b4jIHfJE7JYKOntzJajI2qeSuzHdVIPNBjPoouhGW922inoH28qO1Ayu1zN7fVbY ohwfjwAphW9vmQZCDvgIFm99Dwn+SxDwBsPGzf8DA8uWrT1CppYAAAAASUVORK5CYII= X-Now-Playing: Genesis's _Wind & Wuthering_: "Wot Gorilla?" X-Hashcash: 1:23:141130:emacs-devel@gnu.org::IKhLrDcQO5BqkYzV:0000000000000000000000000000000000000000004tY+ X-Hashcash: 1:23:141130:eliz@gnu.org::2yLlRgkWs4vnsmrH:00000BaEe In-Reply-To: <83oaro8km7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 30 Nov 2014 23:05:36 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1XvCAb-0003Ns-H0 MailScanner-NULL-Check: 1417988201.86045@S4f8Au1yx4e9/OTaWRrdCg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178545 Archived-At: Eli Zaretskii writes: > Can we please take a step back and try to identify the real problem > here? What exactly are we trying to detect and handle? Is it true > that we are trying to detect URLs whose characters got their "normal" > bidirectional properties overridden by some directional control > characters? If so, I can write a primitive that will take a region of > buffer text and examine it to detect this. Oh, great. My impression was that such functionality was off the table. > Next, given that you have detected the spoofed URL, what do you want > to do with it? Do you want to highlight it, do you want to de-spoof > (i.e. undo the spoofing) in some way, but still leave some indication > of the fact that it was spoofed, or maybe you want to remove any trace > of the spoofing as if it never happened (and leave the user oblivious > to the fact it did)? Yes, I want to unspoof the URL. Adding some markings to notify that this has been done would also be nice, perhaps by adding a 'warning face to the text or the like. > Given the answers to those questions, there's any number of possible > solutions that do NOT require inserting more directional controls. > Some of the possible solutions were already mentioned in this thread. > Here's another: cover the offending RLO with a display property > showing whatever you want -- a warning sign, a smiley, a string made > of a SPC character, anything. You can try it with your example: you > will see the spoofing gone immediately. Why is this worse than > inserting directional controls whose effect on the surrounding text > can be far reaching? RLOs are used legitimately, and I think they display you've selected for them now (a thin blank line) is good. So I don't want to uglify mail mode buffers just to handle this quite obscure URL UI problem. I mean, why shouldn't =E2=80=AEpeople be able to=E2=80=AC do this if they want to i= n a smooth way? (Ok, bad example, but these overrides are used legitimately in the bidi community, if I understand my extensive research correctly.) And displaying =E2=80=AEhttp://myspace.com/#/segami/moc.koobecaf//:sptth=E2= =80=AC with a couple of visible control characters doesn't really solve the problem, because most people will still assume that that's a link to Facebook, not to Myspace. Most people are not even aware that this bidi stuff exists. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no