Mercurial > hg > xemacs-beta
annotate lisp/mule/thai.el @ 5412:6a8c6c6f6c8e
Convert to GPLv3 or later from plain text GPLv2 or later.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Sun, 24 Oct 2010 00:24:04 +0200 |
parents | 308d34e9f07d |
children | 248176c74e6b |
rev | line source |
---|---|
778 | 1 ;;; thai.el --- support for Thai -*- coding: iso-2022-7bit; -*- |
771 | 2 |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
4 ;; Licensed to the Free Software Foundation. | |
5 | |
6 ;; Keywords: multilingual, Thai | |
7 | |
8 ;; This file is part of XEmacs. | |
9 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
10 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
11 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
12 ;; Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
13 ;; option) any later version. |
771 | 14 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
15 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
16 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
17 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
18 ;; for more details. |
771 | 19 |
20 ;; You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
778
diff
changeset
|
21 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
771 | 22 |
778 | 23 ;;; Synched up with: Emacs 21.1 (language/thai.el). |
771 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; For Thai, the character set TIS620 is supported. | |
28 | |
29 ;; #### I don't know how this differs from the existing thai-xtis.el so | |
30 ;; I'm leaving it commented out. | |
31 | |
32 ;;; Code: | |
33 | |
778 | 34 ; (make-charset 'thai-tis620 |
35 ; "Right-Hand Part of TIS620.2533 (Thai): ISO-IR-166" | |
36 ; '(dimension | |
37 ; 1 | |
38 ; registry "TIS620" | |
39 ; chars 96 | |
40 ; columns 1 | |
41 ; direction l2r | |
42 ; final ?T | |
43 ; graphic 1 | |
44 ; short-name "RHP of TIS620" | |
45 ; long-name "RHP of Thai (TIS620): ISO-IR-166" | |
46 ; )) | |
47 | |
771 | 48 ; ; (make-coding-system |
49 ; ; 'thai-tis620 2 ?T | |
50 ; ; "8-bit encoding for ASCII (MSB=0) and Thai TIS620 (MSB=1)" | |
51 ; ; '(ascii thai-tis620 nil nil | |
52 ; ; nil ascii-eol) | |
53 ; ; '((safe-charsets ascii thai-tis620) | |
54 ; ; (post-read-conversion . thai-post-read-conversion))) | |
55 | |
56 ; (make-coding-system | |
57 ; 'thai-tis620 'iso2022 "Thai/TIS620" | |
58 ; '(charset-g0 ascii | |
59 ; charset-g1 thai-tis620 | |
60 ; mnemonic "Thai" | |
61 ; safe-charsets (ascii thai-tis620) | |
62 ; post-read-conversion thai-post-read-conversion | |
63 ; documentation "8-bit encoding for ASCII (MSB=0) and Thai TIS620 (MSB=1)")) | |
64 | |
65 ; (define-coding-system-alias 'th-tis620 'thai-tis620) | |
66 ; (define-coding-system-alias 'tis620 'thai-tis620) | |
67 ; (define-coding-system-alias 'tis-620 'thai-tis620) | |
68 | |
69 ; (set-language-info-alist | |
70 ; "Thai" '((tutorial . "TUTORIAL.th") | |
71 ; (charset thai-tis620) | |
72 ; (coding-system thai-tis620) | |
73 ; (coding-priority thai-tis620) | |
74 ; (nonascii-translation . thai-tis620) | |
75 ; (input-method . "thai-kesmanee") | |
76 ; (unibyte-display . thai-tis620) | |
77 ; (features thai-util) | |
78 ; (sample-text | |
79 ; . (thai-compose-string | |
80 ; (copy-sequence "Thai (,T@RIRd7B(B) ,TJ0GQ1J04U1$0CQ1:(B, ,TJ0GQ1J04U10$h1P(B"))) | |
81 ; (documentation . t))) | |
82 | |
83 | |
778 | 84 ;; Register a function to compose Thai characters. |
85 ; (put-char-table 'thai-tis620 | |
86 ; '(("\\c0\\c4\\|\\c0\\(\\c2\\|\\c3\\)\\c4?" . | |
87 ; thai-composition-function)) | |
88 ; composition-function-table) | |
771 | 89 |
90 (provide 'thai) | |
91 | |
92 ;;; thai.el ends here |