unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Not able to display \u110BD and \u110CD in Emacs
@ 2022-04-28 23:17 समीर सिंह Sameer Singh
  2022-04-29  5:52 ` Eli Zaretskii
  0 siblings, 1 reply; 39+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-04-28 23:17 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 2055 bytes --]

Hi! I was trying to implement the Kaithi script in Emacs. Everything seems
to be working fine except for two characters: Kaithi Number Sign (\u110BD)
and Kaithi Number Sign Above (\u110CD), they do not appear when inserted in
a buffer, instead it is just whitespace.
According to the Unicode standard, they behave like the Arabic Number Sign
(\u0600) which spans numbers. I have attached a render from hb-view

This is what I have written in lisp/language/indian.el
Please tell me what I am doing wrong.

;; Kaithi composition rules
(let ((consonant "[\x1108D-\x110AF]")
      (non-consonant "[^\x1108D-\x110AF\x110B9]")
      (vowel "[\x110B0-\x110B8\x110C2]")
      (anusvara-candrabindu "[\x11080\x11081]")
      (virama "\x110B9")
      (number-sign "\x110BD")
      (number-sign-above "\x110CD")
      (numerals "\x966-\x96F"))
  (set-char-table-range composition-function-table
                        '(#x110B0 . #x110B8)
                        (list (vector
                               (concat consonant vowel anusvara-candrabindu
"?")
                               1 'font-shape-gstring)))
  (set-char-table-range composition-function-table
                        '(#x110B9 . #x110B9)
                        (list (vector
                               (concat consonant "\\(?:" virama consonant
"\\)+"
                                       vowel "*\\|" consonant virama)
                               1 'font-shape-gstring)))
  (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))))

In lisp/internation/fontset.el
(kaithi ,(font-spec :registry "iso10646-1" :otf '(kthi nil (rphf))))

[-- Attachment #1.2: Type: text/html, Size: 2723 bytes --]

[-- Attachment #2: hb-view.png --]
[-- Type: image/png, Size: 12978 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2022-05-09  2:39 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 23:17 Not able to display \u110BD and \u110CD in Emacs समीर सिंह Sameer Singh
2022-04-29  5:52 ` Eli Zaretskii
2022-04-29  6:53   ` Eli Zaretskii
2022-04-29  9:45     ` समीर सिंह Sameer Singh
2022-04-29 10:50       ` Eli Zaretskii
2022-04-29 11:17         ` समीर सिंह Sameer Singh
2022-04-29 12:18           ` Eli Zaretskii
2022-04-29 15:26             ` समीर सिंह Sameer Singh
2022-04-29 16:13               ` Eli Zaretskii
2022-04-30  4:52                 ` समीर सिंह Sameer Singh
2022-04-30  6:03                   ` Eli Zaretskii
2022-04-30  6:10                     ` समीर सिंह Sameer Singh
2022-04-30  7:00                       ` Eli Zaretskii
2022-04-30  7:03                         ` समीर सिंह Sameer Singh
2022-04-30  7:19                           ` Eli Zaretskii
2022-04-30  8:01                             ` समीर सिंह Sameer Singh
2022-05-05 15:53                     ` Madhu
2022-05-05 16:09                       ` समीर सिंह Sameer Singh
2022-05-05 16:43                         ` Madhu
2022-05-05 17:06                           ` समीर सिंह Sameer Singh
2022-05-05 16:47                       ` Eli Zaretskii
2022-05-06  3:59                         ` Madhu
2022-05-06  5:56                           ` Eli Zaretskii
2022-05-07  7:01                       ` Eli Zaretskii
2022-05-07 14:19                         ` Madhu
2022-05-07 14:22                           ` Eli Zaretskii
2022-05-07 14:29                             ` समीर सिंह Sameer Singh
2022-05-07 14:56                               ` Eli Zaretskii
2022-05-07 15:47                                 ` Madhu
2022-05-07 16:01                                   ` समीर सिंह Sameer Singh
2022-05-07 16:44                                     ` Madhu
2022-05-07 16:54                                       ` समीर सिंह Sameer Singh
2022-05-08 17:25                                         ` Madhu
2022-05-08 17:35                                           ` Eli Zaretskii
2022-05-08 18:21                                             ` Madhu
2022-05-08 18:59                                               ` Eli Zaretskii
2022-05-09  2:06                                                 ` Madhu
2022-05-09  2:39                                                   ` Eli Zaretskii
2022-05-07 14:57                             ` Madhu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).