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 23:03:32 +0900 Message-ID: <87zkbpvpl7.fsf@m17n.org> References: <83d38m19dk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331301886 16068 80.91.229.3 (9 Mar 2012 14:04:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2012 14:04:46 +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 15:04:44 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 1S60R0-0005Lb-D5 for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2012 15:04:42 +0100 Original-Received: from localhost ([::1]:38631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S60Qz-0004Sp-Np for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2012 09:04:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S60Qr-0004SB-OE for emacs-devel@gnu.org; Fri, 09 Mar 2012 09:04:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S60QS-00045f-L7 for emacs-devel@gnu.org; Fri, 09 Mar 2012 09:04:33 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:53763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S60QS-00045E-4R; Fri, 09 Mar 2012 09:04:08 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id q29E43jV008518; Fri, 9 Mar 2012 23:04:03 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id q29E43Dw009033; Fri, 9 Mar 2012 23:04:03 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id q29E42Uj014573; Fri, 9 Mar 2012 23:04:02 +0900 (JST) env-from (handa@m17n.org) In-Reply-To: <83d38m19dk.fsf@gnu.org> (message from Eli Zaretskii on Fri, 09 Mar 2012 10:11:51 +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:148950 Archived-At: In article <83d38m19dk.fsf@gnu.org>, Eli Zaretskii writes: > > If possible, I'd like to avoid inserting LRM unconditionally. > Why? They are invisible, so they are not displayed at all. In general, it's smarter to use LRM only where necessary. And when one cut&paste the keyboard layout (or some part of it) of l2r characters, he will be surprized by LRM characters. > > Is it possible to have this kind of function? > > > > (defun quail-help-require-LRM (char) > > (or (eq (get-char-code-property char 'bidi-class) 'L) > > ...)) > It's possible, but why bother? And with this function you will insert > the LRM for many characters that don't need that, like punctuation, > numbers, etc. ??? I want a function that returns t only for a character that require preceding LRM in the keyboard layout. > Also, `lower' and `upper' could be strings, in which case you need a > more complex test. We can give (if (string lower) (aref lower 0) lower) to that function. --- Kenichi Handa handa@m17n.org