From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bidi,gmane.emacs.devel Subject: Re: Arabic support Date: Wed, 01 Sep 2010 11:17:03 +0900 Message-ID: References: <83bp8oml9c.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 1283307445 29781 80.91.229.12 (1 Sep 2010 02:17:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 02:17:25 +0000 (UTC) Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org, jasonr@gnu.org To: Eli Zaretskii Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Wed Sep 01 04:17:23 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 1Oqct5-0001EC-Li for gnu-emacs-bidi@m.gmane.org; Wed, 01 Sep 2010 04:17:23 +0200 Original-Received: from localhost ([127.0.0.1]:42196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oqct2-0002nG-Hh for gnu-emacs-bidi@m.gmane.org; Tue, 31 Aug 2010 22:17:16 -0400 Original-Received: from [140.186.70.92] (port=45527 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oqcsz-0002mP-Qv for emacs-bidi@gnu.org; Tue, 31 Aug 2010 22:17:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oqcsy-0001sI-Dd for emacs-bidi@gnu.org; Tue, 31 Aug 2010 22:17:13 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:47592) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oqcsu-0001rN-1Y; Tue, 31 Aug 2010 22:17:08 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o812H3lg020918; Wed, 1 Sep 2010 11:17:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o812H3NQ021325; Wed, 1 Sep 2010 11:17:03 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id o812H37q026024; Wed, 1 Sep 2010 11:17:03 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1Oqcsp-0004S1-Aq; Wed, 01 Sep 2010 11:17:03 +0900 In-Reply-To: (message from Eli Zaretskii on Mon, 30 Aug 2010 10:06:51 -0400) X-detected-operating-system: by eggs.gnu.org: Solaris 9 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:783 gmane.emacs.devel:129523 Archived-At: 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 = 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? > Btw, does the current code support Arabic ligatures and shaping on > GNU/Linux? I don't know about ligatures, but at least these should be supported by libotf and m17n-lib with OpenType fonts. o glyph substitution of consonants depending on where it is; beginning, middle, or end of a word. o glyph positioning of vowels --- Kenichi Handa handa@m17n.org