From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Bidirectional text and URLs Date: Tue, 02 Dec 2014 03:32:07 +0900 Message-ID: <87d283mdaw.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87a93cngwv.fsf@uwakimon.sk.tsukuba.ac.jp> <837fyfml31.fsf@gnu.org> <874mtio7wh.fsf@uwakimon.sk.tsukuba.ac.jp> <83r3wml8kq.fsf@gnu.org> <87zjb8n6th.fsf@uwakimon.sk.tsukuba.ac.jp> <837fyb8htc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1417458802 21712 80.91.229.3 (1 Dec 2014 18:33:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2014 18:33:22 +0000 (UTC) Cc: larsi@gnus.org, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 01 19:33:13 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 1XvVma-0004zz-Ek for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 19:33:12 +0100 Original-Received: from localhost ([::1]:33180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVmZ-00078f-U3 for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 13:33:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVm6-000764-Re for emacs-devel@gnu.org; Mon, 01 Dec 2014 13:32:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvVlz-0004zJ-8A for emacs-devel@gnu.org; Mon, 01 Dec 2014 13:32:42 -0500 Original-Received: from shako.sk.tsukuba.ac.jp ([130.158.97.161]:57309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVlq-0004kS-3i; Mon, 01 Dec 2014 13:32:26 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by shako.sk.tsukuba.ac.jp (Postfix) with ESMTPS id DF0C11C39C0; Tue, 2 Dec 2014 03:32:07 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id BA62C1A273D; Tue, 2 Dec 2014 03:32:07 +0900 (JST) In-Reply-To: <837fyb8htc.fsf@gnu.org> X-Mailer: VM undefined under 21.5 (beta34) "kale" acf1c26e3019 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 130.158.97.161 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:178619 Archived-At: Eli Zaretskii writes: > . modify the way the relevant directional controls are displayed to > make them prominently apparent -0 I don't think this will help enough, especially for the users who would most benefit from Emacs's automated paranoia (ie, those who read bidi but not RFCs). > . allow the user to request a temporary display of the URL in its > original logical order, before the reordering, or maybe do that > automatically in a tooltip +1 for the tooltip, with url-encoding for format characters, which are non-conforming to RFC 3987 anyway. Note that RFC 3987 specifies that bidirectional IRIs must *always* be displayed with the UBA, and as if in an LRE embedding. I'm not sure how you would enforce it, but I believe this would defang larsi's example (ie, at the start of the URI proper in logical order insert a LRE, and at the end a PDF -- any directional format characters between those points are nonconforming to RFC 3987, section 4.1, last paragraph). > . replace the relevant directional controls with percent-hex encoded > representation, which will as result disable the reordering -1 If they're outside of the IRI, this will just make things ugly. If they're inside the IRI, they're non-conforming and therefore bogus, and would be caught by the tooltip. > . cover the relevant directional controls with a display property > (e.g., with a display string " "), which will also disable > reordering -0 This is just a specific implementation of the first option above, right?