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#50951: 28.0.50; Urdu text is not displayed correctly Date: Sat, 02 Oct 2021 09:07:29 +0300 Message-ID: <83mtnsc63i.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15684"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50951@debbugs.gnu.org To: Rah Guzar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 02 08:08:10 2021 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 1mWYBu-0003y5-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 08:08:10 +0200 Original-Received: from localhost ([::1]:55620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWYBt-0004zi-Fe for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 02:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWYBn-0004za-7l for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 02:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWYBm-00088q-WA for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 02:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWYBm-0007F2-GT for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 02:08: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: Sat, 02 Oct 2021 06:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50951 X-GNU-PR-Package: emacs Original-Received: via spool by 50951-submit@debbugs.gnu.org id=B50951.163315487827823 (code B ref 50951); Sat, 02 Oct 2021 06:08:02 +0000 Original-Received: (at 50951) by debbugs.gnu.org; 2 Oct 2021 06:07:58 +0000 Original-Received: from localhost ([127.0.0.1]:57726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWYBi-0007Eh-01 for submit@debbugs.gnu.org; Sat, 02 Oct 2021 02:07:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWYBc-0007EP-9W for 50951@debbugs.gnu.org; Sat, 02 Oct 2021 02:07:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43724) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWYBX-0007wq-0c; Sat, 02 Oct 2021 02:07:47 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2467 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWYBW-0006AQ-JX; Sat, 02 Oct 2021 02:07:46 -0400 In-Reply-To: (message from Rah Guzar on Fri, 1 Oct 2021 22:11:32 +0200) 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:216100 Archived-At: > From: Rah Guzar > Date: Fri, 1 Oct 2021 22:11:32 +0200 > > Starting with 'emacs -Q' and using the menu bar to paste urdu text > حرف نہیں جاں بخشی میں اس کی خوبی اپنی قسمت کی > ہم سے جو پہلے کہہ بھیجا سو مرنے کا پیغام کیا > the text is not rendered properly, some characters which should be > joined together are instead rendered individually. > > It look like this > 2021-10-01T21:43:10,566697499+02:00.png > 2021-10-01T21:49:10,611532571+02:00.png Can you give a few specific examples of characters that should be joined, but aren't? Please name the characters and also give they positions relative to the beginning of this text, as I don't read Urdu, so the images are useless for me without some additional data and explanations. > Changing the font to a Nastaliq font more common for Urdu via > > (set-fontset-font t 'arabic (font-spec :family "NotoNastaliqUrdu")) > > the text is again rendered improperly but in a different way with chracters overlapping each other when they > shouldn't, others have gaps where they should be joined. It looks like this > > 2021-10-01T22:02:00,166113989+02:00.png > while it should look like this > > 2021-10-01T22:05:28,910692941+02:00.png So isn't this a matter of finding a proper font, in particularly given the "Nastaliq vs Naskh" issues? NotoNastaliqUrdu is not the only font supporting Nastaliq, so perhaps other fonts fare better? Since Urdu uses the Arabic characters, Emacs uses character composition rules for Arabic when displaying this text. Do you know if the composition rules for Urdu are different? Also, which version of HarfBuzz do you have installed? Thanks.