view lisp/mule/vietnamese-hooks-1.el @ 74:54cc21c15cbb r20-0b32

Import from CVS: tag r20-0b32
author cvs
date Mon, 13 Aug 2007 09:04:33 +0200
parents 131b0175ea99
children
line wrap: on
line source

;;; vietnamese-hooks-1.el --- pre-loaded support for Vietnamese, part 1.

;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc.
;; Copyright (C) 1995 Amdahl Corporation.
;; Copyright (C) 1995 Sun Microsystems.

;; This file is part of XEmacs.

;; XEmacs 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.

;; XEmacs 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 XEmacs; see the file COPYING.  If not, write to the 
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Synched up with: Mule 2.3.

;; We have to split up the Vietnamese stuff into two files because
;; we are registering new charsets and then immediately using characters
;; from those sets.  We cannot reliably expect this to work if they
;; are in the same file because of the buffering that happens while
;; reading -- the place where we use the newly-defined sets may be
;; read in before the code that creates those sets is evaluated.

;; Vietnamese VISCII with two tables.
(make-charset 'vietnamese-lower "VISCII lower (Vietnamese)"
	      '(registry "VISCII1.1"
		dimension 1
		chars 96
		final ?1
		graphic 1
		))

(make-charset 'vietnamese-upper "VISCII upper (Vietnamese)"
	      '(registry "VISCII1.1"
		dimension 1
		chars 96
		final ?2
		graphic 1
		))

(modify-syntax-entry 'vietnamese-lower "w")
(modify-syntax-entry 'vietnamese-upper "w")

(define-category ?v "Vietnamese character.")
(modify-category-entry 'vietnamese-lower ?v)
(modify-category-entry 'vietnamese-upper ?v)