From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#11860: 24.1; Arabic - Harakat (diacritics, short vowels) don't appear Date: Sun, 19 Aug 2012 13:34:36 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <349071341393469@web30d.yandex.ru> <87393kgbp4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1345350902 5544 80.91.229.3 (19 Aug 2012 04:35:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2012 04:35:02 +0000 (UTC) Cc: 11860@debbugs.gnu.org, smias@yandex.ru To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 19 06:35:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T2xE6-0003FW-33 for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2012 06:35:02 +0200 Original-Received: from localhost ([::1]:46712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2xE4-0006Ge-NZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2012 00:35:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2xE1-0006GT-Ur for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2xE0-0004i7-U2 for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:34:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2xE0-0004i3-Qq for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:34:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T2xE5-00023y-VB for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2012 00:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Aug 2012 04:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11860 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11860-submit@debbugs.gnu.org id=B11860.13453508947916 (code B ref 11860); Sun, 19 Aug 2012 04:35:01 +0000 Original-Received: (at 11860) by debbugs.gnu.org; 19 Aug 2012 04:34:54 +0000 Original-Received: from localhost ([127.0.0.1]:38126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2xDu-00023Z-2T for submit@debbugs.gnu.org; Sun, 19 Aug 2012 00:34:52 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:52695) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2xDq-00023N-2V for 11860@debbugs.gnu.org; Sun, 19 Aug 2012 00:34:48 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 80A6AC055D; Sun, 19 Aug 2012 13:34:36 +0900 (JST) In-Reply-To: <87393kgbp4.fsf@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63284 Archived-At: >>>>> On Sat, 18 Aug 2012 11:45:27 +0900, Kenichi Handa said: > If this problem happens only for bidi scripts, one > possibility is that Emacs's rendering engine (xdisp.c) > expects glyphs in a glyph-string are rendered in that order > from left to right, but the returned glyph-string on Windows > should be rendered in reverse order. For instance, in the > above case, we may have to render glyphs in this order > (diacritical mark first): > [0 1 1593 760 0 3 6 12 4 [1 -2 0]] > [0 1 1593 969 8 1 8 12 4 nil] The font backend driver on the Mac port is supposed to support right-to-left shaping (including for non-BMP chars, though I don't have a good example), and it gives the following result (diacritical mark comes first) for Courier New 13pt: mac-ct:-*-Courier New-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 by these glyphs: [0 1 1618 760 8 0 2 11 -8 [-1 2 1]] [0 1 1593 969 8 0 6 5 4 [-1 0 8]] In the above example, the grapheme cluster consists of glyphs having non-nil adjustments (the last element of each vector). In the function Ffont_shape_gstring, there is some code that merges grapheme clusters generated by a font backend driver so each of them starts with a glyph having non-nil adjustment (except the first grapheme cluster of the gstring). I think this is not correct especially for right-to-left text, and I disabled that part in the Mac port. Could you give an example if you think this part is necessary? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp