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: bidi and shaping problems in describe-input-method Date: Fri, 09 Mar 2012 18:15:18 +0200 Message-ID: <83obs5zr6x.fsf@gnu.org> References: <87399hx4k2.fsf@m17n.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1331309780 16989 80.91.229.3 (9 Mar 2012 16:16:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2012 16:16:20 +0000 (UTC) Cc: list-general@mohsen.1.banan.byname.net, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 09 17:16:19 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 1S62UL-0007lH-Ut for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2012 17:16:18 +0100 Original-Received: from localhost ([::1]:52449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S62UL-00077t-9H for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2012 11:16:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S62UI-00077e-Ij for emacs-devel@gnu.org; Fri, 09 Mar 2012 11:16:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S62UD-0005ba-M6 for emacs-devel@gnu.org; Fri, 09 Mar 2012 11:16:14 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:50260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S62UD-0005bP-E1 for emacs-devel@gnu.org; Fri, 09 Mar 2012 11:16:09 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M0M00C00L0ZLT00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Fri, 09 Mar 2012 18:15:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.138.42]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M0M00CCOL5BHAA0@a-mtaout23.012.net.il>; Fri, 09 Mar 2012 18:15:12 +0200 (IST) In-reply-to: <87399hx4k2.fsf@m17n.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 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:148954 Archived-At: > From: Kenichi Handa > Cc: list-general@mohsen.1.banan.byname.net, emacs-devel@gnu.org > Date: Fri, 09 Mar 2012 22:54:53 +0900 > > 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). It looks like Uniscribe on Windows, or at least its version supplied with XP, doesn't live in peace with zero-width combining characters, which is why I don't see the effect of inserting an invisible space. > The better result is done by this: > > (insert #x642 (compose-string "\x64C" 0 1 "\t\x64C\t")) Yes, that's what "C-u C-x =" does, and it works for me as well.