From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41005: problem with rendering Persian text in Emacs 27 Date: Wed, 22 Jul 2020 17:20:11 +0300 Message-ID: <83k0yvfx7o.fsf@gnu.org> References: <831rmwc9ke.fsf@gnu.org> <35A46479-A62C-42FF-995B-B295FE3408C0@gnu.org> <08A9D65F-0C9C-4EE2-B3B9-2AA25BFFAD54@gnu.org> <878sh35j6f.fsf@gmail.com> <83y2p3as6c.fsf@gnu.org> <87pnae4nhx.fsf@gmail.com> <83ftbaaql5.fsf@gnu.org> <87eeqt3nww.fsf@gmail.com> <83bllxbuxq.fsf@gnu.org> <87mu3txcpz.fsf@gnu.org> <871rl4u54a.fsf@gnu.org> <83zh7sg1v9.fsf@gnu.org> <87o8o8jo1o.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17384"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, valizadeh.ho@gmail.com, 41005@debbugs.gnu.org, pipcet@gmail.com To: Amin Bandali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 22 16:21:21 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyFcX-0004Od-7D for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jul 2020 16:21:21 +0200 Original-Received: from localhost ([::1]:52130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyFcV-0001tx-Ng for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jul 2020 10:21:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyFcG-0001rX-3B for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2020 10:21:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyFcE-0000Op-Ln for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2020 10:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jyFcE-0001zO-FP for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2020 10:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jul 2020 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41005 X-GNU-PR-Package: emacs Original-Received: via spool by 41005-submit@debbugs.gnu.org id=B41005.15954276217572 (code B ref 41005); Wed, 22 Jul 2020 14:21:02 +0000 Original-Received: (at 41005) by debbugs.gnu.org; 22 Jul 2020 14:20:21 +0000 Original-Received: from localhost ([127.0.0.1]:42765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyFbZ-0001y4-6j for submit@debbugs.gnu.org; Wed, 22 Jul 2020 10:20:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyFbX-0001xp-8F for 41005@debbugs.gnu.org; Wed, 22 Jul 2020 10:20:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50015) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyFbR-00009f-W7; Wed, 22 Jul 2020 10:20:14 -0400 Original-Received: from [176.228.60.248] (port=3168 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jyFbR-0008Qf-48; Wed, 22 Jul 2020 10:20:13 -0400 In-Reply-To: <87o8o8jo1o.fsf@gnu.org> (message from Amin Bandali on Tue, 21 Jul 2020 22:12:19 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183379 Archived-At: > From: Amin Bandali > Cc: rpluim@gmail.com, valizadeh.ho@gmail.com, 41005@debbugs.gnu.org, > pipcet@gmail.com > Date: Tue, 21 Jul 2020 22:12:19 -0400 > > >> Lastly, it might be worth mentioning that if I recall correctly, when > >> using xfthb with emacs-27, I observe the same issue. Which may suggest > >> that perhaps the issue is related to Emacs's HarfBuzz support. > > > > But that's exactly the configuration that was fixed... > > > > It is strange. I did some more testing. Whether with xfthb (emacs-27) > or ftcrhb (master), it seems like typing in Persian in *scratch* works > okay. However, if I paste (yank) Persian text, e.g. from Wikipedia, > into *scratch*, the issue surfaces and yanked text is garbled. Further, > Persian text in Gnus's article-mode and in message-mode is always > garbled to begin with. It does seem like a HarfBuzz issue to me. > Please feel free to grab the Vazir font and test for yourself. Does this happen only with that font, or does it happen with any font that supports Persian? If it's only that font, then I don't think we should try solving this in Emacs; please report this to the font developers. If the problem happens with any Persian-supporting font, then please tell the details: which page you copy/paste from, what browser did you use to copy that text, detailed steps for how to reproduce in Gnus, etc. This bug report described a problem that happened in different situation (the Emacs EWW browser), so it's hard to know what exactly happens in your case. Thanks.