From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35721: 27.0.50; Strange Arabic shaping behavior Date: Thu, 16 May 2019 17:08:47 +0300 Message-ID: <83imuacx00.fsf@gnu.org> References: <87h89ycpnw.fsf@tcd.ie> <83mujp9in8.fsf@gnu.org> <83d0kkao99.fsf@gnu.org> <83v9yacyvp.fsf@gnu.org> <20190516134508.GH1802@macbook.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152196"; mail-complaints-to="usenet@blaine.gmane.org" Cc: contovob@tcd.ie, behdad@behdad.org, 35721@debbugs.gnu.org To: Khaled Hosny Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 16 16:10:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRH5P-000dPY-HB for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2019 16:10:19 +0200 Original-Received: from localhost ([127.0.0.1]:58731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRH5O-0006eu-3u for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2019 10:10:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRH5B-0006de-0s for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 10:10:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRH5A-0002XY-48 for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 10:10:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRH5A-0002XO-12 for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 10:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRH58-0005q3-AS for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 10:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2019 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35721 X-GNU-PR-Package: emacs Original-Received: via spool by 35721-submit@debbugs.gnu.org id=B35721.155801574422378 (code B ref 35721); Thu, 16 May 2019 14:10:02 +0000 Original-Received: (at 35721) by debbugs.gnu.org; 16 May 2019 14:09:04 +0000 Original-Received: from localhost ([127.0.0.1]:55996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRH4B-0005oq-PS for submit@debbugs.gnu.org; Thu, 16 May 2019 10:09:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRH49-0005oK-U6 for 35721@debbugs.gnu.org; Thu, 16 May 2019 10:09:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRH44-0001MK-CG; Thu, 16 May 2019 10:08:56 -0400 Original-Received: from [176.228.60.248] (port=4057 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hRH43-0006Ox-Sv; Thu, 16 May 2019 10:08:56 -0400 In-reply-to: <20190516134508.GH1802@macbook.localdomain> (message from Khaled Hosny on Thu, 16 May 2019 15:45:08 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:159392 Archived-At: > Date: Thu, 16 May 2019 15:45:08 +0200 > From: Khaled Hosny > Cc: Behdad Esfahbod , contovob@tcd.ie, handa@gnu.org, > 35721@debbugs.gnu.org > > > I believe this is about the other part: displaying text which is > > partially selected, when selection is shown as a different background > > color. You are saying that to do its job, a shaping engine needs to > > see the entire text, not just the part which has the same colors. > > Right? > > There are two kinds of formatting changes, that involve a different font > and that don’t. > > For changes that involve a different font (using a new typeface, making > text bold or italic etc.) each part of the text on the sides of the > change has to be shaped separately, but if enough context is given then > HarfBuzz can at least do basic Arabic shaping (selecting the right form > for the context). > > Changes that does not involve a different font like color, underline, > background etc. should not break the shaping at all and the text should > be shaped together. The formatting information should be kept along the > text and be applied after shaping i.e. if characters N to N+5 are red, > then after shaping glyphs belonging to characters N to N+5 should be > drawn red. Right, thanks. The main point of this bug report is about the other part, though: how sheen should be displayed when using DejaVu Sans Mono.