From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41005: problem with rendering Persian text in Emacs 27 Date: Wed, 03 Jun 2020 17:34:36 +0300 Message-ID: <838sh4cj5v.fsf@gnu.org> References: <83imhfv67n.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41005@debbugs.gnu.org To: hossein valizadeh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 03 16:35:13 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 1jgUU5-000T99-AO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jun 2020 16:35:13 +0200 Original-Received: from localhost ([::1]:60474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgUU4-0006QL-37 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jun 2020 10:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgUTu-0006PK-9p for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 10:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgUTt-00059M-W9 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 10:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jgUTt-0007mw-T1 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 10:35: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: Wed, 03 Jun 2020 14:35: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.159119489929927 (code B ref 41005); Wed, 03 Jun 2020 14:35:01 +0000 Original-Received: (at 41005) by debbugs.gnu.org; 3 Jun 2020 14:34:59 +0000 Original-Received: from localhost ([127.0.0.1]:44330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgUTq-0007md-Mp for submit@debbugs.gnu.org; Wed, 03 Jun 2020 10:34:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgUTp-0007mP-BD for 41005@debbugs.gnu.org; Wed, 03 Jun 2020 10:34:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42466) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgUTj-00056E-KJ; Wed, 03 Jun 2020 10:34:51 -0400 Original-Received: from [176.228.60.248] (port=3174 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jgUTi-0001aA-CV; Wed, 03 Jun 2020 10:34:51 -0400 In-Reply-To: (message from hossein valizadeh on Wed, 3 Jun 2020 09:45:09 +0430) 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:181459 Archived-At: [Please keep the bug address on the CC list; use "Reply All".] > From: hossein valizadeh > Date: Wed, 3 Jun 2020 09:45:09 +0430 > > The Emacs I'm using is compiled by HarfBuzz. I also attached a video file containing information about this > problem for a better understanding. > > I checked my config file, line by line in different modes and in combination with different commands. > I think it gets garbled in on of the following 2 situations: > > 1. the auto-fill-mode is on > 2. column-number-mode is on (or while I'm using %c modifier in custom mode line) > > # These two seem to be related, As auto-fill-mode calculates the number of character in each line too. > # I tried these in raw and un-configured Emacs; the results were the same and character got garbled. > # The using font makes no different.(In raw Emacs I used "DejaVu Sans Mono" font ) > # Scale the buffer may help to show the word correctly but other words are still garbled. > # It mostly happens when I'm trying to add something to existing line. (and sometimes it just normally > happen) > # I have deactivated these two options on my config file and Emacs worked properly since then. > > *** I noticed another bug : > > when I changed the input language to Persian(or any other language) by set-input-method command and > scale the text with "C-x +", When I start typing, the first character in buffer ignores the input-method and an > English character appears in buffer; But it won't happen for the next characters. I asked you to please provide a test file with text that you think looks incorrectly on display, and images that show how it looks in Emacs 27 and in Emacs 26: > I suggest to start by attaching a sample file that exhibits the > problem, as text, not as an image, and then showing what it looked > like in previous versions of Emacs and what it looks like in Emacs > 27.0.91 on your system. Also, please tell which font was in use when > the problematic display was produced. Then we can look into this > issue and see what could have caused it. Please provide that stuff, it is important to make progress with this bug report. TIA.