From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Bidirectional text and URLs Date: Sun, 07 Dec 2014 19:26:33 -0500 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> <83a938aeuc.fsf@gnu.org> <838uir8huv.fsf@gnu.org> <831toi6r4w.fsf@gnu.org> <83sigy53m2.fsf@gnu.org> <83d28061nt.fsf@gnu.org> <83zjb11y76.fsf@gnu.org> <83iohnzcfk.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1417998406 7402 80.91.229.3 (8 Dec 2014 00:26:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 00:26:46 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 08 01:26:41 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 1Xxm9x-00089x-2k for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2014 01:26:41 +0100 Original-Received: from localhost ([::1]:59652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxm9w-0000Ly-Ln for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 19:26:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxm9s-0000Lh-2z for emacs-devel@gnu.org; Sun, 07 Dec 2014 19:26:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xxm9r-0001oi-8j for emacs-devel@gnu.org; Sun, 07 Dec 2014 19:26:36 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxm9r-0001od-5B for emacs-devel@gnu.org; Sun, 07 Dec 2014 19:26:35 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Xxm9p-00016c-AB; Sun, 07 Dec 2014 19:26:33 -0500 In-reply-to: <83iohnzcfk.fsf@gnu.org> (message from Eli Zaretskii on Sun, 07 Dec 2014 17:50:39 +0200) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:179338 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > If so, the questionis: once you detect the strangeness, what then? > It's up to the application. Alas, that's ducking the issue. We need to confront this issue. > That's easy: copy the text without the directional override and > display it in some other buffer. The position returned by > bidi-find-overridden-directionality is of the 1st character following > the override control, so copying the text starting at that position > will exclude the override and avoid its effects. That is the first magic bidi char, but there could be more. It would be necessary to remove them all. However, is simply removing them correct? In general, do magic bidi characters get include in the URL that is passed to the browser? I would expect so. If so, a string which does not include them is inaccurate, and the accurate thing to do is to include them and display them (perhaps in hex) while suppressing their bidi effect. Also, don't some RTL characters cause some normally LTR characters to display RTL? That too could cause confusion, right? -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.