From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20173: 24.4; Rendering misallocates combining marks on ligatures Date: Tue, 24 Mar 2015 05:42:18 +0200 Message-ID: <837fu7qcx1.fsf@gnu.org> References: <20150323010626.530d3395@JRWUBU2> <83wq27raer.fsf@gnu.org> <20150323224107.4532b1cc@JRWUBU2> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427168605 5863 80.91.229.3 (24 Mar 2015 03:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Mar 2015 03:43:25 +0000 (UTC) Cc: 20173@debbugs.gnu.org To: Richard Wordingham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 24 04:43:16 2015 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 1YaFkE-0000qy-28 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Mar 2015 04:43:10 +0100 Original-Received: from localhost ([::1]:58928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaFkD-00035B-By for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Mar 2015 23:43:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaFk9-000352-9w for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 23:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaFk6-0002ol-3O for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 23:43:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaFk6-0002oh-0I for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 23:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YaFk5-0005Ym-Ju for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2015 23:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Mar 2015 03:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20173-submit@debbugs.gnu.org id=B20173.142716856221348 (code B ref 20173); Tue, 24 Mar 2015 03:43:01 +0000 Original-Received: (at 20173) by debbugs.gnu.org; 24 Mar 2015 03:42:42 +0000 Original-Received: from localhost ([127.0.0.1]:34377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YaFjl-0005YF-F1 for submit@debbugs.gnu.org; Mon, 23 Mar 2015 23:42:41 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42262) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YaFjh-0005Xz-RU for 20173@debbugs.gnu.org; Mon, 23 Mar 2015 23:42:39 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NLP003005T96B00@a-mtaout22.012.net.il> for 20173@debbugs.gnu.org; Tue, 24 Mar 2015 05:42:30 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLP003GV6AU0P60@a-mtaout22.012.net.il>; Tue, 24 Mar 2015 05:42:30 +0200 (IST) In-reply-to: <20150323224107.4532b1cc@JRWUBU2> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:100874 Archived-At: > Date: Mon, 23 Mar 2015 22:41:07 +0000 > From: Richard Wordingham > Cc: 20173@debbugs.gnu.org > > On Mon, 23 Mar 2015 17:38:52 +0200 > Eli Zaretskii wrote: > > > > Date: Mon, 23 Mar 2015 01:06:26 +0000 > > > From: Richard Wordingham > > > Is it possible that some rule(s) are missing from the end of > > lisp/language/misc-lang.el? Could you please take a look and see if > > something needs to be fixed/added in how we set up the compositions > > for Arabic? > > There's no relevant problem there. I demonstrated the bug to myself by > first rendering Tai Tham and confirming that > TONE-2 rendered above the first component of the ligature NAA, fromed > from . I then hacked my font so that the glyph for TONE-2 > was decomposed into the glyphs for MAI KANG and TONE-2, in that order, > and observing TONE-2 being rendered on the second component of the > ligature. I then turned to Arabic so that a custom font would not be > needed to demonstrate the bug. Sorry, I'm not sure I understand you. If the setting of composition rules for Arabic is not the culprit, then what is? AFAIK, there are no rules that guide Emacs's shaping except what's in composition-function-table. Beyond that, the only other factor is the font backend and how it shapes glyphs given the chunks of text Emacs presents to it. > As to what needs fixing in the Arabic section of misc-lang.el: Thanks, I will look into these.