[Top][All Lists]

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

Re: keyboard macro

From: Rustom Mody
Subject: Re: keyboard macro
Date: Tue, 22 Oct 2013 10:38:56 -0700 (PDT)
User-agent: G2/1.0

On Monday, October 21, 2013 10:05:51 PM UTC+5:30, Christof Spitz wrote:
> Hello,
> I have to write special characters for transliteration of a non-european
> language (devanagari) in Emacs. These include characters like ā,ī,ū,ś,ṣ etc.

Can you try this?  It uses Itrans scheme

(require 'quail)

 "devanagari-diacritic" "UTF-8" "अ" t
 "Example diacritic

" nil t t nil t nil nil nil nil nil t)

(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")

reply via email to

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