comparison lisp/mule/thai-hooks.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents
children 54cc21c15cbb
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
1 ;;; thai-hooks.el --- pre-loaded support for Thai.
2
3 ;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995 Amdahl Corporation.
5 ;; Copyright (C) 1995 Sun Microsystems.
6
7 ;; This file is part of XEmacs.
8
9 ;; XEmacs is free software; you can redistribute it and/or modify it
10 ;; under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation; either version 2, or (at your option)
12 ;; any later version.
13
14 ;; XEmacs is distributed in the hope that it will be useful, but
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;; General Public License for more details.
18
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with XEmacs; see the file COPYING. If not, write to the
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 ;; Boston, MA 02111-1307, USA.
23
24 ;;; Synched up with: Mule 2.3.
25
26 ;; Thai TSCII
27 ;; We are now supporting TIS620 (Thai) as an official character set.
28 ;(make-charset 'thai "Thai TSCII"
29 ; '(registry "TIS620"
30 ; dimension 1
31 ; chars 94
32 ; final ?1
33 ; graphic 0
34 ; ))
35
36
37 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
38 ;;; THAI
39 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
40
41 (make-coding-system
42 'tis620 'iso2022
43 "Coding-system used for ASCII(MSB=0) & TIS620(MSB=1)."
44 '(charset-g0 ascii
45 charset-g1 thai
46 no-ascii-cntl t
47 mnemonic "TIS620"
48 post-read-conversion thai-compose-region
49 pre-write-conversion decompose-region
50 ))
51
52 (add-hook 'quail-package-alist '("thai" "quail/thai"))
53
54 (define-language-environment 'thai
55 "Thai"
56 #'(lambda ()
57 (set-coding-category-system 'iso-8-designate 'tis620)
58 (set-coding-priority-list '(iso-8-designate iso-8-1))
59 (set-default-file-coding-system 'tis620)
60 (setq-default quail-current-package (assoc "thai" quail-package-alist))))
61