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: Compositions and bidi display Date: Wed, 28 Apr 2010 13:01:10 +0900 Message-ID: References: <3A521851-F7CC-45DB-A2ED-8348EF96D5CF@Freenet.DE> <83fx2q5w86.fsf@gnu.org> <834oj22e96.fsf@gnu.org> <837hnuys42.fsf@gnu.org> <83mxwoxo1t.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272427184 13957 80.91.229.12 (28 Apr 2010 03:59:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 03:59:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 28 05:59:43 2010 connect(): No such file or directory 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 1O6yR4-00056x-Rz for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 05:59:43 +0200 Original-Received: from localhost ([127.0.0.1]:56050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6yR3-0007Mx-Qp for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 23:59:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6yQv-0007Kt-UY for emacs-devel@gnu.org; Tue, 27 Apr 2010 23:59:33 -0400 Original-Received: from [140.186.70.92] (port=39096 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6yQt-0007KG-Vn for emacs-devel@gnu.org; Tue, 27 Apr 2010 23:59:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6yQs-0004q6-EF for emacs-devel@gnu.org; Tue, 27 Apr 2010 23:59:31 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:32803) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6yQp-0004pX-TJ; Tue, 27 Apr 2010 23:59:28 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o3S3xO9M016683; Wed, 28 Apr 2010 12:59:24 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o3S3xO4C000687; Wed, 28 Apr 2010 12:59:24 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id o3S3xO6D014170; Wed, 28 Apr 2010 12:59:24 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1O6ySU-0001rw-DQ; Wed, 28 Apr 2010 13:01:10 +0900 In-Reply-To: <83mxwoxo1t.fsf@gnu.org> (message from Eli Zaretskii on Wed, 28 Apr 2010 06:18:22 +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:124277 Archived-At: In article <83mxwoxo1t.fsf@gnu.org>, Eli Zaretskii writes: > > Provided that uppercase letters denote Hebrew consonants, > > lowercase denotes Hebrew diacriticals, a buffer has the > > character sequence "AaBbCc", CHARPOS is the position of 'c', > > ENDPOS is the position of 'A'. > > [...] > > To do all of them, perhaps all I need is to know the way to > > find the correct ENDPOS. Please tell me how to do that. > What is the definition of ENDPOS? If that's the beginning of the > composition sequence, that's the same question I asked, for which I > don't know the answer. If that's the other end of the R2L run of > characters, Yes, that one. > you need to iterate with bidi_get_next_char_visually until > some condition (which I cannot yet formulate) is > satisfied. But note that this is tricky, because the bidi > iteration changes direction and jumps at will. The condition should be "until it reaches a character that should never be composed with the currently looking character". We may be able to simplify that condition to "until it reaches a character in the different bidi level (or chunk)". --- Kenichi Handa handa@m17n.org