GNU bug report logs - #41005
problem with rendering Persian text in Emacs 27

Previous Next

Package: emacs;

Reported by: hossein valizadeh <valizadeh.ho <at> gmail.com>

Date: Fri, 1 May 2020 18:34:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Amin Bandali <bandali <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rpluim <at> gmail.com, valizadeh.ho <at> gmail.com, 41005 <at> debbugs.gnu.org, pipcet <at> gmail.com
Subject: bug#41005: problem with rendering Persian text in Emacs 27
Date: Tue, 21 Jul 2020 22:12:19 -0400
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Amin Bandali <bandali <at> gnu.org>
>> Cc: Eli Zaretskii <eliz <at> gnu.org>,  valizadeh.ho <at> gmail.com,
>>   41005 <at> debbugs.gnu.org,  Pip Cet <pipcet <at> gmail.com>
>> Date: Tue, 21 Jul 2020 13:53:25 -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.

Hossein, do you also get this behaviour with Emacs's HarfBuzz?

Any other users using Emacs for Persian or Arabic?  I wonder if this
issue happens for other right-to-left languages, e.g. Hebrew.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 4 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.