From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bidirectional text and URLs Date: Mon, 01 Dec 2014 22:21:27 +0200 Message-ID: <83h9xf6rzs.fsf@gnu.org> 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> <83k32b6u5l.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1417465307 32238 80.91.229.3 (1 Dec 2014 20:21:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2014 20:21:47 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 01 21:21:40 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 1XvXTX-0001tV-N9 for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 21:21:39 +0100 Original-Received: from localhost ([::1]:33722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvXTX-0007uA-Aw for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 15:21:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvXTP-0007ts-EI for emacs-devel@gnu.org; Mon, 01 Dec 2014 15:21:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvXTG-0001bs-TG for emacs-devel@gnu.org; Mon, 01 Dec 2014 15:21:31 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:61999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvXTG-0001aV-LL; Mon, 01 Dec 2014 15:21:22 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NFX00100754YO00@a-mtaout22.012.net.il>; Mon, 01 Dec 2014 22:21:21 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFX0013277KGX90@a-mtaout22.012.net.il>; Mon, 01 Dec 2014 22:21:21 +0200 (IST) In-reply-to: <83k32b6u5l.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:178647 Archived-At: > Date: Mon, 01 Dec 2014 21:34:46 +0200 > From: Eli Zaretskii > Cc: larsi@gnus.org, emacs-devel@gnu.org > > The first one sounds pretty complicated. I need to think about its > feasibility. A simple (as in "KISS") strategy that should always work is to copy the entire physical line around the region. The disadvantage is, of course, that it could be very long in some rare cases. Optimizing that would probably require replacing runs of certain types of characters with a single representative character of the same type, and keeping all the directional controls. We could also replace strong directional characters L/R/AL with the corresponding mark (LRM/RLM/ALM), which are displayed as (thin) spaces, and so will be almost invisible, keeping an illusion of copying just the region of text and nothing else. Is this good enough?