From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thamer Mahmoud Newsgroups: gmane.emacs.bidi,gmane.emacs.devel Subject: Re: Arabic support Date: Wed, 22 Sep 2010 15:27:54 +0300 Message-ID: <87aananet1.fsf@zemblan.newkuwait.org> References: <1859140447.883981283872081603.JavaMail.root@zimbra3-e1.priv.proxad.net> <83eicy5epd.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1285158522 12497 80.91.229.12 (22 Sep 2010 12:28:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 12:28:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: emacs-bidi@gnu.org Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Wed Sep 22 14:28:39 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 1OyORC-0007Kw-Qc for gnu-emacs-bidi@m.gmane.org; Wed, 22 Sep 2010 14:28:39 +0200 Original-Received: from localhost ([127.0.0.1]:50478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyORC-0002vE-4j for gnu-emacs-bidi@m.gmane.org; Wed, 22 Sep 2010 08:28:38 -0400 Original-Received: from [140.186.70.92] (port=50478 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyOR6-0002r1-OV for emacs-bidi@gnu.org; Wed, 22 Sep 2010 08:28:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyOR2-00073E-65 for emacs-bidi@gnu.org; Wed, 22 Sep 2010 08:28:32 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:47072) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyOR1-00072h-R2 for emacs-bidi@gnu.org; Wed, 22 Sep 2010 08:28:28 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OyOR0-0007Fn-C7 for emacs-bidi@gnu.org; Wed, 22 Sep 2010 14:28:26 +0200 Original-Received: from 89.203.6.209 ([89.203.6.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Sep 2010 14:28:26 +0200 Original-Received: from thamer.mahmoud by 89.203.6.209 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Sep 2010 14:28:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 62 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 89.203.6.209 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:V0XGdrWqUh0au98tUcj1z2IAON8= 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:832 gmane.emacs.devel:130615 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Kenichi Handa writes: >> I found that the problem is that the current composition for >> Arabic requires that a whole word must be composed. So, if >> there's a face change within a word, Arabic composition >> function is given just a partial word, and that results in >> the incorrect Arabic shaping. This is a difficult problem, >> and I need a time to find a solution. > > I've just installed a fix to trunk. I can confirm that the issue with unshaped glyphs while highlighting words is now fixed. Thanks. 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. Also the following code produces duplicate strings, compared to when auto-composition-mode is off. (let () (setq bidi-display-reordering t) (insert "\n\n") (insert "كمنت") (insert "ببببببببببببببببببب")) --=-=-= Content-Type: image/png Content-Disposition: attachment; filename=margin.png Content-Transfer-Encoding: base64 Content-Description: screenshot iVBORw0KGgoAAAANSUhEUgAAAUgAAABpCAIAAADX8S1DAAAAA3NCSVQICAjb4U/gAAADmElEQVR4 nO3dzWtcZRTA4TuTaUpbx1aNZRA3goJuFLNQQXDpwo3gvyC4qNCFmNJNKaEgBZFuSiFgEVIQN+5E Fwp+gBSXVSgmxsYkmmSaNIkzQYvmvtfFUEGb0LRpcm9On2f1cshkLi/8yJlASK0oigzYWd1ud935 mVPHh06eTnmeUp5SnvJ045AXKfUOKeUppdHzI0ePnTg00Fr3+9S38+GBcggbAhI2BCRsCEjYEJCw ISBhQ0DChoCEDQEJGwISNgQkbAhI2BCQsCEgYUNAwoaKGp/45f4HHsqybHJ69sHDj2RZNjN/7fCj j23mtcKGihocHLzp8OwmX9vYlicCtmy1s5TylGXZ8uJ8yvMsyxZmp3uHW/ITGyrKKg4BWcUhIKs4 BGQVh4Cs4hCQVRwCsopDQFZxCMgqDgFZxSEgqzgEZBWHgKziEJBVHAKyigP/IWwISNgQkLAhIGFD QMKGgIQNAQkbAhI2BCRsCEjYEJCwISBhQ0DlhN2ZHm61Wq1W69Ol6+bmu31eQeX82Wax1mm321mW /ZkKc/PdPq8gq/iuVKuV/QT3turffzlhr11f6B3afyfzO5g3++q39fXmd3f+v/uvoHKe7+t3LvYO oxfGzG93Xu+77/lmf3We516b33z/FVQrip37tPBX59uRDy6OfffJuY++6b1vrb7v1dfffPHxtbHV gb0Tn5tvPH94/5Uvzn74VSqKgaffXbj0tvss/f63otvtrjs/c+r40MnTKc9TylPKU55uHPIipd4h pTylNHp+5OixE4cGWuu/QbGDVn5+69/3rfft71vvk4r5reYHRsZX3GcV7n8rOhsYHjryx2pn9ffl zvLiyrX20tW5xflfr85Ozc9cmZua+G1ybGbi8tT4D5M/XhoeOrK8MLfR9y9hFe8/cPCZl157/8uf vv/4vZefe7K5b4/5ZuaNvc2nXnjl7GeX33jioPuszv1X046u4kDPdq/iVf/lHnAHSgu70Wjs6W+a m8eYV01p/zAgz/NasWZuHmNeNaWFvdFne3Pz3TivGp+xISBhQ0DChoCEDQEJGwISNgQkbAhI2BCQ sCEgYUNAwoaAhA0BCRsCEjYEJGwISNgQkLAhIGFDQMKGgIQNAQkbAhI2BCRsCEjYEJCwISBhQ0DC hoCEDQEJGwISNgQkbAhI2BCQsCEgYUNAwoaAhA0BCRsCEjYEJGwISNgQkLAhIGFDQMKGgIQNAQkb AvoH70gFRuWE9b4AAAAASUVORK5CYII= --=-=-= -- Thamer --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ emacs-bidi mailing list emacs-bidi@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-bidi --=-=-=--