From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#41005: problem with rendering Persian text in Emacs 27 Date: Fri, 05 Jun 2020 06:39:34 +0000 Message-ID: <87r1uu2ezd.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="109617"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 41005@debbugs.gnu.org, Nicholas Drozd To: hossein valizadeh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 05 08:40:26 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 1jh61h-000SP7-WA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jun 2020 08:40:25 +0200 Original-Received: from localhost ([::1]:44696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jh61g-0006g0-H2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jun 2020 02:40:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jh61K-0006fl-BH for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 02:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jh61K-0001nO-2H for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 02:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jh61J-0008IO-Uk for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 02:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jun 2020 06:40: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.159133918831862 (code B ref 41005); Fri, 05 Jun 2020 06:40:01 +0000 Original-Received: (at 41005) by debbugs.gnu.org; 5 Jun 2020 06:39:48 +0000 Original-Received: from localhost ([127.0.0.1]:48087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jh615-0008Hp-Lf for submit@debbugs.gnu.org; Fri, 05 Jun 2020 02:39:47 -0400 Original-Received: from mail-wr1-f67.google.com ([209.85.221.67]:44762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jh613-0008Hd-UD for 41005@debbugs.gnu.org; Fri, 05 Jun 2020 02:39:46 -0400 Original-Received: by mail-wr1-f67.google.com with SMTP id y17so8482420wrn.11 for <41005@debbugs.gnu.org>; Thu, 04 Jun 2020 23:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=QuZPs4wQw03Vu/asdq8bmB1hhqRi9MEpN0TfaQSV6zg=; b=KDXYTdTxVZ4u4RIe0Caopak1CTpZeH0Fts8IPD1hFzNG9Qjfk+odUIVKncIj+RpBER cjbxQPMGFVAMS7k08bKDJbyrXyJqt99vB/hmifHU+hA6vnYMofvqzr/h62KiBaF/Efqq /3684N18r3D5dvhsDdf588vNhoWbI647xxA9xmQ2Iy0kNBybmKY/7RHra1QfHqRU6r0K leGZGrgsNVlMmUHp9AjvzQHksR4o80w8hT+4UbTQY3uYvap+z6Ow7XattMchRQxWf2T+ uuFTTGgC1Ez1B6a4VS97VbeEHG3yqDVqej6lac5qfvdgzFGr9W2/lx9uWda2lL9wepYl OAbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=QuZPs4wQw03Vu/asdq8bmB1hhqRi9MEpN0TfaQSV6zg=; b=oCHIykGsvrrpk4NTXtKGGhLHNuhI9BRF/6wx/e0FQmtMqjYHQDk5o6ZGetV3UABuuT alnLZOvrNCfc20ZPkBu9/BXn4JxERICWJeqz9jIQdG2h13DMhKmkZ+23UV4ZsSSZS/Tk 3lG5fSARo0INdyTSgNeZhKC8bcJS4YDNWTiROB28tjTzB8VlJDLoQIkzGB8/bN4Rr8Ek ioDc8g8RVFAMJUuWA+tPD3ojZKekfA4d7vfz2gfV451OA2qD2DRuo6DJw28YNCESXAEo tLcy3+v6MYLzpyKL+WaLEQ7OoIGOJMW5jrZmpft0nSrIo7XiUzsLV0jX0jZr6S00430g ntEg== X-Gm-Message-State: AOAM53199eS9MGW1aPj7kcH9LPQZKXfShs1gj17gfyZpMYH0SCNzSXuS nWrL0bE5g706p/29JZ/QG54= X-Google-Smtp-Source: ABdhPJySj17aRjfxz4zOvqChwWSNvsh1SiouHgrHmmtDx2yrab6iWUcB4avEGNiWXs2nkLKsNaGi8Q== X-Received: by 2002:adf:e908:: with SMTP id f8mr7898728wrm.184.1591339179807; Thu, 04 Jun 2020 23:39:39 -0700 (PDT) Original-Received: from chametz ([185.220.101.3]) by smtp.gmail.com with ESMTPSA id b201sm10007660wmb.36.2020.06.04.23.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 23:39:39 -0700 (PDT) In-Reply-To: (hossein valizadeh's message of "Fri, 5 Jun 2020 09:16:53 +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:181534 Archived-At: hossein valizadeh writes: > I tried the patch. > The eww problem is solved, but the problem still there, when I enable auto-fill-mode or > column-number-mode. I only see it with column-number-mode so far (but, again, I can reproduce it and debug further). It's this code in indent.c /* Check composition sequence. */ if (cmp_it.id >= 0 || (scan == cmp_it.stop_pos && composition_reseat_it (&cmp_it, scan, scan_byte, end, w, NEUTRAL_DIR, NULL, Qnil))) which appears to think the sixth argument to composition_reseat_it is a direction (it probably should be). It's actually a bidi level, and passing NEUTRAL_DIR, which is 0, results in L2R layout being used by hbfont_shape, as in the eww bug. Will write a patch soon if no one beats me to it.