annotate lisp/mule/thai-xtis.el @ 418:e804706bfb8c r21-2-17

Import from CVS: tag r21-2-17
author cvs
date Mon, 13 Aug 2007 11:23:13 +0200
parents 697ef44129c6
children 95016f13131a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
1 ;;; thai-xtis.el --- Thai support for pre-composed font (for XTIS).
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
3 ;; Copyright (C) 1999 Electrotechnical Laboratory, JAPAN.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
6 ;; Author: TAKAHASHI Naoto <ntakahas@etl.go.jp>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
7 ;; MORIOKA Tomohiko <tomo@etl.go.jp>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
8 ;; Created: 1998-03-27 for Emacs-20.3 by TAKAHASHI Naoto
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
9 ;; 1999-03-29 imported and modified for XEmacs by MORIOKA Tomohiko
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
10
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
11 ;; Keywords: mule, multilingual, Thai, XTIS
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
12
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
13 ;; This file is part of XEmacs.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
14
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
15 ;; XEmacs is free software; you can redistribute it and/or modify it
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
16 ;; under the terms of the GNU General Public License as published by
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
17 ;; the Free Software Foundation; either version 2, or (at your option)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
18 ;; any later version.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
19
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
20 ;; XEmacs is distributed in the hope that it will be useful, but
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
21 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
23 ;; General Public License for more details.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
24
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
25 ;; You should have received a copy of the GNU General Public License
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
26 ;; along with XEmacs; see the file COPYING. If not, write to the Free
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
27 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
28 ;; 02111-1307, USA.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
29
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
30 ;;; Commentary:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
31
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
32 ;; For Thai, the pre-composed character set proposed by
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
33 ;; Virach Sornlertlamvanich <virach@links.nectec.or.th> is supported.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
34
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
35 ;;; Code:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
36
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
37 (when (featurep 'xemacs)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
38 (make-charset 'thai-xtis "Precomposed Thai (XTIS by Virach)."
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 412
diff changeset
39 '(registry "xtis-0"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
40 dimension 2
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 412
diff changeset
41 columns 1
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
42 chars 94
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
43 final ??
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
44 graphic 0))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
45
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
46 (modify-syntax-entry 'thai-xtis "w")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
47
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
48 (define-category ?T "Precomposed Thai character.")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
49 (modify-category-entry 'thai-xtis ?T)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
50 )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
51
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
52
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
53 (defvar leading-code-private-21 #x9F)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
54
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
55 (defconst thai-xtis-leading-code
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
56 (concat (char-to-string leading-code-private-21)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
57 (char-to-string (charset-id 'thai-xtis))))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
58
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
59 (define-ccl-program ccl-thai-xtis-consonant
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
60 `(0
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
61 (if (r1 == 0)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
62 ((write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
63 (write r0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
64 (r1 = r2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
65 (if (r1 == r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
66 ((write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
67 (write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
68 (write r0))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
69 ((write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
70 (write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
71 (write r0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
72 (r1 = r2))))))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
73
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
74 (define-ccl-program ccl-thai-xtis-vowel-d1
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
75 `(0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
76 (if (r1 == 0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
77 ((write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
78 (write r0 r2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
79 (if (r1 == r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
80 (r1 = ?\xb8)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
81 ((write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
82 (write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
83 (write r0 r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
84 (r1 = 0))))))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
85
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
86 (define-ccl-program ccl-thai-xtis-vowel
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
87 `(0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
88 (if (r1 == 0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
89 ((write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
90 (write r0 r2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
91 (if (r1 == r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
92 (r1 = ((r0 - 188) << 3))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
93 ((write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
94 (write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
95 (write r0 r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
96 (r1 = 0))))))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
97
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
98 (define-ccl-program ccl-thai-xtis-vowel-ee
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
99 `(0
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
100 (if (r1 == 0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
101 ((write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
102 (write r0 r2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
103 (if (r1 == r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
104 (r1 = ?\xf8)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
105 ((write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
106 (write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
107 (write r0 r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
108 (r1 = 0))))))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
109
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
110 (define-ccl-program ccl-thai-xtis-tone
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
111 `(0
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
112 (if (r1 == 0)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
113 ((write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
114 (write r0 r2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
115 (if (r1 == r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
116 ((r0 -= 54)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
117 (write r0)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
118 (r1 = 0))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
119 ((r1 += (r0 - ?\xe6))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
120 (write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
121 (r1 = 0))))))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
122
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
123 (define-ccl-program ccl-thai-xtis-symbol
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
124 `(0
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
125 (if (r1 == 0)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
126 ((write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
127 (write r0 r2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
128 (if (r1 == r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
129 ((write r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
130 (write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
131 (write r0 r2)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
132 (r1 = 0))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
133 ((write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
134 (write ,thai-xtis-leading-code)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
135 (write r0 r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
136 (r1 = 0))))))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
137
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
138 (define-ccl-program ccl-decode-thai-xtis
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
139 `(4
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
140 ((read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
141 (r1 = 0)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
142 (r2 = ?\xb0)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
143 (loop
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
144 (if (r0 < 161)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
145 (if (r1 == 0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
146 (write r0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
147 (if (r1 == r2)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
148 ((write r2 r0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
149 (r1 = 0))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
150 ((write r1 r0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
151 (r1 = 0))))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
152 (branch (r0 - 161)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
153 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
154 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
155 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
156 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
157 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
158 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
159 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
160 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
161 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
162 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
163 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
164 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
165 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
166 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
167 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
168 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
169 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
170 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
171 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
172 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
173 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
174 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
175 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
176 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
177 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
178 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
179 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
180 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
181 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
182 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
183 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
184 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
185 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
186 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
187 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
188 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
189 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
190 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
191 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
192 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
193 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
194 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
195 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
196 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
197 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
198 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
199 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
200 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
201 (call ccl-thai-xtis-vowel-d1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
202 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
203 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
204 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
205 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
206 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
207 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
208 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
209 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
210 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
211 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
212 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
213 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
214 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
215 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
216 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
217 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
218 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
219 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
220 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
221 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
222 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
223 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
224 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
225 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
226 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
227 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
228 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
229 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
230 (call ccl-thai-xtis-vowel-ee)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
231 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
232 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
233 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
234 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
235 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
236 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
237 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
238 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
239 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
240 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
241 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
242 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
243 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
244 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
245 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
246 nil))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
247 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
248 (repeat)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
249
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
250 (if (r1 != 0)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
251 (write r1)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
252 nil)))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
253
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
254 (define-ccl-program ccl-encode-thai-xtis
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
255 `(1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
256 ((read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
257 (loop
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
258 (if (r0 == ,leading-code-private-21)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
259 ((read r1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
260 (if (r1 == ,(charset-id 'thai-xtis))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
261 ((read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
262 (write r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
263 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
264 (r1 = (r0 & 7))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
265 (r0 = ((r0 - ?\xb0) >> 3))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
266 (if (r0 != 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
267 (write r0 [0 209 212 213 214 215 216 217 218 238]))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
268 (if (r1 != 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
269 (write r1 [0 231 232 233 234 235 236 237]))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
270 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
271 (repeat))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
272 ((write r0 r1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
273 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
274 (repeat))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
275 (write-read-repeat r0))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
276
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
277 (if (featurep 'xemacs)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
278 (make-coding-system
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
279 'tis-620 'ccl
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
280 "external=tis620, internal=thai-xtis"
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
281 `(mnemonic "TIS620"
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
282 decode ,ccl-decode-thai-xtis
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
283 encode ,ccl-encode-thai-xtis))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
284 (make-coding-system
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
285 'tis-620 4 ?T "external=tis620, internal=thai-xtis"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
286 '(ccl-decode-thai-xtis . ccl-encode-thai-xtis)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
287 '((safe-charsets . t)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
288 )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
289
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
290
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
291 (set-language-info-alist
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
292 "Thai-XTIS"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
293 '((setup-function . setup-thai-xtis-environment)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
294 (exit-function . exit-thai-xtis-environment)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
295 (charset thai-xtis)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
296 (coding-system tis-620 iso-2022-7bit)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
297 (coding-priority tis-620 iso-2022-7bit)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
298 (sample-text . "$(?!:(B")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
299 (documentation . t)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
300
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
301 ;; thai-xtis.el ends here.