unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Rustom Mody <rustompmody@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: devanagari diacritics
Date: Wed, 23 Oct 2013 19:35:24 +0530	[thread overview]
Message-ID: <CAJ+TeodVG7yZvQY5w2JF26zXWW9+m6ya78sV9tmE8MtBTErO3w@mail.gmail.com> (raw)
In-Reply-To: <jwvk3h4yuin.fsf-monnier+emacs@gnu.org>

On Wed, Oct 23, 2013 at 7:12 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>>   '(("A"  ?ā)
>
> C-u C-\ TeX RET,

Yeah I know about the tex input method

> then put cursor on the ā character, then C-u C-x =

So I learn the keyboard version of M-x describe-char -- thanks :-)

> will tell you that \=a lets you input this char.

Ok... but I am not sure what point you are making.
This input method is for someone who needs to type out a significant
amount of devanagari.
In particular I am attempting to replicate the emacs input method
devanagari-itrans
see http://en.wikipedia.org/wiki/ITRANS

The current devanagari-itrans converts itrans input into devanagari proper
This input method would convert itrans into romanized diacritics.

In any case, my current version (after David's last input) stands at this:
----------------
(require 'quail)

(quail-define-package
 "devanagari-diacritic" "UTF-8" "अ" t
 "Example diacritic
" nil t t nil t nil nil nil nil nil t)
;; that last line copied it from something David de la Harpe Golden wrote

(defvar devanagari-map
  '(("A"  ?ā)
    ("I"  ?ī)
    ("U"  ?ū)
    ;("RRi" ?ṛ)  ; or should it be the following?
    ("RRi" ["r̥"])  ; see
http://en.wikipedia.org/wiki/ISO_15919#Comparison_with_UNRSGN_and_IAST
    ("LLi" ?ḷ)
    ("c" ["ch"])
    ("~N" ?ṅ)
    ("~n" ?ñ)
    ("N"  ?ṇ)
    ("T"  ?ṭ)
    ("D"  ?ḍ)
    ("sh" ?ś)
    ("Sh" ?ṣ)
   )
"The basic sructure for converting Itrans devanagari into diacritics
Many details to be filled in after consulting experts
See http://en.wikipedia.org/wiki/ITRANS
"
)

;; an 'interpreter' for the above
;; Surely such function must exist somewhere??
(defun quail-block-defrules (quail-map quail-package)
  (dolist (key-trans quail-map)
    (let ((key (car key-trans))
      (trans (cadr key-trans)))
      (quail-defrule key trans quail-package))))

(quail-block-defrules devanagari-map "devanagari-diacritic")



  reply	other threads:[~2013-10-23 14:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23  3:12 devanagari diacritics Rustom Mody
2013-10-23 12:22 ` David De La Harpe Golden
2013-10-23 13:42 ` Stefan Monnier
2013-10-23 14:05   ` Rustom Mody [this message]
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+TeodVG7yZvQY5w2JF26zXWW9+m6ya78sV9tmE8MtBTErO3w@mail.gmail.com \
    --to=rustompmody@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).