From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?=22Martin_J=2E_D=FCrst=22?= Newsgroups: gmane.emacs.bidi,gmane.emacs.devel Subject: Re: Re: Arabic support Date: Wed, 01 Sep 2010 12:47:23 +0900 Organization: Aoyama Gakuin University Message-ID: <4C7DCCCB.5060506@it.aoyama.ac.jp> References: <83bp8oml9c.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283312870 11653 80.91.229.12 (1 Sep 2010 03:47:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 03:47:50 +0000 (UTC) Cc: jasonr@gnu.org, emacs-bidi@gnu.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Wed Sep 01 05:47:48 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 1OqeIb-0007rC-7v for gnu-emacs-bidi@m.gmane.org; Wed, 01 Sep 2010 05:47:45 +0200 Original-Received: from localhost ([127.0.0.1]:42908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqeIa-000754-L3 for gnu-emacs-bidi@m.gmane.org; Tue, 31 Aug 2010 23:47:44 -0400 Original-Received: from [140.186.70.92] (port=56883 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqeIX-00074t-H2 for emacs-bidi@gnu.org; Tue, 31 Aug 2010 23:47:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqeIV-0004kd-2W for emacs-bidi@gnu.org; Tue, 31 Aug 2010 23:47:41 -0400 Original-Received: from scintmta01.scbb.aoyama.ac.jp ([133.2.253.33]:40070) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqeIU-0004j4-Ik for emacs-bidi@gnu.org; Tue, 31 Aug 2010 23:47:39 -0400 Original-Received: from scmse01.scbb.aoyama.ac.jp ([133.2.253.231]) by scintmta01.scbb.aoyama.ac.jp (secret/secret) with SMTP id o813lRd3016946 for ; Wed, 1 Sep 2010 12:47:28 +0900 Original-Received: from (unknown [133.2.206.133]) by scmse01.scbb.aoyama.ac.jp with smtp id 580f_1c0f_a3984210_b57b_11df_a840_001d096c566a; Wed, 01 Sep 2010 12:47:27 +0900 Original-Received: from [IPv6:::1] ([133.2.210.1]:34618) by itmail.it.aoyama.ac.jp with [XMail 1.22 ESMTP Server] id for from ; Wed, 1 Sep 2010 12:47:33 +0900 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100722 Eudora/3.0.4 In-Reply-To: X-MIME-Autoconverted: from 8bit to quoted-printable by scintmta01.scbb.aoyama.ac.jp id o813lRd3016946 X-detected-operating-system: by eggs.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:785 gmane.emacs.devel:129528 Archived-At: We have made similar observations with what might be double reordering=20 (or no reordering) on a Windows system. I expect we will report more=20 details tomorrow. Regards, Martin. On 2010/09/01 11:17, Kenichi Handa wrote: > In article, Eli Zaretskii writes: > >>> In Emacs, bidi reordering is done by Emacs itself, so the `shape' >>> method of font backend should not reorder glyphs. But, perhaps >>> Uniscribe backend reorders Arabic text, right? > >> No, not AFAIK. We call the ScriptItemize API of Uniscribe with NULL >> as the 4th and 5th arguments, which AFAIU should disable reordering. >> Perhaps Jason could chime in and tell if I'm right here. > > I read the function uniscribe_shape roughly. It has this > code: > > for (i =3D 0; i< nitems; i++) > { > int nglyphs, nchars_in_run, rtl =3D items[i].a.fRTL ? -1 : 1; > [...] > if (SUCCEEDED (result)) > { > int j, nclusters, from, to; > > from =3D rtl> 0 ? 0 : nchars_in_run - 1; > > Doesn't it mean uniscribe_shape reorders glyphs? --=20 #-# Martin J. D=FCrst, Professor, Aoyama Gakuin University #-# http://www.sw.it.aoyama.ac.jp mailto:duerst@it.aoyama.ac.jp