unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55581: [PATCH] Add support for the Hanunoo script
@ 2022-05-22 19:02 समीर सिंह Sameer Singh
  2022-05-23 11:49 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-05-22 19:02 UTC (permalink / raw)
  To: 55581


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

Hanunoo script is added to Emacs this time.

Please review the patch.
Thank You.

Also the next two philippine scripts: Buhid and Tagbanwa do not need any
composition rules,
just a language environment and an input method, so should I combine them
in one patch?
Also I am unable to find any greeting in the Buhid language, what should I
do about that?

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

[-- Attachment #2: 0001-Add-support-for-the-Hanunoo-script.patch --]
[-- Type: text/x-patch, Size: 4845 bytes --]

From db9526912edc27bf064de8704c5443dff3bab384 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=20=E0=A4=B8=E0=A4=BF?=
 =?UTF-8?q?=E0=A4=82=E0=A4=B9=20Sameer=20Singh?= <lumarzeli30@gmail.com>
Date: Mon, 23 May 2022 00:24:14 +0530
Subject: [PATCH] Add support for the Hanunoo script

* lisp/language/philippine.el ("Hanunoo"): New language environment.
Add composition rules for Hanunoo.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Hanunoo.
* lisp/leim/quail/philippine.el ("hanunoo"): New input method.

* etc/HELLO: Add a Hanunoo greeting.
* etc/NEWS: Announce the new language environment and its
input method.
---
 etc/HELLO                     |  1 +
 etc/NEWS                      |  1 +
 lisp/international/fontset.el |  2 ++
 lisp/language/philippine.el   | 20 ++++++++++++++++++++
 lisp/leim/quail/philippine.el | 30 ++++++++++++++++++++++++++++++
 5 files changed, 54 insertions(+)

diff --git a/etc/HELLO b/etc/HELLO
index 2c4377388c..b87dae90b2 100644
--- a/etc/HELLO
+++ b/etc/HELLO
@@ -57,6 +57,7 @@ Greek (ελληνικά)	Γειά σας
 Greek, ancient (ἑλληνική)	Οὖλέ τε καὶ μέγα χαῖρε
 Gujarati (ગુજરાતી)	નમસ્તે
 Gurmukhi (ਗੁਰਮੁਖੀ)	ਸਤ ਸ੍ਰੀ ਅਕਾਲ
+Hanunoo (ᜱᜨᜳᜨᜳᜢ)	ᜫᜬᜧ᜴ ᜣᜭᜯᜥ᜴ ᜰᜲᜭᜥ᜴
 Hebrew (עִבְרִית)	שָׁלוֹם
 Hindi (हिन्दी)	प्रणाम / पाय लागू
 Hungarian (magyar)	Szép jó napot!
diff --git a/etc/NEWS b/etc/NEWS
index 4331968ba7..e2966ff17d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -811,6 +811,7 @@ corresponding language environments are:
 **** Syloti Nagri script and language environment
 **** Modi script and language environment
 **** Baybayin script and Tagalog language environment
+**** Hanunoo script and language environment
 
 ---
 *** The "Oriya" language environment was renamed to "Odia".
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index 1fcad765a1..08a0101a5e 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -183,6 +183,7 @@ font-encoding-charset-alist
 	(ogham #x168F)
 	(runic #x16A0)
         (tagalog #x1700)
+        (hanunoo #x1720)
 	(khmer #x1780)
 	(mongolian #x1826)
         (tai-le #x1950)
@@ -750,6 +751,7 @@ setup-default-fontset
 		    ogham
 		    runic
                     tagalog
+                    hanunoo
 		    symbol
 		    braille
 		    yi
diff --git a/lisp/language/philippine.el b/lisp/language/philippine.el
index 28c4616af9..2a4b17a1c7 100644
--- a/lisp/language/philippine.el
+++ b/lisp/language/philippine.el
@@ -37,6 +37,15 @@
 Tagalog language using the Baybayin script is supported in
 this language environment.")))
 
+(set-language-info-alist
+ "Hanunoo" '((charset unicode)
+             (coding-system utf-8)
+             (coding-priority utf-8)
+             (input-method . "hanunoo")
+             (sample-text . "Hanunoo (ᜱᜨᜳᜨᜳᜢ)	ᜫᜬᜧ᜴ ᜣᜭᜯᜥ᜴ ᜰᜲᜭᜥ᜴")
+             (documentation . "\
+Philippine Language Hanunoo is supported in this language environment.")))
+
 ;; Tagalog composition rules
 (let ((akshara              "[\x1700-\x1711\x171F]")
       (vowel                "[\x1712\x1713]")
@@ -55,5 +64,16 @@
                                (concat akshara pamudpod vowel "?")
                                1 'font-shape-gstring))))
 
+;; Hanunoo composition rules
+(let ((akshara              "[\x1720-\x1731]")
+      (vowel                "[\x1732\x1733]")
+      (pamudpod             "\x1734"))
+  (set-char-table-range composition-function-table
+                        '(#x1734 . #x1734)
+                        (list (vector
+                               ;; Akshara pamudpod syllables
+                               (concat akshara pamudpod vowel "?")
+                               1 'font-shape-gstring))))
+
 (provide 'philippine)
 ;;; philippine.el ends here
diff --git a/lisp/leim/quail/philippine.el b/lisp/leim/quail/philippine.el
index 8d8db8be5e..b9dcccea28 100644
--- a/lisp/leim/quail/philippine.el
+++ b/lisp/leim/quail/philippine.el
@@ -62,5 +62,35 @@
  ("N"  ?ᜅ)
  ("m"  ?ᜋ))
 
+(quail-define-package
+ "hanunoo" "Hanunoo" "ᜱ" nil "Hanunoo phonetic input method."
+ nil t t t t nil nil nil nil nil t)
+
+(quail-define-rules
+ ("q"  ?₱)
+ ("w"  ?ᜯ)
+ ("r"  ?ᜭ)
+ ("t"  ?ᜦ)
+ ("y"  ?ᜬ)
+ ("u"  ?ᜳ)
+ ("U"  ?ᜢ)
+ ("i"  ?ᜲ)
+ ("I"  ?ᜡ)
+ ("p"  ?ᜩ)
+ ("a"  ?ᜠ)
+ ("s"  ?ᜰ)
+ ("d"  ?ᜧ)
+ ("f"  ?᜴)
+ ("g"  ?ᜤ)
+ ("h"  ?ᜱ)
+ ("j"  ?᜵)
+ ("J"  ?᜶)
+ ("k"  ?ᜣ)
+ ("l"  ?ᜮ)
+ ("b"  ?ᜪ)
+ ("n"  ?ᜨ)
+ ("N"  ?ᜥ)
+ ("m"  ?ᜫ))
+
 (provide 'philippine)
 ;;; philippine.el ends here
-- 
2.36.1


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

* bug#55581: [PATCH] Add support for the Hanunoo script
  2022-05-22 19:02 bug#55581: [PATCH] Add support for the Hanunoo script समीर सिंह Sameer Singh
@ 2022-05-23 11:49 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-05-23 11:49 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: 55581-done

> From: समीर सिंह Sameer Singh
>  <lumarzeli30@gmail.com>
> Date: Mon, 23 May 2022 00:32:08 +0530
> 
> Hanunoo script is added to Emacs this time.

Thanks, installed.

> Also the next two philippine scripts: Buhid and Tagbanwa do not need any composition rules,
> just a language environment and an input method, so should I combine them in one patch?

Fine with me.

> Also I am unable to find any greeting in the Buhid language, what should I do about that?

I guess we won't have sample-text for it and no greeting in HELLO.





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

end of thread, other threads:[~2022-05-23 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-22 19:02 bug#55581: [PATCH] Add support for the Hanunoo script समीर सिंह Sameer Singh
2022-05-23 11:49 ` Eli Zaretskii

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).