From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tobias Newsgroups: gmane.emacs.help Subject: Sanskrit Unicode Text Processing Date: Sun, 07 Mar 2010 10:37:31 +0100 Message-ID: <1267954651.3391.15.camel@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-sUKJSpxXAI//od8O45mM" X-Trace: dough.gmane.org 1268026879 1423 80.91.229.12 (8 Mar 2010 05:41:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Mar 2010 05:41:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 08 06:41:14 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NoViD-00046c-GV for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Mar 2010 06:41:06 +0100 Original-Received: from localhost ([127.0.0.1]:58409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoViC-00035v-Oh for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Mar 2010 00:41:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NoCva-0000Gn-E6 for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 04:37:38 -0500 Original-Received: from [140.186.70.92] (port=38604 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoCvY-0000Gf-Bk for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 04:37:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NoCvU-0004Uy-Iq for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 04:37:34 -0500 Original-Received: from mail1.iossol.de ([213.239.249.201]:46589 helo=mail.iossol.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NoCvU-0004Ur-4h for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 04:37:32 -0500 Original-Received: from mail.int-colo-nuernberg.priv ([172.20.0.1] helo=mail.iossol.de) by mail.iossol.de with esmtp (Exim 4.63) (envelope-from ) id 1NoCvR-0007f1-V4 for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 10:37:29 +0100 Original-Received: from mebias.org by mail.iossol.de (Merak 8.0.10) with ESMTP (SSL) id JCB74622 for ; Sun, 7 Mar 2010 10:37:29 +0100 Original-Received: from [172.30.11.164] (80-218-145-135.dclient.hispeed.ch [80.218.145.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mebias.org (Postfix) with ESMTP id 7280620555 for ; Sun, 7 Mar 2010 10:37:29 +0100 (CET) X-Mailer: Evolution 2.28.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 08 Mar 2010 00:40:15 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72384 Archived-At: --=-sUKJSpxXAI//od8O45mM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit when I configure Emacs for Sanskrit Unicode according to this: http://coseruc.people.cofc.edu/unicode/ at Point 4 I do: C-x C-f to reach the Emacs leim path where you copied the sanskrit.el file and execute: M-x byte-compile-file sanskrit.el I get error as this one: sanskrit.el:33:2:Warning: `"#a"' is a malformed function can anyone enlighten me on this problem the sanskrit.el file looks like this: ;; -*- coding: utf-8 -*- ;; ;; sanskrit.el ;; ;; Emacs Unicode input method for Sanskrit transliteration and Western ;; European characters ;; ;; Author: Stefan Baums ;; ;; Version 1.0 (first public release) 12 February 2002 ;; ;; Changed by J Hanneder Sept.2002 ;; Now # and . are the escape characters ;; for all Sanskrit related diacritics. ;; ;; added some Tamil 6/05 (require 'quail) (quail-define-package "sanskrit" "Sanskrit" "S>" t "This is an input method for Sanskrit transliteration and Western European characters. Basically, you type first the required diacritic and then the letter (as in ['] [a] to get á). After typing the diacritic, a list of possible letters is shown in the echo area." nil nil nil nil nil nil nil nil nil nil t) (quail-define-rules) ;; Sanskrit part ;; JH special ("#a" ?ā) ("#A" ?Ā) ("#i" ?ī) ("#I" ?Ī) ("#u" ?ū) ("#U" ?Ū) ("#s" ?ś) ("#S" ?Ś) ("#X" ?Ś) ("#h" ?ḥ) ("#j" ?ñ) ("#c" ?ñ) ("#g" ?ṅ) ("#k" ?ṅ) ("#m" ?ṃ) ("#r" ?ṛ) (".r" ?ṝ) ("#e" ?ē) ("#o" ?ō) ;;;;;;;;;;;;;;;;;;; ("'a" ?á) ("'A" ?Á) ("`a" ?à) ("`A" ?À) ("'=a" ["ā́"]) ("'=A" ["Ā́"]) ("`=a" ["ā̀"]) ("`=A" ["Ā̀"]) ("'i" ?í) ("'I" ?Í) ("`i" ?ì) ("`I" ?Ì) ("'=i" ["ī́"]) ("'=I" ["Ī́"]) ("`=i" ["ī̀"]) ("`=I" ["Ī̀"]) ("'u" ?ú) ("'U" ?Ú) ("`u" ?ù) ("`U" ?Ù) ("'=u" ["ū́"]) ("'=U" ["Ū́"]) ("`=u" ["ū̀"]) ("`=U" ["Ū̀"]) ("'.r" ["ṛ́"]) ("'.R" ["Ṛ́"]) ("`.r" ["ṛ̀"]) ("`.R" ["Ṛ̀"]) ("'=.r" ["ṝ́"]) ("'=.R" ["Ṝ́"]) ("`=.r" ["ṝ̀"]) ("`=.R" ["Ṝ̀"]) ("'.l" ["ḷ́"]) ("'.L" ["Ḷ́"]) ("`.l" ["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"U" ?Ü) ("'Y" ?Ý) ("'y" ?ý) ("\"y" ?ÿ) ;; German keyboard ; ("\304" ?Ä) ; ("\326" "\"O") ; ("\334" "\"U") ; ("\344" "\"a") ; ("\366" "\"o") ; ("\337" "\"s") ; ("\374" "\"u") ;; Punctuation part ("\-" ?‐) ("\-\-" ?--) ("\-\-\-" ?---) ("$\-$" ?−) ("\\`" ?‘) ("\\'" ?’) ("\\," ?‚) ("\\``" ?“) ("\\''" ?”) ("\\,," ?„) ("<<" ["« "]) ; French (">>" [" »"]) ; French ) --=-sUKJSpxXAI//od8O45mM Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit when I configure Emacs for Sanskrit Unicode according to this:

http://coseruc.people.cofc.edu/unicode/

at Point 4 I do:

C-x C-f to reach the Emacs leim path where you copied the sanskrit.el file and execute:

M-x byte-compile-file sanskrit.el

I get error as this one: sanskrit.el:33:2:Warning: `"#a"' is a malformed function

can anyone enlighten me on this problem

the sanskrit.el file looks like this:


;; -*- coding: utf-8 -*-
;;
;; sanskrit.el
;;
;; Emacs Unicode input method for Sanskrit transliteration and Western
;; European characters
;;
;; Author: Stefan Baums <baums@u.washington.edu>
;;
;; Version 1.0 (first public release) 12 February 2002
;;
;;     Changed by J Hanneder Sept.2002
;;     Now # and . are the escape characters
;;     for all Sanskrit related diacritics.
;;
;;     added some Tamil 6/05

(require 'quail)

(quail-define-package "sanskrit" "Sanskrit" "S>" t
"This is an input method for Sanskrit transliteration and Western
European characters.  Basically, you type first the required diacritic
and then the letter (as in ['] [a] to get á).  After typing the
diacritic, a list of possible letters is shown in the echo area."
nil nil nil nil nil nil nil nil nil nil t)

(quail-define-rules)

;; Sanskrit part
;; JH special
("#a" ?ā)
("#A" ?Ā)
("#i" ?ī)
("#I" ?Ī)
("#u" ?ū)
("#U" ?Ū)
("#s" ?ś)
("#S" ?Ś)
("#X" ?Ś)
("#h" ?ḥ)
("#j" ?ñ)
("#c" ?ñ)
("#g" ?ṅ)
("#k" ?ṅ)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ṭ)
(".d" ?ḍ)
(".D" ?Ḍ)
(".n" ?ṇ)
(".N" ?Ṇ)
("'s" ?ś)
("'S" ?Ś)
(".s" ?ṣ)
(".S" ?Ṣ)

;; Western European part (completes coverage of ISO 8859‐1 letters plus
;; œ Œ)

("^a" ?â)
("^A" ?Â)
("~a" ?ã)
("~A" ?Ã)
("\"a" ?ä)
("\"A" ?Ä)
("/e" ?æ)
("/E" ?Æ)
("/a" ?å)
("/A" ?Å)
(",c" ?ç)
(",C" ?Ç)
("/d" ?ð)
("/D" ?Ð)
("^e" ?ê)
("^E" ?Ê)
("\"e" ?ë)
("\"E" ?Ë)
("^i" ?î)
("^I" ?Î)
("\"i" ?ï)
("\"I" ?Ï)
("^o" ?ô)
("^O" ?Ô)
("~o" ?õ)
("~O" ?Õ)
("\"o" ?ö)
("\"O" ?Ö)
("/o" ?ø)
("/O" ?Ø)
("\\oe" ?œ)
("\\OE" ?Œ)
("/s" ?ß)
("/t" ?þ)
("/T" ?Þ)
("^u" ?û)
("^U" ?Û)
("\"u" ?ü)
("\"U" ?Ü)
("'Y" ?Ý)
("'y" ?ý)
("\"y" ?ÿ)
;; German keyboard

;    ("\304" ?Ä)
;    ("\326" "\"O")
;    ("\334" "\"U")
;    ("\344" "\"a")
;    ("\366" "\"o")
;    ("\337" "\"s")
;    ("\374" "\"u")
;; Punctuation part

("\-" ?‐)
("\-\-" ?--)
("\-\-\-" ?---)
("$\-$" ?−)
("\\`" ?‘)
("\\'" ?’)
("\\," ?‚)
("\\``" ?“)
("\\''" ?”)
("\\,," ?„)
("<<" ["« "]) ; French
(">>" [" »"]) ; French

)




--=-sUKJSpxXAI//od8O45mM--