From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail 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 Newsgroups: gmane.emacs.bugs Subject: bug#55370: [PATCH] Add support for the Syloti Nagri script Date: Thu, 12 May 2022 20:36:49 +0530 Message-ID: References: <83wnerp6p0.fsf@gnu.org> <83bkw2q28v.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000541a1005ded1eabf" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="395"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55370@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 17:08:11 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 1npAQE-000ASN-G3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 17:08:10 +0200 Original-Received: from localhost ([::1]:44800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npAQD-0001I7-5M for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 11:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npAQ6-0001Ho-Fa for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48072) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npAQ6-0007Tz-6q for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npAQ6-0005hP-2J for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-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 Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2022 15:08: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.165236805321866 (code B ref 55370); Thu, 12 May 2022 15:08:02 +0000 Original-Received: (at 55370) by debbugs.gnu.org; 12 May 2022 15:07:33 +0000 Original-Received: from localhost ([127.0.0.1]:41969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npAPc-0005gc-Fz for submit@debbugs.gnu.org; Thu, 12 May 2022 11:07:33 -0400 Original-Received: from mail-qt1-f172.google.com ([209.85.160.172]:40730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npAPa-0005gM-9K for 55370@debbugs.gnu.org; Thu, 12 May 2022 11:07:30 -0400 Original-Received: by mail-qt1-f172.google.com with SMTP id g3so3245880qtb.7 for <55370@debbugs.gnu.org>; Thu, 12 May 2022 08:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VA+aqhjngxwr6s2M4W5CGvQQZLF0qyyntlGJUTMAtlw=; b=J4QDeYkTiLHEO6dxwJXRPt7O7inqRQbZMErYOIyrZ11sL/tZke1Gs/q0ABnACvLjqW 9MTFlr8nADuLJZryAq3e1E2ZyxWyy8iORQrKqOaPbI5WWx/5Xdza32tpZcoIbYmcjy1K EHcQlbQWcfb6nv3TQvNuTdbvcjQmexfUvbEZ3Y3RRYGvYToDa9kxZxdXFSLU2fAef+/F CDTa27mq6bIqTP0hGhuQtN4ajABr9hyyNljeFi62sa+C0egErn5KQpxBMJ3C7QLNoa3N v3vsnIZjj33ynvn09I3UiLX3ziFh/upJH6d5QCsdQ/GDCrGQTjfvGQUZcutFFz9uCg5z pfdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VA+aqhjngxwr6s2M4W5CGvQQZLF0qyyntlGJUTMAtlw=; b=Lh+H5R9CQ4vpMUI5GmPQGwU9pl4+rE36MkTvmSM36C7Wuh3pxM1HEumKDUAFofilF/ YlUZZW9yMtQBxGfE2eRLToaF7U3PB/ru5rKL07c3U8w2QRL84xijsLx5L8gRsUSmGbqY FuLaqbx0laMFIAaOmtkllxejAKl1xEi2iqMkiBVIUdnoqu8jyWz62Nsf5u5/U7oqTkDS aVcq8vJSJd1AiRr1PbhFH83qZH/pqGl2j7qT4N74ehIKizoZdnxs65CNV5Lr9nIewUVa oz4TpGunP/nqY4xKuFFDQKO9L8CNWC1Xi+6pMIfMHi+d20+v7DH7HxWQW58k57xjpKQW pR+w== X-Gm-Message-State: AOAM533TA8CtxhOdPKnKKf/FO0vwsmPtcFY90vNW7t0MhF/2VjxFak1b s/+EPBcDHFrTeCFrlswEvsiz+/hQOuFoWnjQiTk= X-Google-Smtp-Source: ABdhPJwYYnV2JarviQ54IhNwE6jcabrPhAZCg5fPM225k8Sz/Ff9KWdjt1S7n76cuNPtjv9MVv/Nq9n3wb8j6fco3sM= X-Received: by 2002:a05:622a:120c:b0:2f3:d53f:7e6f with SMTP id y12-20020a05622a120c00b002f3d53f7e6fmr167784qtx.105.1652368044463; Thu, 12 May 2022 08:07:24 -0700 (PDT) In-Reply-To: <83bkw2q28v.fsf@gnu.org> 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:232054 Archived-At: --000000000000541a1005ded1eabf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Example of text that doesn't render correctly? > For example in tirhuta, when I do this: ;; Tirhuta composition rules (let ((consonant "[\x1148F-\x114AF]") (nukta "\x114C3") (independent-vowel "[\x11481-\x1148E]") (vowel "[\x114B0-\x114BE]") (nasal "[\x114BF\x114C0]") (virama "\x114C2")) (set-char-table-range composition-function-table '(#x114B0 . #x114BE) (list (vector ;; Consonant based syllables (concat consonant nukta "?\\(?:" virama consonant nukta "?\\)*\\(?:" virama "\\|" vowel "*" nukta "?" nasal "?\\)") 1 'font-shape-gstring)))) Notice here, the nasal sign is not included in the range. And then I type: =F0=91=92=85=F0=91=93=80 =F0=91=92=86=F0=91=92=BF It is rendered correctly But when I do: ;; Tirhuta composition rules (let ((consonant "[\x1148F-\x114AF]") (nukta "\x114C3") (independent-vowel "[\x11481-\x1148E]") (vowel "[\x114B0-\x114BE]") (nasal "[\x114BF\x114C0]") (virama "\x114C2")) (set-char-table-range composition-function-table '(#x114B0 . #x114C0) (list (vector ;; Consonant based syllables (concat consonant nukta "?\\(?:" virama consonant nukta "?\\)*\\(?:" virama "\\|" vowel "*" nukta "?" nasal "?\\)") 1 'font-shape-gstring)))) The range now has the nasal signs. And then type the above characters: =F0=91=92=85=F0=91=93=80 =F0=91=92=86= =F0=91=92=BF They are not rendered correctly But when I include their composition rules: ;; Tirhuta composition rules (let ((consonant "[\x1148F-\x114AF]") (nukta "\x114C3") (independent-vowel "[\x11481-\x1148E]") (vowel "[\x114B0-\x114BE]") (nasal "[\x114BF\x114C0]") (virama "\x114C2")) (set-char-table-range composition-function-table '(#x114B0 . #x114C0) (list (vector ;; Consonant based syllables (concat consonant nukta "?\\(?:" virama consonant nukta "?\\)*\\(?:" virama "\\|" vowel "*" nukta "?" nasal "?\\)") 1 'font-shape-gstring) (vector ;; Nasal vowels (concat independent-vowel nasal "?") 1 'font-shape-gstring)))) They are now once more rendered correctly. 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. > I think I found the problem, this was due to the independent vowel and nasal rule, I will fix it later. I don't think I understand this part, either. Please elaborate. > You had said that since the range only contains vowel signs, (consonant + nasal) rule does not apply, only (consonant + vowel + nasal) will. I then said that (consonant + nasal) renders fine without a rule, but (consonant + vowel + nasal) does not, therefore I had to add a rule for that. On Thu, May 12, 2022 at 7:31 PM Eli Zaretskii wrote: > > From: =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82= =E0=A4=B9 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. > --000000000000541a1005ded1eabf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Exa= mple of text that doesn't render correctly?

For example in tirhuta, when= I do this:

;; Tirhuta composition rules
(let ((consonant = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"[\x1148F-\x114AF]")
= =C2=A0 =C2=A0 =C2=A0 (nukta =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0"\x114C3")
=C2=A0 =C2=A0 =C2=A0 (independent-vowel = =C2=A0 =C2=A0"[\x11481-\x1148E]")
=C2=A0 =C2=A0 =C2=A0 (vowel = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"[\x114B0-\x114= BE]")
=C2=A0 =C2=A0 =C2=A0 (nasal =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0"[\x114BF\x114C0]")
=C2=A0 =C2=A0 =C2= =A0 (virama =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\x114C2&= quot;))
=C2=A0 (set-char-table-range composition-function-table
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 '(#x114B0 . #x114BE)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (list (vector
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Consonant based syllables
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(concat consonant nukta "?\\(?:" virama c= onsonant nukta "?\\)*\\(?:"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0virama "\\|" vowel "*" n= ukta "?" nasal "?\\)")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A01 'font-shape-gstring))))

Notice her= e, the nasal sign is not included in the range.
And then I type: = =F0=91=92=85=F0=91=93=80 =F0=91=92=86=F0=91=92=BF
It is rendered = correctly

But when I do:

;; Tirhuta = composition rules
(let ((consonant =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0"[\x1148F-\x114AF]")
=C2=A0 =C2=A0 =C2=A0 (nukta =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\x114C3")
=C2= =A0 =C2=A0 =C2=A0 (independent-vowel =C2=A0 =C2=A0"[\x11481-\x1148E]&q= uot;)
=C2=A0 =C2=A0 =C2=A0 (vowel =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0"[\x114B0-\x114BE]")
=C2=A0 =C2=A0 =C2=A0 (na= sal =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"[\x114BF\x= 114C0]")
=C2=A0 =C2=A0 =C2=A0 (virama =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 "\x114C2"))
=C2=A0 (set-char-table-range = composition-function-table
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(#x114B0 . #x114C0)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (list (vector
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Consonant bas= ed syllables
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(concat consonant nukta= "?\\(?:" virama consonant nukta "?\\)*\\(?:"
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0virama "\\|= " vowel "*" nukta "?" nasal "?\\)")
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 'font-shape-gstring))))
The range now has the nasal signs.
And then type the above cha= racters: =F0=91=92=85=F0=91=93=80 =F0=91=92=86=F0=91=92=BF
They a= re not rendered correctly

But when I include their= composition rules:

;; Tirhuta composition rules
(let ((co= nsonant =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"[\x1148F-\x114AF]&qu= ot;)
=C2=A0 =C2=A0 =C2=A0 (nukta =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0"\x114C3")
=C2=A0 =C2=A0 =C2=A0 (independent-= vowel =C2=A0 =C2=A0"[\x11481-\x1148E]")
=C2=A0 =C2=A0 =C2=A0 (= vowel =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"[\x114B0= -\x114BE]")
=C2=A0 =C2=A0 =C2=A0 (nasal =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0"[\x114BF\x114C0]")
=C2=A0 =C2=A0 = =C2=A0 (virama =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "\x114= C2"))
=C2=A0 (set-char-table-range composition-function-table
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 '(#x114B0 . #x114C0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (list (vector
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Consonant based syllables
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0(concat consonant nukta "?\\(?:" viram= a consonant nukta "?\\)*\\(?:"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0virama "\\|" vowel "*"= ; nukta "?" nasal "?\\)")
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A01 'font-shape-gstring)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (= vector
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Nasal vowels
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(concat independent-vowel nasal "?"= ;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 'font-shape-gstring))))

They are now once more rendered correctly.
=
So my sugg= estion is to debug this and figure out why it hangs.=C2=A0 Maybe
begin by posting the composition rules that you tried originally, and
let's take it from there.

I think I found the problem, this was due to t= he independent vowel and nasal rule, I will fix it later.

I don't think= I understand this part, either.=C2=A0 Please elaborate.
=

You had said that since the range only contains vowel s= igns, (consonant=C2=A0+ nasal) rule does not apply, only (consonant=C2=A0+ = vowel + nasal) will.
I then said that (consonant + nasal) renders= fine without a rule, but (consonant + vowel + nasal) does not, therefore I= had to add a rule for that.

=
On Thu, May 12, 2022 at 7:31 PM Eli Z= aretskii <eliz@gnu.org> wrote:
> From: =E0=A4= =B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9 Sameer = Singh <lumarz= eli30@gmail.com>
> Date: Thu, 12 May 2022 19:12:09 +0530
> Cc: 55370@d= ebbugs.gnu.org
>
> I have noticed that when there is no nasal sign in the range of the se= t-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, unti= l 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 sign= s 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.=C2=A0 In particular, Emacs should never hang due to this stuff.

So my suggestion is to debug this and figure out why it hangs.=C2=A0 Maybe<= br> begin by posting the composition rules that you tried originally, and
let's take it from there.

>=C2=A0 Similarly here: this rule will never match if 'vowel' is= n't present,
>=C2=A0 because the second character of the matching sequence _must_ be = a
>=C2=A0 vowel, since that is what triggers the composition rule in the f= irst
>=C2=A0 place.=C2=A0 Am I missing something?
>
> Here too since consonant vowel nasal was not rendering I added the rul= e, maybe I should remove the "?"
> after vowel.
> (consonant nasal was rendering fine)

I don't think I understand this part, either.=C2=A0 Please elaborate.
--000000000000541a1005ded1eabf--