| 1 | ;;; arabic.el --- Quail package for inputting Arabic -*- coding: utf-8;-*- |
| 2 | |
| 3 | ;; Copyright (C) 2007-2012 Free Software Foundation, Inc. |
| 4 | |
| 5 | ;; Author: James Cloos <cloos@jhcloos.com> |
| 6 | ;; Keywords: mule, input method, Arabic |
| 7 | |
| 8 | ;; This file is part of GNU Emacs. |
| 9 | |
| 10 | ;; GNU Emacs is free software: you can redistribute it and/or modify |
| 11 | ;; it under the terms of the GNU General Public License as published by |
| 12 | ;; the Free Software Foundation, either version 3 of the License, or |
| 13 | ;; (at your option) any later version. |
| 14 | |
| 15 | ;; GNU Emacs is distributed in the hope that it will be useful, |
| 16 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | ;; GNU General Public License for more details. |
| 19 | |
| 20 | ;; You should have received a copy of the GNU General Public License |
| 21 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
| 22 | |
| 23 | ;;; Commentary: |
| 24 | |
| 25 | ;;; Code: |
| 26 | |
| 27 | (require 'quail) |
| 28 | |
| 29 | (quail-define-package |
| 30 | "arabic" "Arabic" "ع" nil "Arabic input method. |
| 31 | |
| 32 | Based on Arabic table in X Keyboard Configuration DB. |
| 33 | " nil t t t t nil nil nil nil nil t) |
| 34 | |
| 35 | ;; ذّ 1! 2@ 3# 4$ 5% 6^ 7& 8* 9) 0( -_ =+ |
| 36 | ;; ضَ صً ثُ قٌ فﻹ غإ ع` ه÷ خ× ح؛ ج< د> <> |
| 37 | ;; شِ سٍ ي] ب[ لﻷ اأ تـ ن، م/ ك: ط" |
| 38 | ;; ئ~ ءْ ؤ} ر{ ﻻﻵ ىآ ة' و, ز. ظ؟ |
| 39 | ;; |
| 40 | |
| 41 | (quail-define-rules |
| 42 | ("`" ?ذ) |
| 43 | ("~" ?ّ) |
| 44 | |
| 45 | ("Q" ?َ) |
| 46 | ("W" ?ً) |
| 47 | ("E" ?ُ) |
| 48 | ("R" ?ٌ) |
| 49 | ("T" ["لإ"]) |
| 50 | ("Y" ?إ) |
| 51 | ("U" ?`) |
| 52 | ("I" ?÷) |
| 53 | ("O" ?×) |
| 54 | ("P" ?؛) |
| 55 | ("{" ?<) |
| 56 | ("}" ?>) |
| 57 | |
| 58 | ("A" ?ِ) |
| 59 | ("S" ?ٍ) |
| 60 | ("D" ?\]) |
| 61 | ("F" ?\[) |
| 62 | ("G" ["لأ"]) |
| 63 | ("H" ?أ) |
| 64 | ("J" ?ـ) |
| 65 | ("K" ?،) |
| 66 | ("L" ?/) |
| 67 | |
| 68 | ("Z" ?~) |
| 69 | ("X" ?ْ) |
| 70 | ("C" ?}) |
| 71 | ("V" ?{) |
| 72 | ("B" ["لآ"]) |
| 73 | ("N" ?آ) |
| 74 | ("M" ?') |
| 75 | ("<" ?,) |
| 76 | (">" ?.) |
| 77 | ("?" ?؟) |
| 78 | |
| 79 | ("q" ?ض) |
| 80 | ("w" ?ص) |
| 81 | ("e" ?ث) |
| 82 | ("r" ?ق) |
| 83 | ("t" ?ف) |
| 84 | ("y" ?غ) |
| 85 | ("u" ?ع) |
| 86 | ("i" ?ه) |
| 87 | ("o" ?خ) |
| 88 | ("p" ?ح) |
| 89 | ("[" ?ج) |
| 90 | ("]" ?د) |
| 91 | |
| 92 | ("a" ?ش) |
| 93 | ("s" ?س) |
| 94 | ("d" ?ي) |
| 95 | ("f" ?ب) |
| 96 | ("g" ?ل) |
| 97 | ("h" ?ا) |
| 98 | ("j" ?ت) |
| 99 | ("k" ?ن) |
| 100 | ("l" ?م) |
| 101 | (";" ?ك) |
| 102 | ("'" ?ط) |
| 103 | |
| 104 | ("z" ?ئ) |
| 105 | ("x" ?ء) |
| 106 | ("c" ?ؤ) |
| 107 | ("v" ?ر) |
| 108 | ("b" ["لا"]) |
| 109 | ("n" ?ى) |
| 110 | ("m" ?ة) |
| 111 | ("," ?و) |
| 112 | ("." ?ز) |
| 113 | ("/" ?ظ)) |
| 114 | |
| 115 | ;;; arabic.el ends here |