aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2024-07-26 16:49:11 +0300
committerEli Zaretskii2024-07-26 16:49:11 +0300
commit4e250154ec4dc73eb9a2ec2c00d7a6e9a98b5476 (patch)
treece2d76aa95f08e64e9791394f25ebac3e9617ede
parent52cae67e1e73615fff184abcc8e635d80f8846ad (diff)
downloademacs-4e250154ec4dc73eb9a2ec2c00d7a6e9a98b5476.tar.gz
emacs-4e250154ec4dc73eb9a2ec2c00d7a6e9a98b5476.zip
Add support for Tifinagh script
* lisp/leim/quail/tifinagh.el: New file. Contributed by Adam Oudad <adam.oudad@gmail.com>. * lisp/language/misc-lang.el ("Tifinagh"): New language environment. * etc/HELLO: Add a greeting in Tifinagh. * etc/NEWS: Announce the addition of Tifinagh.
-rw-r--r--etc/HELLO3
-rw-r--r--etc/NEWS6
-rw-r--r--lisp/language/misc-lang.el13
-rw-r--r--lisp/leim/quail/tifinagh.el67
4 files changed, 88 insertions, 1 deletions
diff --git a/etc/HELLO b/etc/HELLO
index 84868b6d75e..20233b0c918 100644
--- a/etc/HELLO
+++ b/etc/HELLO
@@ -1,5 +1,5 @@
1Content-Type: text/enriched 1Content-Type: text/enriched
2Text-Width: 70 2Text-Width: 72
3 3
4This is a list of ways to write a <x-color><param>orange red</param>"hello"</x-color> greeting using 4This is a list of ways to write a <x-color><param>orange red</param>"hello"</x-color> greeting using
5various scripts. It is not intended to be comprehensive, 5various scripts. It is not intended to be comprehensive,
@@ -114,6 +114,7 @@ Tagbanwa (ᝦᝪᝯ) ᝫᝩᝬᝥ ᝣᝮᝧᝯ
114TaiViet (ꪁꪫꪱꪣ ꪼꪕ) ꪅꪰꪙꫂ ꪨꪮꫂ ꪁꪫꪱ / ꪅꪽ ꪨꪷ ꪁꪫꪱ 114TaiViet (ꪁꪫꪱꪣ ꪼꪕ) ꪅꪰꪙꫂ ꪨꪮꫂ ꪁꪫꪱ / ꪅꪽ ꪨꪷ ꪁꪫꪱ
115Thai (ภาษาไทย) สวัสดีครับ / สวัสดีค่ะ 115Thai (ภาษาไทย) สวัสดีครับ / สวัสดีค่ะ
116Tibetan (བོད་སྐད་) བཀྲ་ཤིས་བདེ་ལེགས༎ 116Tibetan (བོད་སྐད་) བཀྲ་ཤིས་བདེ་ལེགས༎
117Tifinagh (ⵜⵉⴼⵉⵏⴰⵖ) ⴰⵣⵓⵍ
117Tigrigna (ትግርኛ) ሰላማት 118Tigrigna (ትግርኛ) ሰላማት
118Tirhuta (𑒞𑒱𑒩𑒯𑒳𑒞𑒰) 𑒣𑓂𑒩𑒢𑒰𑒧 / 𑒮𑒲𑒞𑒰𑒩𑒰𑒧 119Tirhuta (𑒞𑒱𑒩𑒯𑒳𑒞𑒰) 𑒣𑓂𑒩𑒢𑒰𑒧 / 𑒮𑒲𑒞𑒰𑒩𑒰𑒧
119Turkish (Türkçe) Esenlikler / Merhaba 120Turkish (Türkçe) Esenlikler / Merhaba
diff --git a/etc/NEWS b/etc/NEWS
index 607244b4b4b..c907ec40fa1 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -46,6 +46,12 @@ usual minibuffer history commands. Each command has a separate history.
46 46
47* Editing Changes in Emacs 31.1 47* Editing Changes in Emacs 31.1
48 48
49** Internationalization
50
51---
52*** New language-environment and input method for Tifinagh.
53The Tifinagh script is used to write the Berber languages.
54
49 55
50* Changes in Specialized Modes and Packages in Emacs 31.1 56* Changes in Specialized Modes and Packages in Emacs 31.1
51 57
diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el
index 1de424252e8..272fe79d314 100644
--- a/lisp/language/misc-lang.el
+++ b/lisp/language/misc-lang.el
@@ -364,6 +364,19 @@ language environment."))
364 (vector "[\u1820-\u18AF\u202F\u180B-\u180F\u1807]+" 364 (vector "[\u1820-\u18AF\u202F\u180B-\u180F\u1807]+"
365 0 'font-shape-gstring))) 365 0 'font-shape-gstring)))
366 366
367;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
368;; Tifinagh
369;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
370(set-language-info-alist
371 "Tifinagh"
372 '((charset unicode)
373 (coding-system utf-8)
374 (coding-priority utf-8)
375 (input-method "tifinagh")
376 (sample-text "Tifinagh ⴰⵣⵓⵍ")
377 (documentation "Tifinagh a script used to write the Berber languages."))
378 '("Misc"))
379
367(provide 'misc-lang) 380(provide 'misc-lang)
368 381
369;;; misc-lang.el ends here 382;;; misc-lang.el ends here
diff --git a/lisp/leim/quail/tifinagh.el b/lisp/leim/quail/tifinagh.el
new file mode 100644
index 00000000000..6a138396143
--- /dev/null
+++ b/lisp/leim/quail/tifinagh.el
@@ -0,0 +1,67 @@
1;;; tifinagh.el --- Quail package for inputting Tifinagh -*- coding: utf-8; lexical-binding:t -*-
2
3;; Copyright (C) 2024 Free Software Foundation, Inc.
4
5;; Author: Adam Oudad <adam.oudad@gmail.com>
6;; Keywords: mule, input method, Tifinagh
7
8(require 'quail)
9
10(quail-define-package
11 "tifinagh" "Tininagh" "ⵣ" nil "Tifinagh input method.
12
13Based on Tifinagh table in X Keyboard Configuration DB.
14" nil t t t t nil nil nil nil nil t)
15
16;; FIXME: This doesn't cover all of the codepoints that Unicode has
17;; defined for the Tifinagh script.
18(quail-define-rules
19 ("Q" ?ⵈ)
20 ("W" ?ⵯ)
21 ("R" ?ⵕ)
22 ("T" ?ⵟ)
23 ("P" ?ⵒ)
24
25 ("S" ?ⵚ)
26 ("D" ?ⴹ)
27 ("G" ?ⴶ)
28 ("H" ?ⵂ)
29 ("J" ?ⵌ)
30 ("K" ?ⴾ)
31
32 ("Z" ?ⵥ)
33 ("X" ?ⵝ)
34 ("C" ?ⵞ)
35 ("V" ?ⵗ)
36
37 ("q" ?ⵇ)
38 ("w" ?ⵡ)
39 ("e" ?ⴻ)
40 ("r" ?ⵔ)
41 ("t" ?ⵜ)
42 ("y" ?ⵢ)
43 ("u" ?ⵓ)
44 ("i" ?ⵉ)
45 ("o" ?ⵄ)
46 ("p" ?ⵃ)
47
48 ("a" ?ⴰ)
49 ("s" ?ⵙ)
50 ("d" ?ⴷ)
51 ("f" ?ⴼ)
52 ("g" ?ⴳ)
53 ("h" ?ⵀ)
54 ("j" ?ⵊ)
55 ("k" ?ⴽ)
56 ("l" ?ⵍ)
57
58 ("z" ?ⵣ)
59 ("x" ?ⵅ)
60 ("c" ?ⵛ)
61 ("v" ?ⵖ)
62 ("b" ?ⴱ)
63 ("n" ?ⵏ)
64 ("m" ?ⵎ)
65 )
66
67;;; tifinagh.el ends here