From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ali Gholami Rudi Newsgroups: gmane.emacs.devel Subject: Farsi input method Date: Mon, 25 Feb 2008 10:23:06 +0330 Message-ID: <874pbx4j9i.fsf@oojibishe.mirepesht> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1203922498 2634 80.91.229.12 (25 Feb 2008 06:54:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2008 06:54:58 +0000 (UTC) To: emacs devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 07:55:23 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JTXFC-0004df-Mq for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 07:55:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTXEg-0004k8-V8 for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 01:54:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTXEA-0004ep-IL for emacs-devel@gnu.org; Mon, 25 Feb 2008 01:54:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTXE8-0004e6-Me for emacs-devel@gnu.org; Mon, 25 Feb 2008 01:54:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTXE8-0004e0-DM for emacs-devel@gnu.org; Mon, 25 Feb 2008 01:54:16 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.168]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTXE8-0000mp-48 for emacs-devel@gnu.org; Mon, 25 Feb 2008 01:54:16 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so746390ugf.48 for ; Sun, 24 Feb 2008 22:54:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject:date:message-id:user-agent:mime-version:content-type; bh=RVl3zSfn5DlQXXmFEl34gsQpH6TiaZQXBEFt3u6yxxk=; b=e/50jYoA0N3qIiCYmn+AKMiyALs5Pu3yXQHRzv4cRY/Or+1cxqvxKWVUKSEAR2LSDvmdiJUoYwItJTXEekfI0MYJ78t6XpN0wL1Kn9Gxtu2TeS2o7a8jN0yie151B6dmt/6RoWknl5Uj31TcVK8mlaCK2jK6xiW0YnTCBYVIETo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version:content-type; b=Pv4NYHlrbAL2/lnI1WJtcYYfRvNikTcsCm+63Pnv2Fk3baRcgMFwXvQX4bfYN0eN86a2KPddcV6XSVuNuO0fSb4RPxZuPt4CHb5/I4SPvEcGd0vcG0hjyMyuOib06kRnK4/cK/E3BxVSv0zb3dNKVWCGgoi74a1Dx00bvXFdFtY= Original-Received: by 10.67.27.3 with SMTP id e3mr2738662ugj.22.1203922453831; Sun, 24 Feb 2008 22:54:13 -0800 (PST) Original-Received: from oojibishe ( [213.217.39.4]) by mx.google.com with ESMTPS id f13sm3877441gvd.9.2008.02.24.22.54.09 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Feb 2008 22:54:12 -0800 (PST) Original-Received: from ali by oojibishe with local (Exim 4.63) (envelope-from ) id 1JTXFh-0001Gl-Sj for emacs-devel@gnu.org; Mon, 25 Feb 2008 01:55:53 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90353 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ---- "=D8=B9" "Arabic input method." "quail/arabic") (register-input-method + "farsi" "Farsi" 'quail-use-package + "=D9=81" "Farsi input method." + "quail/farsi") + (register-input-method "welsh" "Welsh" 'quail-use-package "=C5=B4" "Welsh postfix input method" "quail/welsh") --=-=-= Content-Type: application/emacs-lisp; charset=utf-8 Content-Disposition: inline; filename=farsi.el Content-Transfer-Encoding: quoted-printable Content-Description: quail farsi package ;;; farsi.el --- Quail package for inputting Farsi -*- coding: utf-8;-*- ;; Copyright (C) 2007, 2008 Free Software Foundation, Inc. ;; Author: James Cloos ;; Ali Gholami Rudi ;; 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" "=D9=81" nil "Farsi input method. Based on Farsi table in X Keyboard Configuration DB. " nil t t t t nil nil nil nil nil t) ;; =E2=80=8D=C3=B7 =DB=B1! =DB=B2=D9=AC =DB=B3=D9=AB =DB=B4=EF=B7=BC =DB= =B5=D9=AA =DB=B6=C3=97 =DB=B7=D8=8C =DB=B8* =DB=B9) =DB=B0( -=D9=80 =3D+ ;; =D8=B6=D9=92 =D8=B5=D9=8C =D8=AB=D9=8D =D9=82=D9=8B =D9=81=D9=8F = =D8=BA=D9=90 =D8=B9=D9=8E =D9=87=D9=91 =D8=AE] =D8=AD[ =D8=AC} =DA=86{ \| ;; =D8=B4=D8=A4 =D8=B3=D8=A6 =DB=8C=D9=8A =DB=8C=D9=8A =D8=A8=D8=A5 = =D9=84=D8=A3 =D8=A7=D8=A2 =D8=AA=D8=A9 =D9=86=C2=BB =D9=85=C2=AB =DA=A9: = =DA=AF=D8=9B ;; =D8=B8=D9=83 =D8=B7=D9=93 =D8=B2=DA=98 =D8=B1=D9=B0 =D8=B0=E2=80= =8C =D8=AF=D9=94 =D9=BE=D8=A1 =D9=88> .< /=D8=9F ;; (quail-define-rules ("~" ?=C3=B7) ("!" ?!) ("@" ?=D9=AC) ("#" ?=D9=AB) ("$" ?=EF=B7=BC) ("%" ?=D9=AA) ("^" ?=C3=97) ("&" ?=D8=8C) ("*" ?*) ("(" ?)) (")" ?() ("_" ?=D9=80) ("+" ?+) ("Q" ?=D9=92) ("W" ?=D9=8C) ("E" ?=D9=8D) ("R" ?=D9=8B) ("T" ?=D9=8F) ("Y" ?=D9=90) ("U" ?=D9=8E) ("I" ?=D9=91) ("O" ?]) ("P" ?[) ("A" ?=D8=A4) ("S" ?=D8=A6) ("D" ?=D9=8A) ("F" ?=D8=A5) ("G" ?=D8=A3) ("H" ?=D8=A2) ("J" ?=D8=A9) ("K" ?=C2=BB) ("L" ?=C2=AB) (";" ?=DA=A9) ("\"" ?=D8=9B) ("Z" ?=D9=83) ("X" ?=D9=93) ("C" ?=DA=98) ("V" ?=D9=B0) ("B" ?=E2=80=8C) ("N" ?=D9=94) ("M" ?=D8=A1) ("<" ?>) (">" ?<) ("?" ?=D8=9F) ("`" ?=E2=80=8D) ("1" ?=DB=B1) ("2" ?=DB=B2) ("3" ?=DB=B3) ("4" ?=DB=B4) ("5" ?=DB=B5) ("6" ?=DB=B6) ("7" ?=DB=B7) ("8" ?=DB=B8) ("9" ?=DB=B9) ("0" ?=DB=B0) ("-" ?-) ("=3D" ?=3D) ("q" ?=D8=B6) ("w" ?=D8=B5) ("e" ?=D8=AB) ("r" ?=D9=82) ("t" ?=D9=81) ("y" ?=D8=BA) ("u" ?=D8=B9) ("i" ?=D9=87) ("o" ?=D8=AE) ("p" ?=D8=AD) ("[" ?=D8=AC) ("]" ?=DA=86) ("{" ?}) ("}" ?{) ("a" ?=D8=B4) ("s" ?=D8=B3) ("d" ?=DB=8C) ("f" ?=D8=A8) ("g" ?=D9=84) ("h" ?=D8=A7) ("j" ?=D8=AA) ("k" ?=D9=86) ("l" ?=D9=85) (";" ?=DA=A9) ("z" ?=D8=B8) ("x" ?=D8=B7) ("c" ?=D8=B2) ("v" ?=D8=B1) ("b" ?=D8=B0) ("n" ?=D8=AF) ("m" ?=D9=BE) ("," ?=D9=88) ("." ?.) ("/" ?/) ("'" ?=DA=AF)) --=-=-=--