emacs/lisp/leim/quail/indonesian.el

558 lines
8.3 KiB
EmacsLisp

;;; indonesian.el --- Quail package for inputting Indonesian characters -*- lexical-binding: t; -*-
;; Copyright (C) 2022-2024 Free Software Foundation, Inc.
;; Author: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
;; Keywords: multilingual, input method, i18n, Indonesia
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Input methods for Indonesian languages.
;;; Code:
(require 'quail)
;; This input method supports languages like Buginese, Balinese, Sundanese and
;; Javanese.
(quail-define-package
"balinese" "Balinese" "" t "Balinese phonetic input method.
`\\=`' is used to switch levels instead of Alt-Gr.
" nil t t t t nil nil nil nil nil t)
(quail-define-rules
("1" ?᭑)
("`1" ?1)
("`!" ?᭫)
("2" ?᭒)
("`2" ?2)
("`@" ?᭬)
("3" ?᭓)
("`3" ?3)
("`#" ?᭭)
("4" ?᭔)
("`4" ?4)
("`$" ?᭮)
("5" ?᭕)
("`5" ?5)
("`%" ?᭯)
("6" ?᭖)
("`6" ?6)
("`^" ?᭰)
("7" ?᭗)
("`7" ?7)
("`&" ?᭱)
("8" ?᭘)
("`8" ?8)
("`*" ?᭲)
("9" ?᭙)
("`9" ?9)
("`(" ?᭳)
("0" ?᭐)
("`0" ?0)
("`)" ?᭼)
("`\\" ?᭞)
("`|" ?᭟)
("`" ?ᬝ)
("q" ?ᬝ)
("Q" ?ᬞ)
("`q" ?᭚)
("`Q" ?᭽)
("w" ?ᬟ)
("W" ?ᬠ)
("`w" ?᭛)
("`W" ?᭾)
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" ?ᯟ)
("z" ?ᯝ)
("Z" ?ᯰ)
("x" ?ᯠ)
("c" ?ᯡ)
("v" ?᯾)
("V" ?᯿)
("b" ?ᯅ)
("B" ?ᯆ)
("n" ?ᯉ)
("N" ?ᯊ)
("`n" ?ᯢ)
("m" ?ᯔ)
("M" ?ᯕ)
("`m" ?ᯣ))
(quail-define-package
"rejang" "Rejang" "ꤽꥍ" nil "Rejang phonetic input method."
nil t t t t nil nil nil nil nil t)
(quail-define-rules
("q" ?꥟)
("w" ?ꥀ)
("e" ?ꥉ)
("E" ?ꥊ)
("r" ?ꤽ)
("R" ?ꥑ)
("t" ?ꤳ)
("y" ?ꤿ)
("u" ?ꥈ)
("U" ?ꥍ)
("i" ?ꥇ)
("o" ?ꥋ)
("O" ?ꥌ)
("p" ?ꤶ)
("a" ?ꥆ)
("A" ?ꥎ)
("s" ?ꤼ)
("d" ?ꤴ)
("D" ?ꥄ)
("f" ?꥓)
("F" ?ꥃ)
("g" ?ꤱ)
("h" ?ꥁ)
("H" ?ꥒ)
("j" ?ꤺ)
("k" ?ꤰ)
("l" ?ꤾ)
("z" ?ꤲ)
("Z" ?ꥏ)
("x" ?ꤻ)
("X" ?ꥅ)
("c" ?ꤹ)
("b" ?ꤷ)
("n" ?ꤵ)
("N" ?ꥐ)
("m" ?ꤸ)
("M" ?ꥂ))
(quail-define-package
"makasar" "Makasar" "𑻪" nil "Makasar phonetic input method."
nil t t t t nil nil nil nil nil t)
(quail-define-rules
("q" ?𑻷)
("Q" ?𑻸)
("e" ?𑻵)
("r" ?𑻭)
("t" ?𑻦)
("y" ?𑻬)
("u" ?𑻴)
("i" ?𑻳)
("o" ?𑻶)
("p" ?𑻣)
("a" ?𑻱)
("s" ?𑻰)
("d" ?𑻧)
("g" ?𑻡)
("j" ?𑻪)
("k" ?𑻠)
("l" ?𑻮)
("z" ?𑻢)
("Z" ?𑻲)
("x" ?𑻫)
("c" ?𑻩)
("v" ?𑻯)
("b" ?𑻤)
("n" ?𑻨)
("m" ?𑻥))
(quail-define-package
"lontara" "Lontara" "" nil "Lontara phonetic input method."
nil t t t t nil nil nil nil nil t)
(quail-define-rules
("q" ?᨞)
("Q" ?᨟)
("e" ?ᨙ)
("E" ?ᨛ)
("r" ?ᨑ)
("t" ?ᨈ)
("y" ?ᨐ)
("u" ?ᨘ)
("i" ?ᨗ)
("o" ?ᨚ)
("p" ?ᨄ)
("a" ?ᨕ)
("s" ?ᨔ)
("d" ?ᨉ)
("g" ?ᨁ)
("h" ?ᨖ)
("j" ?ᨍ)
("k" ?ᨀ)
("l" ?ᨒ)
("z" ?ᨂ)
("Z" ?ᨃ)
("x" ?ᨎ)
("X" ?ᨏ)
("c" ?ᨌ)
("v" ?ᨓ)
("b" ?ᨅ)
("n" ?ᨊ)
("N" ?ᨋ)
("m" ?ᨆ)
("M" ?ᨇ))
(provide 'indonesian)
;;; indonesian.el ends here