+++ /dev/null
--;;; ethiopic.el --- Support for Ethiopic
--
--;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
--;; Licensed to the Free Software Foundation.
--;; Copyright (C) 1997 MORIOKA Tomohiko
--
--;; Keywords: multilingual, Ethiopic
--
--;; 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.
--
--;; Author: TAKAHASHI Naoto <ntakahas@etl.go.jp>
--;; modified by MORIOKA Tomohiko <morioka@jaist.ac.jp> for XEmacs.
--
--;;; Code:
--
--;; Ethiopic
--(make-charset 'ethiopic "Ethiopic"
-- '(registry "Ethio"
-- dimension 2
-- chars 94
-- final ?3
-- graphic 0
-- ))
--
--;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
--;;; ETHIOPIC
--;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
--
--(define-category ?E "Ethiopic (Ge'ez) character.")
--(modify-category-entry 'ethiopic ?E)
--\f
--(define-ccl-program ccl-encode-ethio-font
-- '(0
-- ;; In: R0:ethiopic (not checked)
-- ;; R1:position code 1
-- ;; R2:position code 2
-- ;; Out: R1:font code point 1
-- ;; R2:font code point 2
-- ((r1 -= 33)
-- (r2 -= 33)
-- (r1 *= 94)
-- (r2 += r1)
-- (if (r2 < 256)
-- (r1 = ?\x12)
-- (if (r2 < 448)
-- ((r1 = ?\x13) (r2 -= 256))
-- ((r1 = ?\xfd) (r2 -= 208))
-- ))))
-- "CCL program to encode an Ethiopic code to code point of Ethiopic font.")
--
--;; (setq font-ccl-encoder-alist
--;; (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist))
--(set-charset-ccl-program 'ethiopic ccl-encode-ethio-font)
--
--(set-language-info-alist
-- "Ethiopic" '((setup-function . setup-ethiopic-environment-internal)
-- (exit-function . exit-ethiopic-environment)
-- (charset ethiopic)
-- (coding-system iso-2022-7bit)
-- (coding-priority iso-2022-7bit)
-- (input-method . "ethiopic")
-- (features ethio-util)
-- (sample-text . "\e$(3$Q#U!.\e(B")
-- (documentation . t)))
--
--;;; ethiopic.el ends here
+++ /dev/null
--;;; thai-xtis.el --- Thai support for pre-composed font (for XTIS).
--
--;; Copyright (C) 1999 Electrotechnical Laboratory, JAPAN.
--;; Licensed to the Free Software Foundation.
--
--;; Author: TAKAHASHI Naoto <ntakahas@etl.go.jp>
--;; MORIOKA Tomohiko <tomo@etl.go.jp>
--;; Created: 1998-03-27 for Emacs-20.3 by TAKAHASHI Naoto
--;; 1999-03-29 imported and modified for XEmacs by MORIOKA Tomohiko
--
--;; Keywords: mule, multilingual, Thai, XTIS
--
--;; 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.
--
--;;; Commentary:
--
--;; For Thai, the pre-composed character set proposed by
--;; Virach Sornlertlamvanich <virach@links.nectec.or.th> is supported.
--
--;;; Code:
--
--(when (featurep 'xemacs)
-- (make-charset 'thai-xtis "Precomposed Thai (XTIS by Virach)."
-- '(registry "xtis-0$"
-- dimension 2
-- chars 94
-- final ??
-- graphic 0))
--
-- (modify-syntax-entry 'thai-xtis "w")
--
-- (define-category ?T "Precomposed Thai character.")
-- (modify-category-entry 'thai-xtis ?T)
-- )
--
--
--(defvar leading-code-private-21 #x9F)
--
--(defconst thai-xtis-leading-code
-- (concat (char-to-string leading-code-private-21)
-- (char-to-string (charset-id 'thai-xtis))))
--
--(define-ccl-program ccl-thai-xtis-consonant
-- `(0
-- (if (r1 == 0)
-- ((write ,thai-xtis-leading-code)
-- (write r0)
-- (r1 = r2))
-- (if (r1 == r2)
-- ((write r1)
-- (write ,thai-xtis-leading-code)
-- (write r0))
-- ((write r1)
-- (write ,thai-xtis-leading-code)
-- (write r0)
-- (r1 = r2))))))
--
--(define-ccl-program ccl-thai-xtis-vowel-d1
-- `(0
-- (if (r1 == 0)
-- ((write ,thai-xtis-leading-code)
-- (write r0 r2))
-- (if (r1 == r2)
-- (r1 = ?\xb8)
-- ((write r1)
-- (write ,thai-xtis-leading-code)
-- (write r0 r2)
-- (r1 = 0))))))
--
--(define-ccl-program ccl-thai-xtis-vowel
-- `(0
-- (if (r1 == 0)
-- ((write ,thai-xtis-leading-code)
-- (write r0 r2))
-- (if (r1 == r2)
-- (r1 = ((r0 - 188) << 3))
-- ((write r1)
-- (write ,thai-xtis-leading-code)
-- (write r0 r2)
-- (r1 = 0))))))
--
--(define-ccl-program ccl-thai-xtis-vowel-ee
-- `(0
-- (if (r1 == 0)
-- ((write ,thai-xtis-leading-code)
-- (write r0 r2))
-- (if (r1 == r2)
-- (r1 = ?\xf8)
-- ((write r1)
-- (write ,thai-xtis-leading-code)
-- (write r0 r2)
-- (r1 = 0))))))
--
--(define-ccl-program ccl-thai-xtis-tone
-- `(0
-- (if (r1 == 0)
-- ((write ,thai-xtis-leading-code)
-- (write r0 r2))
-- (if (r1 == r2)
-- ((r0 -= 54)
-- (write r0)
-- (r1 = 0))
-- ((r1 += (r0 - ?\xe6))
-- (write r1)
-- (r1 = 0))))))
--
--(define-ccl-program ccl-thai-xtis-symbol
-- `(0
-- (if (r1 == 0)
-- ((write ,thai-xtis-leading-code)
-- (write r0 r2))
-- (if (r1 == r2)
-- ((write r2)
-- (write ,thai-xtis-leading-code)
-- (write r0 r2)
-- (r1 = 0))
-- ((write r1)
-- (write ,thai-xtis-leading-code)
-- (write r0 r2)
-- (r1 = 0))))))
--
--(define-ccl-program ccl-decode-thai-xtis
-- `(4
-- ((read r0)
-- (r1 = 0)
-- (r2 = ?\xb0)
-- (loop
-- (if (r0 < 161)
-- (if (r1 == 0)
-- (write r0)
-- (if (r1 == r2)
-- ((write r2 r0)
-- (r1 = 0))
-- ((write r1 r0)
-- (r1 = 0))))
-- (branch (r0 - 161)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-consonant)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-vowel-d1)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-vowel)
-- (call ccl-thai-xtis-vowel)
-- (call ccl-thai-xtis-vowel)
-- (call ccl-thai-xtis-vowel)
-- (call ccl-thai-xtis-vowel)
-- (call ccl-thai-xtis-vowel)
-- (call ccl-thai-xtis-vowel)
-- nil
-- nil
-- nil
-- nil
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-tone)
-- (call ccl-thai-xtis-tone)
-- (call ccl-thai-xtis-tone)
-- (call ccl-thai-xtis-tone)
-- (call ccl-thai-xtis-tone)
-- (call ccl-thai-xtis-tone)
-- (call ccl-thai-xtis-tone)
-- (call ccl-thai-xtis-vowel-ee)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- (call ccl-thai-xtis-symbol)
-- nil
-- nil
-- nil))
-- (read r0)
-- (repeat)))
--
-- (if (r1 != 0)
-- (write r1)
-- nil)))
--
--(define-ccl-program ccl-encode-thai-xtis
-- `(1
-- ((read r0)
-- (loop
-- (if (r0 == ,leading-code-private-21)
-- ((read r1)
-- (if (r1 == ,(charset-id 'thai-xtis))
-- ((read r0)
-- (write r0)
-- (read r0)
-- (r1 = (r0 & 7))
-- (r0 = ((r0 - ?\xb0) >> 3))
-- (if (r0 != 0)
-- (write r0 [0 209 212 213 214 215 216 217 218 238]))
-- (if (r1 != 0)
-- (write r1 [0 231 232 233 234 235 236 237]))
-- (read r0)
-- (repeat))
-- ((write r0 r1)
-- (read r0)
-- (repeat))))
-- (write-read-repeat r0))))))
--
--(if (featurep 'xemacs)
-- (make-coding-system
-- 'tis-620 'ccl
-- "external=tis620, internal=thai-xtis"
-- `(mnemonic "TIS620"
-- decode ,ccl-decode-thai-xtis
-- encode ,ccl-encode-thai-xtis))
-- (make-coding-system
-- 'tis-620 4 ?T "external=tis620, internal=thai-xtis"
-- '(ccl-decode-thai-xtis . ccl-encode-thai-xtis)
-- '((safe-charsets . t)))
-- )
--
--
--(set-language-info-alist
-- "Thai-XTIS"
-- '((setup-function . setup-thai-xtis-environment)
-- (exit-function . exit-thai-xtis-environment)
-- (charset thai-xtis)
-- (coding-system tis-620 iso-2022-7bit)
-- (coding-priority tis-620 iso-2022-7bit)
-- (sample-text . "\e$(?!:\e(B")
-- (documentation . t)))
--
--;; thai-xtis.el ends here.
+++ /dev/null
--;;; vietnamese.el --- Support for Vietnamese
--
--;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
--;; Licensed to the Free Software Foundation.
--;; Copyright (C) 1997 MORIOKA Tomohiko
--
--;; Keywords: multilingual, Vietnamese
--
--;; 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.
--
--;;; Commentary:
--
--;; For Vietnames, the character sets VISCII and VSCII are supported.
--
--;;; Code:
--
--(eval-and-compile
--
--(defvar viet-viscii-decode-table
-- [;; VISCII is a full 8-bit code.
-- 0 1 ?\e.2\eNF 3 4 ?\eNG ?\eNg 7 8 9 10 11 12 13 14 15
-- 16 17 18 19 ?\e.2\eNV 21 22 23 24 ?\eN[ 26 27 28 29 ?\eN\ 31
-- 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
-- 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
-- 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
-- 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
-- 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
-- 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
-- ?\e.2\eNU ?\eN! ?\eN" ?\eN# ?\eN$ ?\eN% ?\eN& ?\eN' ?\eN( ?\eN) ?\eN* ?\eN+ ?\eN, ?\eN- ?\eN. ?\eN/
-- ?\e.2\eN0 ?\eN1 ?\eN2 ?\eN5 ?\eN~ ?\eN> ?\eN6 ?\eN7 ?\eN8 ?\eNv ?\eNw ?\eNo ?\eN| ?\eN{ ?\eNx ?\eNO
-- ?\e.2\eNu ?\e.1\eN! ?\eN" ?\eN# ?\eN$ ?\eN% ?\eN& ?\eN' ?\eN( ?\eN) ?\eN* ?\eN+ ?\eN, ?\eN- ?\eN. ?\eN/
-- ?\e.1\eN0 ?\eN1 ?\eN2 ?\e.2\eN^ ?\eN= ?\e.1\eN5 ?\eN6 ?\eN7 ?\eN8 ?\e.2\eNq ?\eNQ ?\eNW ?\eNX ?\e.1\eN= ?\eN> ?\e.2\eN_
-- ?\e.2\eN` ?\eNa ?\eNb ?\eNc ?\eNd ?\eNe ?\e.1\eNF ?\eNG ?\e.2\eNh ?\eNi ?\eNj ?\eNk ?\eNl ?\eNm ?\eNn ?\e.1\eNO
-- ?\e.2\eNp ?\e.1\eNQ ?\e.2\eNr ?\eNs ?\eNt ?\e.1\eNU ?\eNV ?\eNW ?\eNX ?\e.2\eNy ?\eNz ?\e.1\eN[ ?\eN\ ?\e.2\eN} ?\e.1\eN^ ?\eN_
-- ?\e.1\eN` ?\eNa ?\eNb ?\eNc ?\eNd ?\eNe ?\eNf ?\eNg ?\eNh ?\eNi ?\eNj ?\eNk ?\eNl ?\eNm ?\eNn ?\eNo
-- ?\e.1\eNp ?\eNq ?\eNr ?\eNs ?\eNt ?\eNu ?\eNv ?\eNw ?\eNx ?\eNy ?\eNz ?\eN{ ?\eN| ?\eN} ?\eN~ ?\e.2\eNf ]
-- "Vietnamese VISCII decoding table.")
--
--(defvar viet-viscii-encode-table
-- (let ((table-lower (make-vector 128 0))
-- (table-upper (make-vector 128 0))
-- (i 0)
-- char-component)
-- (while (< i 256)
-- (setq char-component
-- (split-char-or-char-int (aref viet-viscii-decode-table i)))
-- (cond ((eq (car char-component) 'vietnamese-viscii-lower)
-- (aset table-lower (nth 1 char-component) i))
-- ((eq (car char-component) 'vietnamese-viscii-upper)
-- (aset table-upper (nth 1 char-component) i)))
-- (setq i (1+ i)))
-- (cons table-lower table-upper))
-- "Vietnamese VISCII encoding table.
--Cons of tables for encoding lower-case chars and upper-case characters.
--Both tables are indexed by the position code of Vietnamese characters.")
--
--(defvar viet-vscii-decode-table
-- [;; VSCII is a full 8-bit code.
-- 0 ?\e.2\eNz ?\eNx 3 ?\eNW ?\eNX ?\eNf 7 8 9 10 11 12 13 14 15
-- 16 ?\e.2\eNQ ?\eN_ ?\eNO ?\eNV ?\eN[ ?\eN} ?\eN\ 24 25 26 27 28 29 30 31
-- 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
-- 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
-- 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
-- 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
-- 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
-- 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
-- ?\e.2\eN` ?\eNd ?\eNc ?\eNa ?\eNU ?\eN# ?\eN' ?\eNh ?\eNk ?\eN( ?\eNi ?\eN) ?\eN. ?\eNl ?\eNo ?\eNn
-- ?\e.2\eNm ?\eN8 ?\eNr ?\eNv ?\eNu ?\eNs ?\eNw ?\eN5 ?\eN6 ?\eN7 ?\eN^ ?\eN> ?\eN~ ?\eNy ?\eN| ?\eN{
-- 160 ?\e.2\eNe ?\eNb ?\eNj ?\eNt ?\eN= ?\eN_ ?\eNp ?\e.1\eNe ?\eNb ?\eNj ?\eNt ?\eN> ?\eNy ?\eNp ?\e.2\eN"
-- 192 193 194 195 196 ?\e.1\eN` ?\eNd ?\eNc ?\eNa ?\eNU ?\e.2\eNF ?\e.1\eN" ?\eNF ?\eNG ?\eN! ?\e.2\eNG
-- ?\e.2\eN! ?\eN% ?\eN& ?\eNg ?\eN% ?\eN+ ?\e.1\eN# ?\eN% ?\eN& ?\eNg ?\eN$ ?\eN' ?\eNh ?\e.2\eN, ?\e.1\eNk ?\eN(
-- ?\e.1\eNi ?\eN) ?\eN+ ?\eN, ?\eN- ?\eN* ?\eN. ?\eNl ?\eNo ?\e.2\eN- ?\eN* ?\eN0 ?\e.1\eNn ?\eNm ?\eN8 ?\eNr
-- ?\e.2\eN1 ?\e.1\eNv ?\eNu ?\eNs ?\eNw ?\eN0 ?\eN1 ?\eN2 ?\eN/ ?\eN5 ?\eN6 ?\eN7 ?\eN^ ?\eN> ?\eN~ ?\eNy
-- ?\e.2\eN2 ?\e.1\eN| ?\eN{ ?\eNz ?\eNx ?\eNW ?\eNX ?\eNf ?\eNQ ?\eNq ?\eNO ?\eNV ?\eN[ ?\eN} ?\eN\ ?\e.2\eN/]
-- "Vietnamese VSCII decoding table.")
--
--(defvar viet-vscii-encode-table
-- (let ((table-lower (make-vector 128 0))
-- (table-upper (make-vector 128 0))
-- (i 0)
-- char-component)
-- (while (< i 256)
-- (setq char-component
-- (split-char-or-char-int (aref viet-vscii-decode-table i)))
-- (cond ((eq (car char-component) 'vietnamese-viscii-lower)
-- (aset table-lower (nth 1 char-component) i))
-- ((eq (car char-component) 'vietnamese-viscii-upper)
-- (aset table-upper (nth 1 char-component) i)))
-- (setq i (1+ i)))
-- (cons table-lower table-upper))
-- "Vietnamese VSCII encoding table.
--Cons of tables for encoding lower-case chars and upper-case characters.
--Both tables are indexed by the position code of Vietnamese characters.")
--
--)
--
--(define-ccl-program ccl-decode-viscii
-- `(3
-- ((read r0)
-- (loop
-- (write-read-repeat r0 ,viet-viscii-decode-table))
-- ))
-- "CCL program to decode VISCII 1.1")
--
--;; Multibyte form of a Vietnamese character is as follows (3-byte):
--;; LEADING-CODE-PRIVATE-11 LEADING-CODE-EXTENDED-11 POSITION-CODE
--;; where LEADING-CODE-EXTENDED-11 for Vietnamese is
--;; `vietnamese-viscii-lower' or `vietnamese-viscii-upper'.
--
--(defvar leading-code-private-11 #x9E)
--
--(define-ccl-program ccl-encode-viscii
-- `(1
-- ((read r0)
-- (loop
-- (if (r0 < 128)
-- ;; ASCII
-- (write-read-repeat r0)
-- ;; not ASCII
-- (if (r0 != ,leading-code-private-11)
-- ;; not Vietnamese
-- (write-read-repeat r0)
-- ((read-if (r0 == ,(charset-id 'vietnamese-viscii-lower))
-- (;; Vietnamese lower
-- (read r0)
-- (r0 -= 128)
-- (write-read-repeat r0 ,(car viet-viscii-encode-table)))
-- (if (r0 == ,(charset-id 'vietnamese-viscii-upper))
-- (;; Vietnamese upper
-- (read r0)
-- (r0 -= 128)
-- (write-read-repeat r0 ,(cdr viet-viscii-encode-table)))
-- ;; not Vietnamese
-- (write-read-repeat r0)))))))))
-- "CCL program to encode VISCII 1.1")
--
--(define-ccl-program ccl-encode-viscii-font
-- `(0
-- ;; In: R0:vietnamese-viscii-lower/vietnamese-viscii-upper
-- ;; R1:position code
-- ;; Out: R1:font code point
-- (if (r0 == ,(charset-id 'vietnamese-viscii-lower))
-- (r1 = r1 ,(car viet-viscii-encode-table))
-- (r1 = r1 ,(cdr viet-viscii-encode-table)))
-- )
-- "CCL program to encode Vietnamese chars to VISCII 1.1 font")
--
--(define-ccl-program ccl-decode-vscii
-- `(3
-- ((read r0)
-- (loop
-- (write-read-repeat r0 ,viet-vscii-decode-table))
-- ))
-- "CCL program to decode VSCII-1.")
--
--(define-ccl-program ccl-encode-vscii
-- `(1
-- ((read r0)
-- (loop
-- (if (r0 < 128)
-- ;; ASCII
-- (write-read-repeat r0)
-- ;; not ASCII
-- (if (r0 != ,leading-code-private-11)
-- ;; not Vietnamese
-- (write-read-repeat r0)
-- (read-if (r0 == ,(charset-id 'vietnamese-viscii-lower))
-- (;; Vietnamese lower
-- (read r0)
-- (r0 -= 128)
-- (write-read-repeat r0 ,(car viet-vscii-encode-table)))
-- (if (r0 == ,(charset-id 'vietnamese-viscii-upper))
-- (;; Vietnamese upper
-- (read r0)
-- (r0 -= 128)
-- (write-read-repeat r0 ,(cdr viet-viscii-encode-table)))
-- ;; not Vietnamese
-- (write-read-repeat r0))))))))
-- "CCL program to encode VSCII-1.")
--
--(define-ccl-program ccl-encode-vscii-font
-- `(0
-- ;; In: R0:vietnamese-viscii-lower/vietnamese-viscii-upper
-- ;; R1:position code
-- ;; Out: R1:font code point
-- (if (r0 == ,(charset-id 'vietnamese-viscii-lower))
-- (r1 = r1 ,(car viet-vscii-encode-table))
-- (r1 = r1 ,(cdr viet-vscii-encode-table)))
-- )
-- "CCL program to encode Vietnamese chars to VSCII-1 font.")
--
--
--(make-coding-system
-- 'viscii 'ccl
-- "Coding-system used for VISCII 1.1."
-- `(mnemonic "VISCII"
-- decode ,ccl-decode-viscii
-- encode ,ccl-encode-viscii))
--
--;; (make-coding-system
--;; 'vietnamese-viscii 4 ?V
--;; "8-bit encoding for Vietnamese VISCII 1.1 (MIME:VISCII)"
--;; (cons ccl-decode-viscii ccl-encode-viscii))
--
--;; (define-coding-system-alias 'viscii 'vietnamese-viscii)
--
--(make-coding-system
-- 'vscii 'ccl
-- "Coding-system used for VSCII 1.1."
-- `(mnemonic "VSCII"
-- decode ,ccl-decode-vscii
-- encode ,ccl-encode-vscii))
--
--;; (make-coding-system
--;; 'vietnamese-vscii 4 ?v
--;; "8-bit encoding for Vietnamese VSCII-1"
--;; (cons ccl-decode-vscii ccl-encode-vscii))
--
--;; (define-coding-system-alias 'vscii 'vietnamese-vscii)
--
--(make-coding-system
-- 'viqr 'no-conversion
-- "Coding-system used for VIQR."
-- '(mnemonic "VIQR"
-- eol-type lf
-- post-read-conversion viqr-post-read-conversion
-- pre-write-conversion viqr-pre-write-conversion))
--
--;; (make-coding-system
--;; 'vietnamese-viqr 0 ?q
--;; "Vietnamese latin transcription (VIQR)"
--;; nil)
--;; (put 'vietnamese-viqr 'post-read-conversion 'viqr-post-read-conversion)
--;; (put 'vietnamese-viqr 'pre-write-conversion 'viqr-pre-write-conversion)
--
--;; (define-coding-system-alias 'viqr 'vietnamese-viqr)
--
--;; For VISCII users
--(set-charset-ccl-program 'vietnamese-viscii-lower
-- ccl-encode-viscii-font)
--(set-charset-ccl-program 'vietnamese-viscii-upper
-- ccl-encode-viscii-font)
--;; For VSCII users
--(set-charset-ccl-program 'vietnamese-viscii-lower ccl-encode-vscii-font)
--(set-charset-ccl-program 'vietnamese-viscii-upper ccl-encode-vscii-font)
--
--;; (setq font-ccl-encoder-alist
--;; (cons (cons "viscii" ccl-encode-viscii-font) font-ccl-encoder-alist))
--
--;; (setq font-ccl-encoder-alist
--;; (cons (cons "vscii" ccl-encode-vscii-font) font-ccl-encoder-alist))
--
--(set-language-info-alist
-- "Vietnamese" '((setup-function . setup-vietnamese-environment)
-- (charset . (vietnamese-viscii-lower
-- vietnamese-viscii-upper))
-- (coding-system . (viscii vscii viqr))
-- (sample-text . "Vietnamese (Ti\e.1\eN*ng Vi\eN.t) Ch\eN`o b\eNUn")
-- (documentation . "\
--For Vietnamese, Emacs uses special charasets internally.
--They can be decoded from and encoded to VISCC, VSCII, and VIQR.")
-- ))
--
--;;; vietnamese.el ends here
+++ /dev/null
--Dummy file to keep CVS happy.