unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Bob Newell <bobnewell@bobnewell.net>
To: 32714@debbugs.gnu.org
Subject: bug#32714: 26.1; Proposed language input methods --- Hawaiian
Date: Tue, 11 Sep 2018 20:37:42 -1000	[thread overview]
Message-ID: <87o9d32pc9.fsf@bobnewell.net> (raw)

This is not a bug report per se but an offering of an enhancement. It
was suggested that I submit it through this method. If this is not
correct I apologize in advance and ask guidance on the proper
procedures.

I'm appending code for Hawaiian-language pre- and postfix input methods,
which would go in /lisp/leim/quail either as a standalone file or split
between the latin pre- and latin-post files.

Some years ago I signed FSF paperwork.

-- 
Bob Newell
Honolulu, Hawai`i
* Via Gnus/BBDB/Org/Emacs/Linux *

;;; Implement Hawaiian pre/post-fix 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.

;;; You should be in one of the "Latin" language environments, such as
;;; (set-language-environment "Latin-4")

;;; 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

(require 'quail)

(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
 "hawaiian-prefix" "Hawaiian Prefix" "H>" t
 "Hawaiian characters input method with postfix modifiers

             | postfix | 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"])
 ("``"  ["`"])
 )





             reply	other threads:[~2018-09-12  6:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-12  6:37 Bob Newell [this message]
2018-09-20  7:23 ` bug#32714: 26.1; Proposed language input methods --- Hawaiian Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9d32pc9.fsf@bobnewell.net \
    --to=bobnewell@bobnewell.net \
    --cc=32714@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).