[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: devanagari diacritics

From: Rustom Mody
Subject: Re: devanagari diacritics
Date: Wed, 23 Oct 2013 19:35:24 +0530

On Wed, Oct 23, 2013 at 7:12 PM, Stefan Monnier
<address@hidden> 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
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)

 "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
    ("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 via email to

[Prev in Thread] Current Thread [Next in Thread]