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 20:25:18 +0300 Message-ID: <83sfpeoe81.fsf@gnu.org> References: <83wnerp6p0.fsf@gnu.org> <83bkw2q28v.fsf@gnu.org> <837d6qpvdo.fsf@gnu.org> <831qwyptr7.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="37786"; 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 20:11:40 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 1npDHn-0009eD-U9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 20:11:40 +0200 Original-Received: from localhost ([::1]:36528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npDHm-0004Rc-FM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 14:11:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npCZf-00059W-DK for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npCZf-0005GF-3q for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npCZe-0005XK-IM for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:26: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 17:26: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.165237632821217 (code B ref 55370); Thu, 12 May 2022 17:26:02 +0000 Original-Received: (at 55370) by debbugs.gnu.org; 12 May 2022 17:25:28 +0000 Original-Received: from localhost ([127.0.0.1]:42182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npCZ5-0005W9-T6 for submit@debbugs.gnu.org; Thu, 12 May 2022 13:25:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npCZ4-0005Vq-8N for 55370@debbugs.gnu.org; Thu, 12 May 2022 13:25:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npCYx-00055Y-9S; Thu, 12 May 2022 13:25:20 -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=20jIZdfe9VCnzMUQGb2l35JVYMaxF8wPoBMc66Jicbs=; b=fYqoOuELg/XVhZF8xwRg uoj8xjKevBek3Uv4nlmbMZ4uRDuIPJEqJ9AISfX47zdkFeNyP9ARLa++wg8axxoAs2a8YOyNliPfX KD6yk4yG45laQS7mg2dCULthXL17Fe5aa9l2CUbLYWwvAxCE9S4I1lNMTm0anVlwHpyrH8PyhTZ7G Z1T/GZo31Co8Vhcu0fnhRTsW1AfYc2oQn5rQWyjIT24XxsnDKPnN8NDVAPSTIQMvVDwhVfGxdd0i4 UNuhVtm7lW20UnjJNw6GZZDcfwY7a/cpPec4RWTEVaOZ5QPfwB3ivqMEKLspssQrY6PCoYElg109C 7KetxI1QDM8Lug==; Original-Received: from [87.69.77.57] (port=1059 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 1npCYs-00047N-5P; Thu, 12 May 2022 13:25:16 -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 22:40:02 +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:232083 Archived-At: > From: समीर सिंह Sameer Singh > Date: Thu, 12 May 2022 22:40:02 +0530 > Cc: 55370@debbugs.gnu.org > > Yes it was not correct, this seems more appropriate. > > ;; Syloti Nagri composition rules > (let ((consonant "[\xA807-\xA80A\xA80C-\xA822]") > (independent-vowel "[\xA800\xA801\xA803-\xA805]") > (vowel "[\xA802\xA823-\xA827]") > (nasal "[\xA80B]") > (virama "[\xA806\xA82C]")) > (set-char-table-range composition-function-table > '(#xA802 . #xA82C) > (list (vector > ;; Consonant conjunct based syllables > (concat independent-vowel "?" consonant "\\(?:" virama consonant "\\)+" > vowel "?" nasal "?") > 1 'font-shape-gstring)))) > > btw this range does not cause emacs to slow down, right? It might, because the range is very large, and so any character in the range #xA802..#xA82C will cause Emacs to try to match the regexp. So if there's a way of having the rules on fewer characters, that would be better, even if there will be more rules. > also should I send separate patches for the syloti nagri, and the fix for previous scripts, or combine them into > one? You can combine them into a single patch, just make sure the log message mentions all the changes. Thanks.