From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Input Method for Indian Script Date: Thu, 24 Nov 2011 10:38:40 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322098743 11667 80.91.229.12 (24 Nov 2011 01:39:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 01:39:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mahmudul Hasan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 24 02:38:55 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTOH8-0004NA-Nb for ged-emacs-devel@m.gmane.org; Thu, 24 Nov 2011 02:38:54 +0100 Original-Received: from localhost ([::1]:60800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTOH8-0003i2-1q for ged-emacs-devel@m.gmane.org; Wed, 23 Nov 2011 20:38:54 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTOH5-0003hd-3I for emacs-devel@gnu.org; Wed, 23 Nov 2011 20:38:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTOH3-0008FI-E6 for emacs-devel@gnu.org; Wed, 23 Nov 2011 20:38:51 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:43728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTOH2-0008Eu-U7 for emacs-devel@gnu.org; Wed, 23 Nov 2011 20:38:49 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id pAO1cfpF026249; Thu, 24 Nov 2011 10:38:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id pAO1cftn013292; Thu, 24 Nov 2011 10:38:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id pAO1ce22023932; Thu, 24 Nov 2011 10:38:41 +0900 (JST) env-from (handa@m17n.org) In-Reply-To: (message from Mahmudul Hasan on Tue, 22 Nov 2011 21:10:19 -0700) X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 150.29.246.133 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146189 Archived-At: In article , Mahmudul Hasan writes: > Is there any way I can add a new input method for Bengali in Emacs ? > There are two input methods right now, > 1. bengali-inscript, > 2. bengali-itrans. > I would like to add another input method which will be like > bengali-inscript, with fixed, or touch > typing based keyboard layout. Do you mean that the current bengali-inscript is incorrect and thus it should be "fixed"? Or, you just want the different behavior? > Is it possible to add a layout like "Probhat" or "Bijoy" ? (reference: > http://en.wikipedia.org/wiki/Bengali_input_methods , > http://en.wikipedia.org/wiki/File:KB-Bengali-Probhat.svg ). > I will appreciate if someone can tell me whether implementing one of these > fixed keyboard layout can be done with minimal effort. If those input methods are context free (i.e. the same key (sequnece) always produces the same character(s)), making a new input method is easy. ============================================================ (quail-define-package "Probhat" "Bengali" TITLE t DOC-STRING nil t t t t nil nil nil nil nil t) (quail-define-rules (KEY CHAR) ...) ;; See the docstrings of quail-define-package and ;; quail-define-rules. ============================================================ But, if an input method is not context free (e.g. the key "a" produces different charaters depending on what you have already typed), you need some Emacs Lisp programming skill. --- Kenichi Handa handa@m17n.org