2020-11-23 11:12:29 +00:00
|
|
|
|
;;; arabic.el --- Quail package for inputting Arabic -*- coding: utf-8; lexical-binding:t -*-
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
2024-01-02 01:47:10 +00:00
|
|
|
|
;; Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
2008-02-02 04:13:38 +00:00
|
|
|
|
|
|
|
|
|
;; Author: James Cloos <cloos@jhcloos.com>
|
2007-04-26 00:55:56 +00:00
|
|
|
|
;; Keywords: mule, input method, Arabic
|
|
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
2008-05-07 03:37:08 +00:00
|
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
2007-04-26 00:55:56 +00:00
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
2008-05-07 03:37:08 +00:00
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
|
|
|
|
;; 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
|
2017-09-13 22:52:52 +00:00
|
|
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
(require 'quail)
|
|
|
|
|
|
|
|
|
|
(quail-define-package
|
|
|
|
|
"arabic" "Arabic" "ع" nil "Arabic input method.
|
|
|
|
|
|
|
|
|
|
Based on Arabic table in X Keyboard Configuration DB.
|
|
|
|
|
" nil t t t t nil nil nil nil nil t)
|
|
|
|
|
|
2007-08-20 11:24:46 +00:00
|
|
|
|
;; ذّ 1! 2@ 3# 4$ 5% 6^ 7& 8* 9) 0( -_ =+
|
|
|
|
|
;; ضَ صً ثُ قٌ فﻹ غإ ع` ه÷ خ× ح؛ ج< د> <>
|
|
|
|
|
;; شِ سٍ ي] ب[ لﻷ اأ تـ ن، م/ ك: ط"
|
|
|
|
|
;; ئ~ ءْ ؤ} ر{ ﻻﻵ ىآ ة' و, ز. ظ؟
|
2007-04-26 00:55:56 +00:00
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
(quail-define-rules
|
|
|
|
|
("`" ?ذ)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("~" ?ّ)
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
|
|
|
|
("Q" ?َ)
|
|
|
|
|
("W" ?ً)
|
|
|
|
|
("E" ?ُ)
|
|
|
|
|
("R" ?ٌ)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("T" ["لإ"])
|
2007-04-26 00:55:56 +00:00
|
|
|
|
("Y" ?إ)
|
|
|
|
|
("U" ?`)
|
|
|
|
|
("I" ?÷)
|
|
|
|
|
("O" ?×)
|
|
|
|
|
("P" ?؛)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("{" ?<)
|
|
|
|
|
("}" ?>)
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
2007-08-20 11:24:46 +00:00
|
|
|
|
("A" ?ِ)
|
|
|
|
|
("S" ?ٍ)
|
2010-08-14 08:20:08 +00:00
|
|
|
|
("D" ?\])
|
|
|
|
|
("F" ?\[)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("G" ["لأ"])
|
2007-04-26 00:55:56 +00:00
|
|
|
|
("H" ?أ)
|
|
|
|
|
("J" ?ـ)
|
|
|
|
|
("K" ?،)
|
|
|
|
|
("L" ?/)
|
|
|
|
|
|
|
|
|
|
("Z" ?~)
|
|
|
|
|
("X" ?ْ)
|
2007-08-20 11:24:46 +00:00
|
|
|
|
("C" ?})
|
|
|
|
|
("V" ?{)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("B" ["لآ"])
|
2007-04-26 00:55:56 +00:00
|
|
|
|
("N" ?آ)
|
|
|
|
|
("M" ?')
|
|
|
|
|
("<" ?,)
|
|
|
|
|
(">" ?.)
|
|
|
|
|
("?" ?؟)
|
|
|
|
|
|
|
|
|
|
("q" ?ض)
|
|
|
|
|
("w" ?ص)
|
|
|
|
|
("e" ?ث)
|
|
|
|
|
("r" ?ق)
|
|
|
|
|
("t" ?ف)
|
|
|
|
|
("y" ?غ)
|
|
|
|
|
("u" ?ع)
|
|
|
|
|
("i" ?ه)
|
|
|
|
|
("o" ?خ)
|
|
|
|
|
("p" ?ح)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("[" ?ج)
|
|
|
|
|
("]" ?د)
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
|
|
|
|
("a" ?ش)
|
|
|
|
|
("s" ?س)
|
|
|
|
|
("d" ?ي)
|
|
|
|
|
("f" ?ب)
|
|
|
|
|
("g" ?ل)
|
|
|
|
|
("h" ?ا)
|
|
|
|
|
("j" ?ت)
|
|
|
|
|
("k" ?ن)
|
|
|
|
|
("l" ?م)
|
|
|
|
|
(";" ?ك)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("'" ?ط)
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
|
|
|
|
("z" ?ئ)
|
|
|
|
|
("x" ?ء)
|
|
|
|
|
("c" ?ؤ)
|
|
|
|
|
("v" ?ر)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("b" ["لا"])
|
2007-04-26 00:55:56 +00:00
|
|
|
|
("n" ?ى)
|
|
|
|
|
("m" ?ة)
|
|
|
|
|
("," ?و)
|
|
|
|
|
("." ?ز)
|
2009-08-21 14:55:56 +00:00
|
|
|
|
("/" ?ظ))
|
2007-04-26 00:55:56 +00:00
|
|
|
|
|
|
|
|
|
;;; arabic.el ends here
|