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: improving bidi documents display Date: Thu, 24 Feb 2011 21:54:08 +0200 Message-ID: <837hcpryxr.fsf@gnu.org> References: Reply-To: Eli Zaretskii 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 1298577434 8045 80.91.229.12 (24 Feb 2011 19:57:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 19:57:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Osherovich Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 24 20:57:10 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PshI0-0004hi-0E for ged-emacs-devel@m.gmane.org; Thu, 24 Feb 2011 20:57:10 +0100 Original-Received: from localhost ([127.0.0.1]:55195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PshGu-0006BT-4K for ged-emacs-devel@m.gmane.org; Thu, 24 Feb 2011 14:54:44 -0500 Original-Received: from [140.186.70.92] (port=55938 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PshGW-0004bi-Ep for emacs-devel@gnu.org; Thu, 24 Feb 2011 14:54:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PshGN-0002uK-VT for emacs-devel@gnu.org; Thu, 24 Feb 2011 14:54:12 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PshGN-0002tq-Ob for emacs-devel@gnu.org; Thu, 24 Feb 2011 14:54:11 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LH5005000K1YA00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Thu, 24 Feb 2011 21:54:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.53.157]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LH50031U0M5LEJ0@a-mtaout22.012.net.il>; Thu, 24 Feb 2011 21:54:06 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136452 Archived-At: > Date: Thu, 24 Feb 2011 14:32:35 +0200 > From: Eli Osherovich >=20 > At the moment (using rev. 103371) I can edit Hebrew/English LaTeX > documents, however, the way they are displayed in Emacs is not perf= ect. > Please look at the file attached as you can see any English text th= at > appears inside a Hebrew paragraph requires certain decorations arou= nd it > (e.g., \L{some English text}) these decorations are displayed in an= ugly > fashion. Yes, it's a known problem. The Unicode UAX#9 Bidirectional algorithm (which is what Emacs implements for bidirectional display) does not produce good results with LaTeX (and with other kinds of markup). > Is there anything that can be done about it? Something _should_ be done, for sure. But for that, Someone=E2=84= =A2 should figure out how this kind of problems could be solved using Emacs display features. Any solution will probably involve reordering only parts of text, but a more detailed design suggestion is needed before it can be implemented. People are welcome to try to tackle this, because I'm still busy with low-level bidi support of plain text.