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.devel Subject: Re: Not able to display \u110BD and \u110CD in Emacs Date: Fri, 29 Apr 2022 09:53:30 +0300 Message-ID: <837d78bct1.fsf@gnu.org> References: <83bkwkbfn1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21069"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: lumarzeli30@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 29 08:59:54 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nkKba-0005Km-D8 for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Apr 2022 08:59:54 +0200 Original-Received: from localhost ([::1]:34052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkKbY-0003vk-UD for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Apr 2022 02:59:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkKVU-00021g-EF for emacs-devel@gnu.org; Fri, 29 Apr 2022 02:53:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42062) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkKVU-0006LF-5D; Fri, 29 Apr 2022 02:53:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pta1R23na3YBVrE94d4F6JcSi9ErtzBHl/BvwYfThiU=; b=iYEMcNBVTAv7 OcfkwAxBxti9zitlqnZSkztG8om8Mo5T5logNm8WYAby32qZdJJ5CLpiLqht1vNqkJBKf7CUnUyVL yuux7rD9VmnzYEYhOzABmfE5Egy8vyAKGOXQ9btwCjPVTmkPXlt0x8eMUACZsHNS9Tbhr1Nqs8+I9 uQMdmI7H8K0l1VdObGSRHcTGCF+Eid2fKSc9GK5vHCG7rgmenUYNe0qFbdAekqlyi+Ym9ZCZEGf35 i+wLnpxIdDiETTux9fqfkNzRaw9gG0cVMIRQuUfwN4t6/dwm16VIbbxOD7qcP2I2ZW2yUKTwOVKTx BKJbFZTtgJccjSMyJSP5Jg==; Original-Received: from [87.69.77.57] (port=2897 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 1nkKVN-0004G4-7v; Fri, 29 Apr 2022 02:53:32 -0400 In-Reply-To: <83bkwkbfn1.fsf@gnu.org> (message from Eli Zaretskii on Fri, 29 Apr 2022 08:52:18 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288957 Archived-At: > Date: Fri, 29 Apr 2022 08:52:18 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > (numerals "\x966-\x96F")) > > I believe this should be > > (numerals "[\x966-\x96F]") > > IOW, the "[..]" brackets are missing. Maybe that is the cause of your > problem. And one more potential problem. Since the rules for the number signs are: (set-char-table-range composition-function-table '(#x110BD . #x110BD) (list (vector (concat number-sign numerals) 1 'font-shape-gstring))) (set-char-table-range composition-function-table '(#x110CD . #x110CD) (list (vector (concat number-sign-above numerals) 1 'font-shape-gstring)))) which means the number signs always come _before_ the character with which it should be composed, you should use 0 in the rule, not 1. That number means how many characters to look back for finding the beginning of a composable sequence, and in these two rules the sequence _begins_ with the character which triggers composition, so the look-back is zero, not 1.