From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.bugs Subject: bug#41005: problem with rendering Persian text in Emacs 27 Date: Fri, 24 Jul 2020 00:11:30 -0400 Organization: GNU Message-ID: <87wo2tzh59.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> <83k0yvfx7o.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12927"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rpluim@gmail.com, valizadeh.ho@gmail.com, 41005@debbugs.gnu.org, pipcet@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 24 06:12:10 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 1jyp46-0003Es-B2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jul 2020 06:12:10 +0200 Original-Received: from localhost ([::1]:35858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyp44-0006XI-UE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jul 2020 00:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyp3y-0006Wz-4M for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 00:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyp3x-0006zK-RA for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 00:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jyp3x-00021n-Mq for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 00:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Amin Bandali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jul 2020 04:12:01 +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.15955639097772 (code B ref 41005); Fri, 24 Jul 2020 04:12:01 +0000 Original-Received: (at 41005) by debbugs.gnu.org; 24 Jul 2020 04:11:49 +0000 Original-Received: from localhost ([127.0.0.1]:46474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyp3k-00021I-Ry for submit@debbugs.gnu.org; Fri, 24 Jul 2020 00:11:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyp3h-000215-WA for 41005@debbugs.gnu.org; Fri, 24 Jul 2020 00:11:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59621) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyp3c-0006xE-Gy; Fri, 24 Jul 2020 00:11:40 -0400 Original-Received: from [2607:fea8:3fe0:17d::7] (port=43802 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jyp3b-0005Kq-PW; Fri, 24 Jul 2020 00:11:39 -0400 In-Reply-To: <83k0yvfx7o.fsf@gnu.org> 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:183473 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> 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 >>=20 >> >> Lastly, it might be worth mentioning that if I recall correctly, when >> >> using xfthb with emacs-27, I observe the same issue. Which may sugge= st >> >> that perhaps the issue is related to Emacs's HarfBuzz support. >> > >> > But that's exactly the configuration that was fixed... >> > >>=20 >> 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. > It appears to happen with any font supporting Persian/Arabic. Examples include DejaVu Sans and Noto Sans Arabic. > > 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. > Examples of pages I copied excerpts from include the front page of the Persian Wikipedia , as well as the Persian translation of GNU's homepage . The issue does not seem to be specific to a particular text, and appears to occur when pasting any Persian text into a buffer. As for the browser, I tried with both GNU IceCat and Emacs's EWW; same results. I am able to reproduce by pasting any random Persian text into any Emacs buffer. In the case of Gnus, simply pressing RET on the subject of an email in gnus-summary-mode to have it displayed using gnus-article-mode shows the Persian text in the email body as garbled. Hope this helps. * * * Actually, as I was about to hit send, it /just/ occurred to me to try with -Q or -q, and in both cases I do not see this bug! How strange! I'll start bisecting my Emacs configuration and will report back if I manage to find the cause. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl8aX3IQHGJhbmRhbGlA Z251Lm9yZwAKCRCLRKDNx7lW8nXTEACP1zvaspmJz1Wh++ICHci3XErtFadLHsXu 44U+ydv7otR5Y5Ewr0DY43v+F+GOnD0iSuxnaDYEJV78HcIc2EuVmRqiiU9cSb7n l2QdBU6YZUIYmZK8m8DEwj2FEJ9UMp6078xFemr4WtoJnJECQLUkJlfxJcsLbWOz 7DtIOrlly0lzf4MvWdPyjlYAsO1LRvv0NORc0FTlnm3fcjGSkNKkwSiUH0zuQc2K xqUimYbrmcL4VA9IKCcNMh5k05S0/oRub/1dZXGukVVmQZu6FyMK9oFrl11vP6mj 8Guf0jLwvhEKJORb3CqA765QDPL+Q8CQZC9KbASF4OqtjCatgan4LGzAMxXWth2s d5pVpG5Z2XAqbdREA0+RBI8ZaJNTjhDvZWtrWzobftr9k1osfKLCeR4I7P//Loqy J9/fQUCh1cg8KEDKYdh7+f+MpICjWtkLcEcKDnWB7mLFzIEd+OEqT7oD56jc/wRU Q85ChR27UQzueEh5Kirr+0VK713X4nylPgbTVXkzcN5HnJ6hFTA6ow9NR6/fxcEb np/erEdsgKYsBhyE0I4hjeBYOO20XgKLvw6Roa/EaEkKtxSzZfUWw12/9lHHsBJq VZbbBizJu8A8CvsPZEU+m4odM+DLt4wG0fEqCepag75vfUM2sHAD4qKB8h7zxKWT n/CljaQ4iA== =psI8 -----END PGP SIGNATURE----- --=-=-=--