From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mohsen BANAN Newsgroups: gmane.emacs.devel,gmane.emacs.bidi Subject: Re: Bidirectional editing in Emacs -- main design decisions Date: Mon, 25 Apr 2011 11:44:06 -0700 Organization: ByStar Federation of Autonomous Libre Services -- http://www.by-star.net Message-ID: References: <83bpkgl113.fsf@gnu.org> <8362qbsj7p.fsf@gnu.org> <83y636grgj.fsf@gnu.org> <838vuy9prx.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303768904 1708 80.91.229.12 (25 Apr 2011 22:01:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2011 22:01:44 +0000 (UTC) Cc: emacs-bidi@gnu.org, Mohsen BANAN , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 26 00:01:40 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QETqd-0004La-Kv for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2011 00:01:39 +0200 Original-Received: from localhost ([::1]:49154 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QETqd-0005L7-97 for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2011 18:01:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEQlZ-0001sl-5C for emacs-devel@gnu.org; Mon, 25 Apr 2011 14:44:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEQlX-00035P-ME for emacs-devel@gnu.org; Mon, 25 Apr 2011 14:44:13 -0400 Original-Received: from 0016.bacs.by-star.net ([198.62.92.166]:57284) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QEQlX-00034T-8n for emacs-devel@gnu.org; Mon, 25 Apr 2011 14:44:11 -0400 Original-Received: (qmail 25245 invoked from network); 25 Apr 2011 11:40:00 -0700 Original-Received: from 192.168.0.187 ([192.168.0.187]) by 0016.bacs.by-star.net ([198.62.92.166]) with ESMTP via TCP; 25 Apr 2011 18:40:00 -0000 X-Form-Name: murl-sendlink-toCloseFriends In-Reply-To: <838vuy9prx.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 25 Apr 2011 20:58:26 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 198.62.92.166 X-Mailman-Approved-At: Mon, 25 Apr 2011 18:01:37 -0400 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:138769 gmane.emacs.bidi:875 Archived-At: >>>>> On Mon, 25 Apr 2011 20:58:26 +0300, Eli Zaretskii said: >> From: Mohsen BANAN >> Date: Mon, 25 Apr 2011 10:31:57 -0700 >> Cc: emacs-devel@gnu.org >>=20 >> My mixed language text generated with emacs >> displays inconsistently in firefox vs emacs24. >>=20 >> For example when I write: >>=20 >> =D8=A7=D8=B3=D9=85 =DA=A9=D9=88=DA=86=DA=A9 =D9=85=D9=86 =D9=85=D8=AD= =D8=B3=D9=86 Mohsen =D9=88 =D8=A7=D8=B3=D9=85 =D8=AE=D8=A7=D9=86=D9=88=D8= =A7=D8=AF=DA=AF=D9=89 =D9=85=D9=86 =D8=A8=D9=86=D8=A7=D9=86 >> Banan =D8=A7=D8=B3=D8=AA. >>=20 >>=20 >> My first name is Mohsen =D9=85=D8=AD=D8=B3=D9=86 and my last name is >> Banan =D8=A8=D9=86=D8=A7=D9=86. Eli> Did you (setq bidi-display-reordering t) in the buffer where this is Eli> displayed? Without that, the bidirectional reordering does not Eli> happen. (Some day, this will be on by default, but not yet.) Of course Eli! (setq bidi-display-reordering t) is there when I compose and when I read. The problem is not with display of a pure Farsi line or a pure Latin line or a mixed Latin+Farsi line. The problem is with Fasri+Latin line.=20 In that it displays one way in emacs and a=20 differnt way in firefox. Your citation above of my email has somehow reproduced the problem. So, right here we have it captured. Look at the display of my original message=20 below: =D8=A7=D8=B3=D9=85 =DA=A9=D9=88=DA=86=DA=A9 =D9=85=D9=86 =D9=85=D8=AD=D8=B3= =D9=86 Mohsen =D9=88 =D8=A7=D8=B3=D9=85 =D8=AE=D8=A7=D9=86=D9=88=D8=A7=D8= =AF=DA=AF=D9=89 =D9=85=D9=86 =D8=A8=D9=86=D8=A7=D9=86 Banan =D8=A7=D8=B3=D8=AA. Now look at the display of citation line above starting on the left with ' >>' after the=20 >> For example when I write: You see how the Farsi piece (word sequence -- not character sequence) is flipped around "Mohsen". For example look at the dispaly ordering of=20 " Mohsen =D9=85=D8=AD=D8=B3=D9=86 " in the original vs citation. In the browser my original text appears as it does in the citation. This email in and of itself with the citation some how has produced the same display inconsistency that I mentioned between emacs24 and firefox. The problem is with a line starting in Farsi which includes Latin. And it displays just fine under emacs24 but word sequences are flipped when the browser renders that same byte sequence. All of this may well be not related to the design decision that you mentioned but the inconsistency with the browser rendering is real. ...Mohsen