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: bidi and shaping problems in describe-input-method Date: Fri, 09 Mar 2012 22:54:53 +0900 Message-ID: <87399hx4k2.fsf@m17n.org> References: <83boo61972.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331301366 12167 80.91.229.3 (9 Mar 2012 13:56:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2012 13:56:06 +0000 (UTC) Cc: list-general@mohsen.1.banan.byname.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 09 14:56:05 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S60Ic-0006k6-G5 for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2012 14:56:02 +0100 Original-Received: from localhost ([::1]:53489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S60IX-0005SH-KR for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2012 08:55:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S60ID-0005NG-3X for emacs-devel@gnu.org; Fri, 09 Mar 2012 08:55:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S60I6-00024q-8k for emacs-devel@gnu.org; Fri, 09 Mar 2012 08:55:36 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:52672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S60I5-00024S-OK; Fri, 09 Mar 2012 08:55:30 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id q29DtPDm007307; Fri, 9 Mar 2012 22:55:25 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id q29DtPjB008561; Fri, 9 Mar 2012 22:55:25 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id q29DtOUR013191; Fri, 9 Mar 2012 22:55:24 +0900 (JST) env-from (handa@m17n.org) In-Reply-To: <83boo61972.fsf@gnu.org> (message from Eli Zaretskii on Fri, 09 Mar 2012 10:15:45 +0200) X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 150.29.246.133 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:148949 Archived-At: In article <83boo61972.fsf@gnu.org>, Eli Zaretskii writes: > > (insert #x642 #x64C) > > (insert #x642 (propertize " " 'invisible t) #x64C) > This looks exactly identical to me (on MS-Windows), except that the > second one causes annoying behavior of cursor motion around the > inserted text. > Does it work for you on GNU/Linux? Yes. > If so, does it work for you to change > quail-insert-kbd-layout to use this trick in order to > separate the `lower' from the `upper' in the key cells? Yes. But it depends on the font selected for arabic and the shaping engine for that font. Some shapers display a glyph for an independent combining character with dotted circle (if the width of the glyph is zero). The better result is done by this: (insert #x642 (compose-string "\x64C" 0 1 "\t\x64C\t")) I tried it with 4 fonts on GNU/Linux and all were ok. > I tried that on my machine, and it didn't have the desired > effect. Please try above. --- Kenichi Handa handa@m17n.org