unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Sanskrit Unicode Text Processing
@ 2010-03-07  9:37 Tobias
  2010-03-08  6:25 ` Eli Zaretskii
  2010-03-08  6:36 ` tomas
  0 siblings, 2 replies; 3+ messages in thread
From: Tobias @ 2010-03-07  9:37 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 3730 bytes --]

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" ?ṅ)
 ("#m" ?ṃ)
 ("#r" ?ṛ)
 (".r" ?ṝ)
 ("#e" ?ē)
 ("#o" ?ō)
;;;;;;;;;;;;;;;;;;;

 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)
 ("-N" ?Ṅ)
 ("~n" ?ñ)
 ("~N" ?Ñ)
 (".t" ?ṭ)
 (".T" ?Ṭ)
 (".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

 )





[-- Attachment #2: Type: text/html, Size: 8093 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-08  6:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-07  9:37 Sanskrit Unicode Text Processing Tobias
2010-03-08  6:25 ` Eli Zaretskii
2010-03-08  6:36 ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).