unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Farsi input method
@ 2008-02-25  6:53 Ali Gholami Rudi
  0 siblings, 0 replies; only message in thread
From: Ali Gholami Rudi @ 2008-02-25  6:53 UTC (permalink / raw)
  To: emacs devel

[-- 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.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("d" ?ی)
 ("f" ?ب)
 ("g" ?ل)
 ("h" ?ا)
 ("j" ?ت)
 ("k" ?ن)
 ("l" ?م)
 (";" ?ک)

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

 ("'" ?گ))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-25  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25  6:53 Farsi input method Ali Gholami Rudi

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).