unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Mahmudul Hasan <cs.mahmud@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Input Method for Indian Script
Date: Thu, 24 Nov 2011 10:38:40 +0900	[thread overview]
Message-ID: <tl7pqgixpsv.fsf@m17n.org> (raw)
In-Reply-To: <CADAHBw1xsB26bHPaDH-L07wP7i4VQu2WkQ42CpqYJQNvKy5HaA@mail.gmail.com> (message from Mahmudul Hasan on Tue, 22 Nov 2011 21:10:19 -0700)

In article <CADAHBw1xsB26bHPaDH-L07wP7i4VQu2WkQ42CpqYJQNvKy5HaA@mail.gmail.com>, Mahmudul Hasan <cs.mahmud@gmail.com> 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



  reply	other threads:[~2011-11-24  1:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23  4:10 Input Method for Indian Script Mahmudul Hasan
2011-11-24  1:38 ` Kenichi Handa [this message]
2011-11-24  1:57   ` Mahmudul Hasan

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=tl7pqgixpsv.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=cs.mahmud@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).