Re: Bidirectional editing in Emacs -- main design decisions
Mohsen BANAN <[email protected]> Mon, 25 Apr 2011 11:44:06 -0700
| Newsgroups | gmane.emacs.devel,gmane.emacs.bidi |
|---|---|
| Organization | ByStar Federation of Autonomous Libre Services -- http://www.by-star.net |
| Message-ID | <[email protected]> |
>>>>> On Mon, 25 Apr 2011 20:58:26 +0300, Eli Zaretskii <[email protected]> said: >> From: Mohsen BANAN <[email protected]> >> Date: Mon, 25 Apr 2011 10:31:57 -0700 >> Cc: [email protected] >>=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