From: Rustom Mody <rustompmody@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: devanagari diacritics
Date: Wed, 23 Oct 2013 08:42:06 +0530 [thread overview]
Message-ID: <CAJ+TeoddtnDu3DbA1vj7BfkDaEA27xjJSEZURDXTmP4CAmtiFg@mail.gmail.com> (raw)
There have been a couple of independent questions on help.gnu.emacs
for typing devanagari-as-diacritics in the last couple of weeks.
Emacs as of now comes with a couple of devanagari modes for typing
devanagari but not romanized diacritics for devanagari.
Firstly, does something like this exist?
In any case, I came up with the following:
There is one thing I dont know how to do -- how do you make an rule
that expands to more than one character. For example we may want "c"
to expand to "ch"
-----------------------
(require 'quail)
(quail-define-package
"devanagari-diacritic" "UTF-8" "अ" t
"Example diacritic
" nil t t nil t nil nil nil nil nil t)
;; no much idea what all these nil/t's are
;; just copied it from something David de la Harpe Golden wrote
(defvar devanagari-map
'(("A" ?ā)
("I" ?ī)
("U" ?ū)
("~N" ?ṅ)
("~n" ?ñ)
("N" ?ṇ)
("T" ?ṭ)
("D" ?ḍ)
("sh" ?ś)
("Sh" ?ṣ)
))
(defun quail-block-defrules (kb quail-package)
(dolist (key-trans devanagari-map)
(let ((key (car key-trans))
(trans (cadr key-trans)))
(quail-defrule key trans quail-package))))
(quail-block-defrules devanagari-map "devanagari-diacritic")
-----------
Rusi
--
http://www.the-magus.in
http://blog.languager.org
next reply other threads:[~2013-10-23 3:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 3:12 Rustom Mody [this message]
2013-10-23 12:22 ` devanagari diacritics David De La Harpe Golden
2013-10-23 13:42 ` Stefan Monnier
2013-10-23 14:05 ` Rustom Mody
2013-10-23 18:27 ` Stefan Monnier
2013-10-24 2:36 ` Rustom Mody
2013-10-24 3:36 ` Stefan Monnier
2013-10-28 13:21 ` Rustom Mody
2013-10-28 14:47 ` Stefan Monnier
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=CAJ+TeoddtnDu3DbA1vj7BfkDaEA27xjJSEZURDXTmP4CAmtiFg@mail.gmail.com \
--to=rustompmody@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).