From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bidi,gmane.emacs.devel Subject: Re: Arabic support Date: Wed, 01 Sep 2010 02:11:24 -0400 Message-ID: References: <83bp8oml9c.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1283321493 2078 80.91.229.12 (1 Sep 2010 06:11:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 06:11:33 +0000 (UTC) Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org, jasonr@gnu.org To: Kenichi Handa Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Wed Sep 01 08:11:31 2010 Return-path: Envelope-to: gnu-emacs-bidi@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 1OqgXj-0005gP-DX for gnu-emacs-bidi@m.gmane.org; Wed, 01 Sep 2010 08:11:31 +0200 Original-Received: from localhost ([127.0.0.1]:48636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqgXi-0004zO-4v for gnu-emacs-bidi@m.gmane.org; Wed, 01 Sep 2010 02:11:30 -0400 Original-Received: from [199.232.76.173] (port=48378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqgXf-0004yc-JM for emacs-bidi@gnu.org; Wed, 01 Sep 2010 02:11:27 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OqgXe-000185-Ik for emacs-bidi@gnu.org; Wed, 01 Sep 2010 02:11:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:59645) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OqgXe-000180-Bj; Wed, 01 Sep 2010 02:11:26 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OqgXc-0001rS-49; Wed, 01 Sep 2010 02:11:24 -0400 In-reply-to: (message from Kenichi Handa on Wed, 01 Sep 2010 11:17:03 +0900) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-bidi@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of Emacs support for multi-directional text." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Errors-To: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bidi:788 gmane.emacs.devel:129531 Archived-At: > From: Kenichi Handa > Cc: jasonr@gnu.org, emacs-bidi@gnu.org, emacs-devel@gnu.org > Date: Wed, 01 Sep 2010 11:17:03 +0900 > > I read the function uniscribe_shape roughly. It has this > code: > > for (i = 0; i < nitems; i++) > { > int nglyphs, nchars_in_run, rtl = items[i].a.fRTL ? -1 : 1; > [...] > if (SUCCEEDED (result)) > { > int j, nclusters, from, to; > > from = rtl > 0 ? 0 : nchars_in_run - 1; > > Doesn't it mean uniscribe_shape reorders glyphs? This reorders a single LGSTRING, according to my reading. Isn't an LGSTRING a single grapheme cluster, rather than several distinct characters? Btw, where's the documentation of LGSTRING? The commentary to uniscribe_shape says to look in font-make-gstring, but I cannot find that, neither as function nor as variable. In general, everything about compositions and lgstrings needs a lot more of documentation.