view lisp/language/devanagari.el @ 89298:e1d0641b8107

(indian-compose-region): Don't call compose-chars-after, instead call a function registered in composition-function-table.
author Kenichi Handa <handa@m17n.org>
date Thu, 07 Nov 2002 06:30:49 +0000
parents 57eceaa28da0
children 2f877ed80fa6
line wrap: on
line source

;;; devanagari.el --- Support for Devanagari -*- coding: iso-2022-7bit; -*-

;; Copyright (C) 1996, 2001 Free Software Foundation, Inc.

;; Maintainer:  KAWABATA, Taichi <batta@beige.ocn.ne.jp>
;; Keywords: multilingual, Indian, Devanagari

;; This file is part of GNU Emacs.

;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Commentary:

;; This file defines language-info of Devanagari script, and provides
;; compatibility support of old implementation of Devanagari script.

;;; Code:

(set-language-info-alist
 "Devanagari" '((charset indian-is13194 mule-unicode-0100-24ff
                         indian-2-column indian-glyph ;; comment out later
                         )
		(coding-system in-is13194-devanagari)
		(coding-priority in-is13194-devanagari)
		(input-method . "dev-aiba")
		(features devan-util)
		(documentation . "\
Such languages using Devanagari script as Hindi and Marathi
are supported in this language environment."))
 '("Indian"))

;; For automatic composition.
(dolist (range '((#x0903 . #x0903)
		 (#x0905 . #x0939)
		 (#x0958 . #x0961)))
  (set-char-table-range composition-function-table range
			'devanagari-composition-function))

(provide 'devanagari)

;;; devanagari.el ends here