[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 229c51a: New input methods hawaiian-postfix and haw
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 229c51a: New input methods hawaiian-postfix and hawaiian-prefix |
Date: |
Thu, 20 Sep 2018 03:22:02 -0400 (EDT) |
branch: master
commit 229c51afbf741b20504b821e6fd5da4145a776f5
Author: Bob Newell <address@hidden>
Commit: Eli Zaretskii <address@hidden>
New input methods hawaiian-postfix and hawaiian-prefix
* lisp/leim/quail/latin-pre.el ("hawaiian-prefix"):
* lisp/leim/quail/latin-post.el ("hawaiian-postfix"): New
input methods. (Bug#32714)
* etc/NEWS: Mention the new input methods.
---
etc/NEWS | 3 +++
lisp/leim/quail/latin-post.el | 48 +++++++++++++++++++++++++++++++++++++++++++
lisp/leim/quail/latin-pre.el | 48 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 99 insertions(+)
diff --git a/etc/NEWS b/etc/NEWS
index cc517c3..736955b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -196,6 +196,9 @@ regular expression was previously invalid, but is now
accepted:
---
** The German prefix and postfix input methods now support Capital sharp S.
+---
+** New input methods hawaiian-postfix and hawaiian-prefix.
+
+++
** New function 'exec-path'.
This function by default returns the value of the corresponding
diff --git a/lisp/leim/quail/latin-post.el b/lisp/leim/quail/latin-post.el
index 791152b..8b0253f 100644
--- a/lisp/leim/quail/latin-post.el
+++ b/lisp/leim/quail/latin-post.el
@@ -739,6 +739,54 @@ Doubling the postfix separates the letter and postfix:
e.g. a\\='\\=' -> a\\='
("z~~" ["z~"])
)
+;;; Hawaiian postfix input method. It's a small subset of Latin-4
+;;; with the addition of an ʻokina mapping. Hopefully the ʻokina shows
+;;; correctly on most displays.
+
+;;; This reference is an authoritative guide to Hawaiian orthography:
+;;; http://www2.hawaii.edu/~strauch/tips/HawaiianOrthography.html
+
+;;; Initial coding 2018-09-08 Bob Newell, Honolulu, Hawaiʻi
+;;; Comments to address@hidden
+
+(quail-define-package
+ "hawaiian-postfix" "Hawaiian Postfix" "H<" t
+ "Hawaiian characters input method with postfix modifiers
+
+ | postfix | examples
+ ------------+---------+----------
+ ʻokina | \\=` | \\=` -> ʻ
+ kahakō | - | a- -> ā
+
+Doubling the postfix separates the letter and postfix. a-- -> a-
+" nil t nil nil nil nil nil nil nil nil t)
+
+(quail-define-rules
+ ("A-" ?Ā)
+ ("E-" ?Ē)
+ ("I~" ?Ĩ)
+ ("O-" ?Ō)
+ ("U-" ?Ū)
+ ("a-" ?ā)
+ ("e-" ?ē)
+ ("i-" ?ī)
+ ("o-" ?ō)
+ ("u-" ?ū)
+ ("`" ?ʻ)
+
+ ("A--" ["A-"])
+ ("E--" ["E-"])
+ ("I--" ["I-"])
+ ("O--" ["O-"])
+ ("U--" ["U-"])
+ ("a--" ["a-"])
+ ("e--" ["e-"])
+ ("i--" ["i-"])
+ ("o--" ["o-"])
+ ("u--" ["u-"])
+ ("``" ["`"])
+ )
+
(quail-define-package
"latin-5-postfix" "Latin-5" "5<" t
"Latin-5 characters input method with postfix modifiers
diff --git a/lisp/leim/quail/latin-pre.el b/lisp/leim/quail/latin-pre.el
index ca5af94..9d343e7 100644
--- a/lisp/leim/quail/latin-pre.el
+++ b/lisp/leim/quail/latin-pre.el
@@ -1285,4 +1285,52 @@ of characters from a single Latin-N charset.
("~~" ?¸)
)
+;;; Hawaiian prefix input method. It's a small subset of Latin-4
+;;; with the addition of an ʻokina mapping. Hopefully the ʻokina shows
+;;; correctly on most displays.
+
+;;; This reference is an authoritative guide to Hawaiian orthography:
+;;; http://www2.hawaii.edu/~strauch/tips/HawaiianOrthography.html
+
+;;; Initial coding 2018-09-08 Bob Newell, Honolulu, Hawaiʻi
+;;; Comments to address@hidden
+
+(quail-define-package
+ "hawaiian-prefix" "Hawaiian Prefix" "H>" t
+ "Hawaiian characters input method with postfix modifiers
+
+ | prefix | examples
+ ------------+---------+----------
+ ʻokina | \\=` | \\=` -> ʻ
+ kahakō | - | -a -> ā
+
+Doubling the prefix separates the letter and prefix. --a -> -a
+" nil t nil nil nil nil nil nil nil nil t)
+
+(quail-define-rules
+ ("-A" ?Ā)
+ ("-E" ?Ē)
+ ("~I" ?Ĩ)
+ ("-O" ?Ō)
+ ("-U" ?Ū)
+ ("-a" ?ā)
+ ("-e" ?ē)
+ ("-i" ?ī)
+ ("-o" ?ō)
+ ("-u" ?ū)
+ ("`" ?ʻ)
+
+ ("--A" ["-A"])
+ ("--E" ["-E"])
+ ("--I" ["-I"])
+ ("--O" ["-O"])
+ ("--U" ["-U"])
+ ("--a" ["-a"])
+ ("--e" ["-e"])
+ ("--i" ["-i"])
+ ("--o" ["-o"])
+ ("--u" ["-u"])
+ ("``" ["`"])
+ )
+
;;; latin-pre.el ends here
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 229c51a: New input methods hawaiian-postfix and hawaiian-prefix,
Eli Zaretskii <=