From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.help Subject: Re: keyboard macro Date: Tue, 22 Oct 2013 10:38:56 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382463617 13598 80.91.229.3 (22 Oct 2013 17:40:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 17:40:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 22 19:40:22 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYfwK-00012G-E6 for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Oct 2013 19:40:20 +0200 Original-Received: from localhost ([::1]:46069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYfwK-0008O7-2e for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Oct 2013 13:40:20 -0400 X-Received: by 10.68.234.165 with SMTP id uf5mr8858250pbc.0.1382463537969; Tue, 22 Oct 2013 10:38:57 -0700 (PDT) X-Received: by 10.50.2.74 with SMTP id 10mr416880igs.15.1382463537557; Tue, 22 Oct 2013 10:38:57 -0700 (PDT) Original-Path: usenet.stanford.edu!y3no79358777pbx.0!news-out.google.com!z6ni86859pbu.0!nntp.google.com!i2no27572883qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.29.243; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.29.243 User-Agent: G2/1.0 Injection-Date: Tue, 22 Oct 2013 17:38:57 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:201875 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94145 Archived-At: On Monday, October 21, 2013 10:05:51 PM UTC+5:30, Christof Spitz wrote: > Hello, >=20 > I have to write special characters for transliteration of a non-european >=20 > language (devanagari) in Emacs. These include characters like =C4=81,=C4= =AB,=C5=AB,=C5=9B,=E1=B9=A3 etc. Can you try this? It uses Itrans scheme (require 'quail) (quail-define-package "devanagari-diacritic" "UTF-8" "=E0=A4=85" t "Example diacritic " nil t t nil t nil nil nil nil nil t) (defvar devanagari-map '(("A" ?=C4=81) ("I" ?=C4=AB) ("U" ?=C5=AB) ("~N" ?=E1=B9=85) ("~n" ?=C3=B1) ("N" ?=E1=B9=87) ("T" ?=E1=B9=AD) ("D" ?=E1=B8=8D) ("sh" ?=C5=9B) ("Sh" ?=E1=B9=A3) )) (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")