From: Bob Newell Date: Wed, 12 Sep 2018 06:37:42 +0000 (-1000) Subject: New input methods hawaiian-postfix and hawaiian-prefix X-Git-Tag: emacs-27.0.90~4397 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=229c51afbf741b20504b821e6fd5da4145a776f5;p=emacs.git 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. --- diff --git a/etc/NEWS b/etc/NEWS index cc517c37c3e..736955be0cb 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 791152bd65c..8b0253f36e3 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 bobnewell@bobnewell.net + +(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 ca5af94ad29..9d343e79c35 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 bobnewell@bobnewell.net + +(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