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 in tooltips Date: Sat, 06 Nov 2010 19:46:35 +0200 Message-ID: <837hgqny4k.fsf@gnu.org> References: <838w16o7xg.fsf@gnu.org> <4CD58EF7.40004@swipnet.se> 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 1289065604 15537 80.91.229.12 (6 Nov 2010 17:46:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Nov 2010 17:46:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?UTF-8?B?SmFuIERqw6Rydg==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 06 18:46:40 2010 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 1PEmqd-0004LX-Os for ged-emacs-devel@m.gmane.org; Sat, 06 Nov 2010 18:46:39 +0100 Original-Received: from localhost ([127.0.0.1]:58142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEmqd-0005Ya-45 for ged-emacs-devel@m.gmane.org; Sat, 06 Nov 2010 13:46:39 -0400 Original-Received: from [140.186.70.92] (port=46039 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEmqY-0005YI-Uj for emacs-devel@gnu.org; Sat, 06 Nov 2010 13:46:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEmqX-00075o-Ms for emacs-devel@gnu.org; Sat, 06 Nov 2010 13:46:34 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:60769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEmqX-00075Y-Ee for emacs-devel@gnu.org; Sat, 06 Nov 2010 13:46:33 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LBH0070045WRT00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 06 Nov 2010 19:46:32 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.249.126]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LBH007SI5DFI280@a-mtaout22.012.net.il>; Sat, 06 Nov 2010 19:46:29 +0200 (IST) In-reply-to: <4CD58EF7.40004@swipnet.se> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:132421 Archived-At: > Date: Sat, 06 Nov 2010 18:23:03 +0100 > From: Jan Dj=C3=A4rv > CC: emacs-devel@gnu.org >=20 > Well, not sure how it is supposed to look, but here are the NS and = Gtk+ > results. Thanks. > The first image is from NS, but Gtk+ looks the same. This image looks good, although the string seems to be flushed to the left; the w32 display is slightly better in this case, and so should be the non-GTK display on X. However, judging by the second example, I'm guessing that this is NS-only problem, in this case as well, and GTK did flush the text to the right, did it? > The ! has moved to the left, maybe that is intended? Yes, because the text is read right-to-left, so the reordering engine shows it correctly, with the exclam at the end of the text. (This doesn't happen in the x-show-tip call in *scratch*, because the trailing quote prevents that, per UBA, the Unicode Bidirectional Algorithm.) > For the second test, the NS does not align the same way Gtk+ does (= I added > some text to make this clear). I guess NS is wrong here. Yes, GTK's display is correct, NS's display is not. Looks like NS does not determine the paragraph direction dynamically as required by the UBA. Perhaps there's some NS setting outside Emacs that enables that? Anyway, it looks like these two toolkits produce reasonable results, even though NS is slightly incorrect. (I don't expect many tooltips with mixed L2R and R2L text.) Thanks for testing this.