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#55370: [PATCH] Add support for the Syloti Nagri script Date: Thu, 12 May 2022 17:01:04 +0300 Message-ID: <83bkw2q28v.fsf@gnu.org> References: <83wnerp6p0.fsf@gnu.org> 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="37280"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55370@debbugs.gnu.org To: =?UTF-8?Q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0_?= =?UTF-8?Q?=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9?= Sameer Singh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 16:02:20 2022 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 1np9OV-0009Uj-NK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 16:02:19 +0200 Original-Received: from localhost ([::1]:59342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np9OU-0001A1-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 10:02:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np9OF-000184-2b for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 10:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np9OE-0005J5-OI for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 10:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1np9OE-0003no-I6 for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 10:02: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: Thu, 12 May 2022 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55370 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 55370-submit@debbugs.gnu.org id=B55370.165236406814539 (code B ref 55370); Thu, 12 May 2022 14:02:02 +0000 Original-Received: (at 55370) by debbugs.gnu.org; 12 May 2022 14:01:08 +0000 Original-Received: from localhost ([127.0.0.1]:41909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np9NM-0003mQ-1v for submit@debbugs.gnu.org; Thu, 12 May 2022 10:01:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np9NK-0003lq-MB for 55370@debbugs.gnu.org; Thu, 12 May 2022 10:01:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np9NF-0005AQ-5F; Thu, 12 May 2022 10:01:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SAXIp0MFzDa7SMG2WLOIoOI5SsM97mg1FrIckip/ZQw=; b=PBEkj2Ps+f8GEoUeDHkA k5mlKceM/X2jwE6TYR3fQxvLq/QrIxfNVHlvhVhPFjXiTBsgVm5mDb3fXjZtxqOSJYbmHk9RTnST9 /uodkRNIC5RCV8iaXNsg9fyAElVtdfW6N7cBys3mJ3ESTFGzvE9j3LNNcenm+W+3ThWdHEdcdeT3N ftv2JbxF0Nl+nEiUHIm0YyLrjhwNCSZd7Flrnbw4PCchoaEjFWJaJ1vS0B3MyFaoAryQouTwlf0nR mRbRi4Wdxq2c//lts1Ne0WgrtT3T/p6Kj6DMeI2ZX46hNVAxde1nRBhGKaMUOc2s8OYy9l04jClMo N+mFu0df1PjzDw==; Original-Received: from [87.69.77.57] (port=4424 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 1np9NE-0000ra-Kf; Thu, 12 May 2022 10:01:00 -0400 In-Reply-To: (message from =?UTF-8?Q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0_?= =?UTF-8?Q?=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9?= Sameer Singh on Thu, 12 May 2022 19:12:09 +0530) 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:232051 Archived-At: > From: समीर सिंह Sameer Singh > Date: Thu, 12 May 2022 19:12:09 +0530 > Cc: 55370@debbugs.gnu.org > > I have noticed that when there is no nasal sign in the range of the set-char-table-range function, it is rendered > correctly when alone with a consonant or an independent vowel. > But when it is added to the range, it is not displayed correctly, until and unless a composition rule is added > for it. Example of text that doesn't render correctly? > Sometimes for scripts like Syloti Nagri, Sharada and Kaithi these signs are not in a contiguous range with > virama and vowel signs (they are far away) > So when I add them to the range, Emacs starts to hang. (Maybe because the range is too big, or there are > unnecessary symbols like consonants there) > This is why I had decided to not include them, because they were still rendering fine. > > So should I leave them as it is, or make another set-char-table-range that includes only them? I cannot say, because I don't think I understand the issue. In particular, Emacs should never hang due to this stuff. So my suggestion is to debug this and figure out why it hangs. Maybe begin by posting the composition rules that you tried originally, and let's take it from there. > Similarly here: this rule will never match if 'vowel' isn't present, > because the second character of the matching sequence _must_ be a > vowel, since that is what triggers the composition rule in the first > place. Am I missing something? > > Here too since consonant vowel nasal was not rendering I added the rule, maybe I should remove the "?" > after vowel. > (consonant nasal was rendering fine) I don't think I understand this part, either. Please elaborate.