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: Re: Arabic support Date: Mon, 27 Sep 2010 14:56:29 +0900 Message-ID: References: <1859140447.883981283872081603.JavaMail.root@zimbra3-e1.priv.proxad.net> <83eicy5epd.fsf@gnu.org> <87aananet1.fsf@zemblan.newkuwait.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285567011 23058 80.91.229.12 (27 Sep 2010 05:56:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 05:56:51 +0000 (UTC) Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org To: Thamer Mahmoud Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Mon Sep 27 07:56:49 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 1P06hg-0007dn-7C for gnu-emacs-bidi@m.gmane.org; Mon, 27 Sep 2010 07:56:44 +0200 Original-Received: from localhost ([127.0.0.1]:47745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P06hf-00038o-Kv for gnu-emacs-bidi@m.gmane.org; Mon, 27 Sep 2010 01:56:43 -0400 Original-Received: from [140.186.70.92] (port=57993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P06hb-00037u-Rd for emacs-bidi@gnu.org; Mon, 27 Sep 2010 01:56:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P06ha-0004DX-B0 for emacs-bidi@gnu.org; Mon, 27 Sep 2010 01:56:39 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:39280) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P06hZ-0004Cz-Rf; Mon, 27 Sep 2010 01:56:38 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o8R5uTcH029554; Mon, 27 Sep 2010 14:56:30 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o8R5uTa0002281; Mon, 27 Sep 2010 14:56:29 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id o8R5uTn5028921; Mon, 27 Sep 2010 14:56:29 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1P06hR-0005np-H7; Mon, 27 Sep 2010 14:56:29 +0900 In-Reply-To: <87aananet1.fsf@zemblan.newkuwait.org> (message from Thamer Mahmoud on Wed, 22 Sep 2010 15:27:54 +0300) 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:833 gmane.emacs.devel:130968 Archived-At: In article <87aananet1.fsf@zemblan.newkuwait.org>, Thamer Mahmoud writes: > However, long Arabic strings still have unshaped middle parts and bad > margin. See the attached screenshot which is the output of M-30- > in an empty buffer. Ah, I found what is wrong. In "struct glyph", we now have only 4 bits to store indices into an LGSTRING. struct { /* Flag to tell if the composition is automatic or not. */ unsigned automatic : 1; /* ID of the composition. */ unsigned id : 23; /* Start and end indices of glyphs of the composition. */ unsigned from : 4; unsigned to : 4; } cmp; So, we could handle at most 16 glyphs in one composition. I've just installed a fix to remove that restriction (theoretically we still have a restriction of at most 0x7FFFFFFF glyphs in one composition). --- Kenichi Handa handa@m17n.org