From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.devel Subject: Re: devanagari diacritics Date: Wed, 23 Oct 2013 19:35:24 +0530 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 1382537157 14981 80.91.229.3 (23 Oct 2013 14:05:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2013 14:05:57 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 23 16:06:02 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VYz4S-0003fE-2r for ged-emacs-devel@m.gmane.org; Wed, 23 Oct 2013 16:06:00 +0200 Original-Received: from localhost ([::1]:49564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYz4R-0003B9-JY for ged-emacs-devel@m.gmane.org; Wed, 23 Oct 2013 10:05:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYz4I-0003Ao-Mx for emacs-devel@gnu.org; Wed, 23 Oct 2013 10:05:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYz4E-0002nT-M7 for emacs-devel@gnu.org; Wed, 23 Oct 2013 10:05:50 -0400 Original-Received: from mail-pb0-x232.google.com ([2607:f8b0:400e:c01::232]:58751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYz4E-0002md-E5 for emacs-devel@gnu.org; Wed, 23 Oct 2013 10:05:46 -0400 Original-Received: by mail-pb0-f50.google.com with SMTP id uo15so1002898pbc.9 for ; Wed, 23 Oct 2013 07:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=9PVHD/1jeVFchpcHwA0xKlC2UfbdSI4nae2Vtc9p4Fo=; b=CXkbPHMrmdHxNZNR4jds4n19GIum6XOC7kRJ/8Cih/7mO8CKp5X6d7TrnlZNZQu97O /pRUfb5/fQOmGzD9/KHz1oNAPO1bE0VfbtMisNLNnQRWHega8YGlKv1L+3TxqcgSrYcD DiXLhHAm8Vgfs+jTwD1HP2FInOnUD3iE1jpiBj3NqRtwV4VUMbd8KenrYcG9xtGsGnQh KtoQfJdRmvCFVjAyJOLNze8VmHKJC/ba+mT+ZLrQWJ2ec7HdlBhiabQr3h1YdUVIRzut RRqjugr6iiY2xamqDfxx/V826g3aFz0MMAXjW9LGbHe/sZyCLvoic4pn9gt3dccRaBpo x9sg== X-Received: by 10.68.4.232 with SMTP id n8mr1832021pbn.9.1382537145046; Wed, 23 Oct 2013 07:05:45 -0700 (PDT) Original-Received: by 10.68.233.74 with HTTP; Wed, 23 Oct 2013 07:05:24 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164483 Archived-At: On Wed, Oct 23, 2013 at 7:12 PM, Stefan Monnier wrote: >> '(("A" ?=C4=81) > > C-u C-\ TeX RET, Yeah I know about the tex input method > then put cursor on the =C4=81 character, then C-u C-x =3D So I learn the keyboard version of M-x describe-char -- thanks :-) > will tell you that \=3Da 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" "=E0=A4=85" 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" ?=C4=81) ("I" ?=C4=AB) ("U" ?=C5=AB) ;("RRi" ?=E1=B9=9B) ; or should it be the following? ("RRi" ["r=CC=A5"]) ; see http://en.wikipedia.org/wiki/ISO_15919#Comparison_with_UNRSGN_and_IAST ("LLi" ?=E1=B8=B7) ("c" ["ch"]) ("~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) ) "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")