From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#33729: 27.0.50; Partial glyphs not rendered for Gujarati with Harfbuzz enabled (renders fine using m17n) Date: Thu, 13 Dec 2018 16:04:25 -0500 Message-ID: References: <20181213203102.GF2244@macbook.localdomain> <20181213205336.GG2244@macbook.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001ac933057cedab9c" X-Trace: blaine.gmane.org 1544735814 22865 195.159.176.226 (13 Dec 2018 21:16:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2018 21:16:54 +0000 (UTC) Cc: behdad@behdad.org, 33729@debbugs.gnu.org, far.nasiri.m@gmail.com To: dr.khaled.hosny@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 13 22:16:49 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXYLh-0005qA-EF for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2018 22:16:49 +0100 Original-Received: from localhost ([::1]:54947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXYNo-000838-3S for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2018 16:19:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXYBN-0005fV-1z for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2018 16:06:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXYBH-0005qr-7D for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2018 16:06:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXYBG-0005n5-4r for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2018 16:06:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gXYBF-0005ou-NU for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2018 16:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Dec 2018 21:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33729-submit@debbugs.gnu.org id=B33729.154473511122304 (code B ref 33729); Thu, 13 Dec 2018 21:06:01 +0000 Original-Received: (at 33729) by debbugs.gnu.org; 13 Dec 2018 21:05:11 +0000 Original-Received: from localhost ([127.0.0.1]:46945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXYAR-0005nf-G3 for submit@debbugs.gnu.org; Thu, 13 Dec 2018 16:05:11 -0500 Original-Received: from mail-lj1-f170.google.com ([209.85.208.170]:41965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXYAP-0005nN-Hg for 33729@debbugs.gnu.org; Thu, 13 Dec 2018 16:05:10 -0500 Original-Received: by mail-lj1-f170.google.com with SMTP id k15-v6so3027254ljc.8 for <33729@debbugs.gnu.org>; Thu, 13 Dec 2018 13:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=30xQwH9KIBHuF/FxGaY4SOpxucDrnQC2CXHg13t1td0=; b=jJju5qJ4sVp1UwaCEcGcJldumPQTC7sGgbsrKhfJkdC9xRzDPRO2AnSuxSKZegOzSL aUTmO6QqGG1fO4YyXgqnFXW52v4Rvf0/NY1d+vheR1I6qiD6LJgsyQCdC0Xcy7NaxIMA 5e+PoXfFqp/NoF1YvfUAtQd5bMZjnNyuFgjWFz9cloHHLq8aTYXYEPPYOrY6p34i16f7 nT21p9KvuIwf9o6OA/tTHa6iQrln6PFZMNp691hSbf4sLRHdz4zTGxXAHSzQ8ClSMRzf jGUO1h97111OtQTaUV3zAc2mRi7faDmPCz9qZncoOQkqt8FRk9zcdUV7RBOv6V0OEJZB obYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=30xQwH9KIBHuF/FxGaY4SOpxucDrnQC2CXHg13t1td0=; b=RKnvcZlgtqY8s5UJBGrbmpHGv6WaTxXJxR9LujiQQ8QlQ4gHRZmHjj2cX3GZcunHlV +rIwQtI0FafbkTsfpeiDR/AjP01hcCRWVtASN4AYphRT7/H3nmN2VUuwwEG1c9tuI+76 qJ9o+pb0+mu3xmh+hyE2bHjOITtR5OWoZbxeGZYCU5b1orWeZEcVmlLAww0po2EhL3s2 nvfFp+wPxjNhWpGIReM52NZus7fHhex48soDtPIpw/lSTytLdQt8r21lpwa8VDTMptx9 8pVb7GuC4arlcq6p8sdcyTqICoXHVHl2t6cJq5HC3MX//+44i/9vhP86Fnp9L5yqd7MU mS9Q== X-Gm-Message-State: AA+aEWYxpvgH/tNoUU9a1NZVn3eB9kqDtsGo8Ng+81XpTGNmUWGX98/f C7w4n6UshgjvhVjbMkri4F2sh+6C4zQzYqnq22Q= X-Google-Smtp-Source: AFSGD/X5hD0ZU9dhhJFLyYaCr02P3wrA0CZnJGXJZOm841+h78z/lG2HNSI9hhDHG6B8EBhbov8GgyY9zkclImHOYsg= X-Received: by 2002:a2e:5109:: with SMTP id f9-v6mr216621ljb.52.1544735103303; Thu, 13 Dec 2018 13:05:03 -0800 (PST) In-Reply-To: <20181213205336.GG2244@macbook.localdomain> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153421 Archived-At: --0000000000001ac933057cedab9c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 13, 2018 at 3:53 PM Khaled Hosny wrote: > > I tried that font and text with hb-view and the output I get is > identical to m17b. hb-view is nifty! I wasn't sure if it would work for me (because I haven't set my terminal to show unicode, etc.). But even with the older Harfbuzz 1.0.3 that I have, hb-view gave this: https://i.imgtc.com/d1N177Z.png I am impressed. That shows the correct rendering of =E0=AA=A8=E0=AA=AE=E0= =AA=B8=E0=AB=8D=E0=AA=A4=E0=AB=87. (I just blindly pasted =E0=AA=A8=E0=AA=AE=E0=AA=B8=E0=AB=8D=E0=AA=A4=E0=AB=87 as the secon= d argument and hit enter, my terminal doesn't even show the pasted text. But the hb-view rendering is correct.) > If I pass a wrong script to HarfBuzz (e.g. > --script=3Dlatn), I get the same broken output you see in Emacs. So I=E2= =80=99m > guessing something is not correctly working in script itemization. Most > likely the FIXME in uni_script(), or the FIXME above the call to > hb_buffer_guess_segment_properties(). > I am not a C developer. But hopefully this information would help you to fix the Harfbuzz integration with Emacs. I am surprised that the rendering of Hindi =E0=A4=A8=E0=A4=AE=E0=A4=B8=E0= =A5=8D=E0=A4=A4=E0=A5=87 using Harfbuzz in Emacs is correct, while the rendering of Gujarati =E0=AA=A8=E0=AA=AE=E0=AA=B8=E0= =AB=8D=E0=AA=A4=E0=AB=87 is not, when in fact the two scripts are so similar to each other. [Fun fact: Most of Gujarati script if superimposed with a line at the top will look like valid Hindi. You can see that in the case of =E0=AA=A8=E0=AA=AE=E0=AA=B8=E0=AB=8D=E0=AA= =A4=E0=AB=87 vs =E0=A4=A8=E0=A4=AE=E0=A4=B8=E0=A5=8D=E0=A4=A4=E0=A5=87 :) = ] --0000000000001ac933057cedab9c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Dec 13, 2018 at 3:53 PM Khaled Hosny <dr.khaled.hosny@gmail.com> wr= ote:

I tried that font and text with hb-view and the output I get is
identical to m17b.

hb-view is nifty! I wasn= 't sure if it would work for me (because I haven't set my terminal = to show unicode, etc.). But even with the older Harfbuzz 1.0.3 that I have,= hb-view gave this: https://i.i= mgtc.com/d1N177Z.png

I am impressed. That show= s the correct rendering of=20 =E0=AA=A8=E0=AA=AE=E0=AA=B8=E0=AB=8D=E0=AA=A4=E0=AB=87. (I just blindly pas= ted=C2=A0 =E0=AA=A8=E0=AA=AE=E0=AA=B8=E0=AB=8D=E0=AA=A4=E0=AB=87 as the second argume= nt and hit enter, my terminal doesn't even show the pasted text. But th= e hb-view rendering is correct.)
=C2=A0
I= f I pass a wrong script to HarfBuzz (e.g.
--script=3Dlatn), I get the same broken output you see in Emacs. So I=E2=80= =99m
guessing something is not correctly working in script itemization. Most
likely the FIXME in uni_script(), or the FIXME above the call to
hb_buffer_guess_segment_properties().

I= am not a C developer. But hopefully this information would help you to fix= the Harfbuzz integration with Emacs.=C2=A0

I am s= urprised that the rendering of Hindi =E0=A4=A8=E0=A4=AE=E0=A4=B8=E0=A5=8D= =E0=A4=A4=E0=A5=87 using Harfbuzz in Emacs is correct, while the=C2=A0 rend= ering of Gujarati=20 =E0=AA=A8=E0=AA=AE=E0=AA=B8=E0=AB=8D=E0=AA=A4=E0=AB=87 is not, when in fact= the two scripts are so similar to each other. [Fun fact: Most of Gujarati = script if superimposed with a line at the top will look like valid Hindi. Y= ou can see that in the case of=C2=A0 =E0=AA=A8=E0=AA=AE=E0=AA=B8=E0=AB=8D=E0=AA=A4=E0=AB=87 vs=C2=A0 =E0=A4=A8=E0=A4=AE=E0=A4=B8=E0=A5=8D=E0=A4=A4=E0=A5=87 :) ]
--0000000000001ac933057cedab9c--