unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ali Gholami Rudi <aligrudi@gmail.com>
To: emacs devel <emacs-devel@gnu.org>
Subject: Farsi input method
Date: Mon, 25 Feb 2008 10:23:06 +0330	[thread overview]
Message-ID: <874pbx4j9i.fsf@oojibishe.mirepesht> (raw)

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

Hi all:

I've attached farsi.el for adding Farsi input method to Emacs.  I've
created this file by changing arabic.el by James Cloos.  The mapping is
based on the one X11 uses for ir layout.

Regards,
Ali

*** a/leim/leim-list.el
--- b/leim/leim-list.el
*************** While this input method is active, the v
*** 476,481 ****
--- 476,485 ----
   "ع" "Arabic input method."
   "quail/arabic")
  (register-input-method
+  "farsi" "Farsi" 'quail-use-package
+  "ف" "Farsi input method."
+  "quail/farsi")
+ (register-input-method
   "welsh" "Welsh" 'quail-use-package
   "Ŵ" "Welsh postfix input method"
   "quail/welsh")


[-- Attachment #2: quail farsi package --]
[-- Type: application/emacs-lisp, Size: 2662 bytes --]

;;; farsi.el --- Quail package for inputting Farsi	-*- coding: utf-8;-*-

;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.

;; Author: James Cloos <cloos@jhcloos.com>
;;         Ali Gholami Rudi <aligrudi@gmail.com>
;; Keywords: mule, input method, Farsi

;; 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, 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; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;;; Commentary:

;;; Code:

(require 'quail)

(quail-define-package
 "farsi" "Farsi" "ف" nil "Farsi input method.

Based on Farsi table in X Keyboard Configuration DB.
" nil t t t t nil nil nil nil nil t)

;;  ‍÷ ۱! ۲٬ ۳٫ ۴﷼ ۵٪ ۶× ۷، ۸* ۹) ۰( -ـ =+
;;      ضْ صٌ ثٍ قً فُ غِ عَ هّ خ] ح[ ج} چ{ \|
;;       شؤ سئ یي یي بإ لأ اآ تة ن» م« ک: گ؛
;;        ظك طٓ زژ رٰ ذ‌ دٔ پء و> .< /؟
;;

(quail-define-rules
 ("~" ?÷)
 ("!" ?!)
 ("@" ?٬)
 ("#" ?٫)
 ("$" ?﷼)
 ("%" ?٪)
 ("^" ?×)
 ("&" ?،)
 ("*" ?*)
 ("(" ?))
 (")" ?()
 ("_" ?ـ)
 ("+" ?+)

 ("Q" ?ْ)
 ("W" ?ٌ)
 ("E" ?ٍ)
 ("R" ?ً)
 ("T" ?ُ)
 ("Y" ?ِ)
 ("U" ?َ)
 ("I" ?ّ)
 ("O" ?])
 ("P" ?[)

 ("A" ?ؤ)
 ("S" ?ئ)
 ("D" ?ي)
 ("F" ?إ)
 ("G" ?أ)
 ("H" ?آ)
 ("J" ?ة)
 ("K" ?»)
 ("L" ?«)
 (";" ?ک)
 ("\"" ?؛)

 ("Z" ?ك)
 ("X" ?ٓ)
 ("C" ?ژ)
 ("V" ?ٰ)
 ("B" ?‌)
 ("N" ?ٔ)
 ("M" ?ء)
 ("<" ?>)
 (">" ?<)
 ("?" ?؟)

 ("`" ?‍)
 ("1" ?۱)
 ("2" ?۲)
 ("3" ?۳)
 ("4" ?۴)
 ("5" ?۵)
 ("6" ?۶)
 ("7" ?۷)
 ("8" ?۸)
 ("9" ?۹)
 ("0" ?۰)
 ("-" ?-)
 ("=" ?=)

 ("q" ?ض)
 ("w" ?ص)
 ("e" ?ث)
 ("r" ?ق)
 ("t" ?ف)
 ("y" ?غ)
 ("u" ?ع)
 ("i" ?ه)
 ("o" ?خ)
 ("p" ?ح)

 ("[" ?ج)
 ("]" ?چ)
 ("{" ?})
 ("}" ?{)

 ("a" ?ش)
 ("s" ?س)
 ("d" ?ی)
 ("f" ?ب)
 ("g" ?ل)
 ("h" ?ا)
 ("j" ?ت)
 ("k" ?ن)
 ("l" ?م)
 (";" ?ک)

 ("z" ?ظ)
 ("x" ?ط)
 ("c" ?ز)
 ("v" ?ر)
 ("b" ?ذ)
 ("n" ?د)
 ("m" ?پ)
 ("," ?و)
 ("." ?.)
 ("/" ?/)

 ("'" ?گ))

                 reply	other threads:[~2008-02-25  6:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=874pbx4j9i.fsf@oojibishe.mirepesht \
    --to=aligrudi@gmail.com \
    --cc=emacs-devel@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).