From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: RLM and LRM are composed? Date: Thu, 01 Apr 2010 15:39:30 +0900 Message-ID: References: <837hov159z.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 1270104147 20233 80.91.229.12 (1 Apr 2010 06:42:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2010 06:42:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 01 08:42:23 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 1NxE6g-0006f9-2i for ged-emacs-devel@m.gmane.org; Thu, 01 Apr 2010 08:42:22 +0200 Original-Received: from localhost ([127.0.0.1]:56117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxE6f-0001Pa-0p for ged-emacs-devel@m.gmane.org; Thu, 01 Apr 2010 02:42:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxE48-0000cx-Q8 for emacs-devel@gnu.org; Thu, 01 Apr 2010 02:39:44 -0400 Original-Received: from [140.186.70.92] (port=53486 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxE45-0000b3-T5 for emacs-devel@gnu.org; Thu, 01 Apr 2010 02:39:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxE44-0002ga-QG for emacs-devel@gnu.org; Thu, 01 Apr 2010 02:39:41 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:45223) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxE40-0002fg-C8; Thu, 01 Apr 2010 02:39:36 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o316dVj7017990; Thu, 1 Apr 2010 15:39:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o316dVtS001949; Thu, 1 Apr 2010 15:39:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id o316dVH4007629; Thu, 1 Apr 2010 15:39:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1NxE3v-0001pn-1C; Thu, 01 Apr 2010 15:39:31 +0900 In-Reply-To: <837hov159z.fsf@gnu.org> (message from Eli Zaretskii on Mon, 29 Mar 2010 19:06:32 +0300) X-detected-operating-system: by eggs.gnu.org: Solaris 9 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:123005 Archived-At: In article <837hov159z.fsf@gnu.org>, Eli Zaretskii writes: > Evaluate this form: > (aset standard-display-table ?=E2=80=8E (vconcat "->")) > and then visit a file with this single line: > Hebrew =E2=80=8F(=D7=A2=D7=91=D7=A8=D7=99=D7=AA) =D7=A9=D7=9C=D7=95= =D7=9D > The character being set up in the standard-display-table is RLM, > RIGHT-TO-LEFT MARK. If you are reading this in a GUI session, chances > are it will be displayed as whitespace. The same character is before > the left paren after "Hebrew". However, Emacs does not display "->" > instead of it, as I'd expect. It thinks it does (try "C-u C-x =3D" on > that character), but it doesn't. > If I step with a debugger through produce_glyphs (in the TTY case) or > through x_produce_glyphs (in the GUI case), I see that the glyph we > produce for displaying this character is not IT_CHARACTER, but > IT_COMPOSITION. Current code try to compose any non-spacing mark characters with the previous spacing characters. But, the detection of non-spacing mark is done by (=3D (aref char-width-table CH) 0). This should be changed to check char-code-property `general-category'. I'll fix the code soon, but at the moment, you can workaround the problem by this: (aset composition-function-table #x200f nil) --- Kenichi Handa handa@m17n.org