annotate lisp/mule/thai-xtis.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
1 ;;; thai-xtis.el --- Support for Thai (XTIS) -*- coding: iso-2022-7bit; -*-
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
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 4690
diff changeset
15 ;; 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: 4690
diff changeset
16 ;; 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: 4690
diff changeset
17 ;; 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: 4690
diff changeset
18 ;; option) any later version.
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
19
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 4690
diff changeset
20 ;; 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: 4690
diff changeset
21 ;; 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: 4690
diff changeset
22 ;; 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: 4690
diff changeset
23 ;; for more details.
398
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
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 4690
diff changeset
26 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>.
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
27
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
28 ;;; Commentary:
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 ;; For Thai, the pre-composed character set proposed by
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
31 ;; Virach Sornlertlamvanich <virach@links.nectec.or.th> is supported.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
32
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
33 ;;; Code:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
34
780
578cb2932d72 [xemacs-hg @ 2002-03-18 10:07:30 by ben]
ben
parents: 771
diff changeset
35 (make-charset 'thai-xtis "Precomposed Thai (XTIS by Virach)."
3659
98af8a976fc3 [xemacs-hg @ 2006-11-05 22:31:31 by aidan]
aidan
parents: 780
diff changeset
36 '(registries ["xtis-0"]
98af8a976fc3 [xemacs-hg @ 2006-11-05 22:31:31 by aidan]
aidan
parents: 780
diff changeset
37 dimension 2
98af8a976fc3 [xemacs-hg @ 2006-11-05 22:31:31 by aidan]
aidan
parents: 780
diff changeset
38 columns 1
98af8a976fc3 [xemacs-hg @ 2006-11-05 22:31:31 by aidan]
aidan
parents: 780
diff changeset
39 chars 94
98af8a976fc3 [xemacs-hg @ 2006-11-05 22:31:31 by aidan]
aidan
parents: 780
diff changeset
40 final ??
98af8a976fc3 [xemacs-hg @ 2006-11-05 22:31:31 by aidan]
aidan
parents: 780
diff changeset
41 graphic 0))
780
578cb2932d72 [xemacs-hg @ 2002-03-18 10:07:30 by ben]
ben
parents: 771
diff changeset
42
578cb2932d72 [xemacs-hg @ 2002-03-18 10:07:30 by ben]
ben
parents: 771
diff changeset
43 (define-category ?x "Precomposed Thai character.")
578cb2932d72 [xemacs-hg @ 2002-03-18 10:07:30 by ben]
ben
parents: 771
diff changeset
44 (modify-category-entry 'thai-xtis ?x)
578cb2932d72 [xemacs-hg @ 2002-03-18 10:07:30 by ben]
ben
parents: 771
diff changeset
45
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
46 (when (featurep 'xemacs)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
47 (let ((deflist '(;; chars syntax
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
48 ("$(?!0(B-$(?NxP0R0S0`0(B-$(?e0(B" "w")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
49 ("$(?p0(B-$(?y0(B" "w")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
50 ("$(?O0f0_0o0z0{0(B" "_")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
51 ))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
52 elm chars len syntax to ch i)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
53 (while deflist
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
54 (setq elm (car deflist))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
55 (setq chars (car elm)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
56 len (length chars)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
57 syntax (nth 1 elm)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
58 i 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
59 (while (< i len)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
60 (if (= (aref chars i) ?-)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
61 (setq i (1+ i)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
62 to (nth 1 (split-char (aref chars i))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
63 (setq ch (nth 1 (split-char (aref chars i)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
64 to ch))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
65 (while (<= ch to)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
66 (modify-syntax-entry (vector 'thai-xtis ch) syntax)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
67 (setq ch (1+ ch)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
68 (setq i (1+ i)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
69 (setq deflist (cdr deflist))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
70
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
71 (put-charset-property 'thai-xtis 'preferred-coding-system 'tis-620)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
72 )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
73
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
74 ;; This is the ccl-decode-thai-xtis automaton.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
75 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
76 ;; "WRITE x y" == (insert (make-char 'thai-xtis x y))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
77 ;; "write x" == (insert x)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
78 ;; rx' == (tis620-to-thai-xtis-second-byte-bitpattern rx)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
79 ;; r3 == "no vower nor tone"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
80 ;; r4 == (charset-id 'thai-xtis)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
81 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
82 ;; | input (= r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
83 ;; state |--------------------------------------------
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
84 ;; | consonant | vowel | tone
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 ;; r1 == 0 | r1 = r0 | WRITE r0,r3 | WRITE r0,r3
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
87 ;; r2 == 0 | | |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
88 ;; ---------+-------------+-------------+----------------
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
89 ;; r1 == C | WRITE r1,r3 | r2 = r0' | WRITE r1,r3|r0'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
90 ;; r2 == 0 | r1 = r0 | | r1 = 0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
91 ;; ---------+-------------+-------------+----------------
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
92 ;; r1 == C | WRITE r1,r2 | WRITE r1,r2 | WRITE r1,r2|r0'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
93 ;; r2 == V | r1 = r0 | WRITE r0,r3 | r1 = r2 = 0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
94 ;; | r2 = 0 | r1 = r2 = 0 |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
95 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
96 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
97 ;; | input (= r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
98 ;; state |-----------------------------------------
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
99 ;; | symbol | ASCII | EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
100 ;; ---------+-------------+-------------+-------------
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
101 ;; r1 == 0 | WRITE r0,r3 | write r0 |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
102 ;; r2 == 0 | | |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
103 ;; ---------+-------------+-------------+-------------
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
104 ;; r1 == C | WRITE r1,r3 | WRITE r1,r3 | WRITE r1,r3
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
105 ;; r2 == 0 | WRITE r0,r3 | write r0 |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
106 ;; | r1 = 0 | r1 = 0 |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
107 ;; ---------+-------------+-------------+-------------
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
108 ;; r1 == C | WRITE r1,r2 | WRITE r1,r2 | WRITE r1,r2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
109 ;; r2 == V | WRITE r0,r3 | write r0 |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
110 ;; | r1 = r2 = 0 | r1 = r2 = 0 |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
111
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
112
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
113 (eval-and-compile
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
114
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
115 ;; input : r5 = 1st byte, r6 = 2nd byte
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
116 ;; Their values will be destroyed.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
117 (define-ccl-program ccl-thai-xtis-write
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
118 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
119 ((r5 = ((r5 & #x7F) << 7))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
120 (r6 = ((r6 & #x7F) | r5))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
121 (write-multibyte-character r4 r6))))
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-consonant
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
124 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
125 (if (r1 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
126 (r1 = r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
127 (if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
128 ((r5 = r1) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
129 (r1 = r0))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
130 ((r5 = r1) (r6 = r2) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
131 (r1 = r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
132 (r2 = 0))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
133
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
134 (define-ccl-program ccl-thai-xtis-vowel
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
135 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
136 ((if (r1 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
137 ((r5 = r0) (r6 = r3) (call ccl-thai-xtis-write))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
138 ((if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
139 (r2 = ((r0 - 204) << 3))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
140 ((r5 = r1) (r6 = r2) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
141 (r5 = r0) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
142 (r1 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
143 (r2 = 0))))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
144
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
145 (define-ccl-program ccl-thai-xtis-vowel-d1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
146 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
147 ((if (r1 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
148 ((r5 = r0) (r6 = r3) (call ccl-thai-xtis-write))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
149 ((if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
150 (r2 = #x38)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
151 ((r5 = r1) (r6 = r2) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
152 (r5 = r0) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
153 (r1 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
154 (r2 = 0))))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
155
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
156 (define-ccl-program ccl-thai-xtis-vowel-ee
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
157 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
158 ((if (r1 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
159 ((r5 = r0) (r6 = r3) (call ccl-thai-xtis-write))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
160 ((if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
161 (r2 = #x78)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
162 ((r5 = r1) (r6 = r2) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
163 (r5 = r0) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
164 (r1 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
165 (r2 = 0))))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
166
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
167 (define-ccl-program ccl-thai-xtis-tone
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
168 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
169 (if (r1 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
170 ((r5 = r0) (r6 = r3) (call ccl-thai-xtis-write))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
171 (if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
172 ((r5 = r1) (r6 = ((r0 - #xE6) | r3)) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
173 (r1 = 0))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
174 ((r5 = r1) (r6 = ((r0 - #xE6) | r2)) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
175 (r1 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
176 (r2 = 0))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
177
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
178 (define-ccl-program ccl-thai-xtis-symbol
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
179 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
180 (if (r1 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
181 ((r5 = r0) (r6 = r3) (call ccl-thai-xtis-write))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
182 (if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
183 ((r5 = r1) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
184 (r5 = r0) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
185 (r1 = 0))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
186 ((r5 = r1) (r6 = r2) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
187 (r5 = r0) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
188 (r1 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
189 (r2 = 0))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
190
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
191 (define-ccl-program ccl-thai-xtis-ascii
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
192 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
193 (if (r1 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
194 (write r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
195 (if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
196 ((r5 = r1) (r6 = r3) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
197 (write r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
198 (r1 = 0))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
199 ((r5 = r1) (r6 = r2) (call ccl-thai-xtis-write)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
200 (write r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
201 (r1 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
202 (r2 = 0))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
203
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
204 (define-ccl-program ccl-thai-xtis-eof
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
205 '(0
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
206 (if (r1 != 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
207 (if (r2 == 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
208 ((r5 = r1) (r6 = r3) (call ccl-thai-xtis-write))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
209 ((r5 = r1) (r6 = r2) (call ccl-thai-xtis-write))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
210
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
211 (define-ccl-program ccl-decode-thai-xtis
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
212 `(4
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
213 ((read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
214 (r1 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
215 (r2 = 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
216 (r3 = #x30)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
217 (r4 = ,(charset-id 'thai-xtis))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
218 (loop
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
219 (if (r0 < 161)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
220 (call ccl-thai-xtis-ascii)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
221 (branch (r0 - 161)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
222 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
223 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
224 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
225 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
226 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
227 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
228 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
229 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
230 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
231 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
232 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
233 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
234 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
235 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
236 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
237 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
238 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
239 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
240 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
241 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
242 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
243 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
244 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
245 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
246 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
247 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
248 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
249 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
250 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
251 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
252 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
253 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
254 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
255 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
256 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
257 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
258 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
259 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
260 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
261 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
262 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
263 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
264 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
265 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
266 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
267 (call ccl-thai-xtis-consonant)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
268 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
269 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
270 (call ccl-thai-xtis-vowel-d1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
271 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
272 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
273 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
274 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
275 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
276 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
277 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
278 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
279 (call ccl-thai-xtis-vowel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
280 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
281 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
282 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
283 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
284 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
285 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
286 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
287 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
288 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
289 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
290 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
291 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
292 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
293 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
294 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
295 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
296 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
297 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
298 (call ccl-thai-xtis-tone)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
299 (call ccl-thai-xtis-vowel-ee)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
300 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
301 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
302 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
303 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
304 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
305 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
306 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
307 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
308 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
309 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
310 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
311 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
312 (call ccl-thai-xtis-symbol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
313 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
314 nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
315 nil))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
316 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
317 (repeat)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
318
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
319 (call ccl-thai-xtis-eof)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
320
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
321 )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
322
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
323 (defconst leading-code-private-21 #x9F)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
324
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
325 (define-ccl-program ccl-encode-thai-xtis
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
326 `(1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
327 ((read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
328 (loop
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
329 (if (r0 == ,leading-code-private-21)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
330 ((read r1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
331 (if (r1 == ,(charset-id 'thai-xtis))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
332 ((read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
333 (write r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
334 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
335 (r1 = (r0 & 7))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
336 (r0 = ((r0 - #xB0) >> 3))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
337 (if (r0 != 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
338 (write r0 [0 209 212 213 214 215 216 217 218 238]))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
339 (if (r1 != 0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
340 (write r1 [0 231 232 233 234 235 236 237]))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
341 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
342 (repeat))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
343 ((write r0 r1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
344 (read r0)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
345 (repeat))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
346 (write-read-repeat r0))))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
347
4690
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
348 (make-coding-system
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
349 'tis-620 'ccl
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
350 "TIS620 (Thai)"
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
351 `(mnemonic "TIS620"
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
352 decode ccl-decode-thai-xtis
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
353 encode ccl-encode-thai-xtis
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
354 safe-charsets (ascii thai-xtis)
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
355 documentation "external=tis620, internal=thai-xtis"))
257b468bf2ca Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4568
diff changeset
356 (coding-system-put 'tis-620 'category 'iso-8-1)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
357
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
358 (set-language-info-alist
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
359 "Thai-XTIS"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
360 '((charset thai-xtis)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
361 (coding-system tis-620 iso-2022-7bit)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
362 (tutorial . "TUTORIAL.th")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
363 (tutorial-coding-system . tis-620)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
364 (coding-priority tis-620 iso-2022-7bit)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
365 (sample-text . "$(?!:(B")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
366 (documentation . t)))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
367
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
368 ;; thai-xtis.el ends here.