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: Compositions and bidi display Date: Wed, 28 Apr 2010 06:18:22 +0300 Message-ID: <83mxwoxo1t.fsf@gnu.org> References: <3A521851-F7CC-45DB-A2ED-8348EF96D5CF@Freenet.DE> <83fx2q5w86.fsf@gnu.org> <834oj22e96.fsf@gnu.org> <837hnuys42.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1272424709 8380 80.91.229.12 (28 Apr 2010 03:18:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 03:18:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 28 05:18:28 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 1O6xn8-0007pS-Iu for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 05:18:26 +0200 Original-Received: from localhost ([127.0.0.1]:49429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6xn7-0004eY-SK for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 23:18:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6xn2-0004dk-CC for emacs-devel@gnu.org; Tue, 27 Apr 2010 23:18:20 -0400 Original-Received: from [140.186.70.92] (port=57868 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6xn1-0004co-At for emacs-devel@gnu.org; Tue, 27 Apr 2010 23:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6xmz-0000fd-Pk for emacs-devel@gnu.org; Tue, 27 Apr 2010 23:18:19 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:42595) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6xmz-0000fT-6H for emacs-devel@gnu.org; Tue, 27 Apr 2010 23:18:17 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0L1K00500H2S5F00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Wed, 28 Apr 2010 06:18:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.125.239]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L1K00238H6DU0A0@a-mtaout23.012.net.il>; Wed, 28 Apr 2010 06:18:14 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:124276 Archived-At: > From: Kenichi Handa > Cc: emacs-devel@gnu.org > Date: Tue, 27 Apr 2010 21:15:04 +0900 > > 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, 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.