1 ;;; thai.el --- support for Thai -*- coding: iso-2022-7bit; no-byte-compile: t -*-
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5 ;; Copyright (C) 2002 Free Software Foundation, Inc.
7 ;; National Institute of Advanced Industrial Science and Technology (AIST)
8 ;; Registration Number H13PRO009
10 ;; National Institute of Advanced Industrial Science and Technology (AIST)
11 ;; Registration Number H14PRO021
13 ;; Keywords: multilingual, Thai, i18n
15 ;; This file is part of GNU Emacs.
17 ;; GNU Emacs is free software; you can redistribute it and/or modify
18 ;; it under the terms of the GNU General Public License as published by
19 ;; the Free Software Foundation; either version 2, or (at your option)
22 ;; GNU Emacs is distributed in the hope that it will be useful,
23 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;; GNU General Public License for more details.
27 ;; You should have received a copy of the GNU General Public License
28 ;; along with GNU Emacs; see the file COPYING. If not, write to the
29 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
30 ;; Boston, MA 02111-1307, USA.
34 ;; For Thai, the character set TIS620 is supported.
38 (define-coding-system 'thai-tis620
39 "8-bit encoding for ASCII (MSB=0) and Thai TIS620 (MSB=1)."
42 :charset-list '(tis620-2533))
44 (define-coding-system-alias 'th-tis620 'thai-tis620)
45 (define-coding-system-alias 'tis620 'thai-tis620)
46 (define-coding-system-alias 'tis-620 'thai-tis620)
48 (set-language-info-alist
49 "Thai" '((tutorial . "TUTORIAL.th")
51 (coding-system thai-tis620 iso-8859-11 cp874)
52 (coding-priority thai-tis620)
53 (nonascii-translation . tis620-2533)
54 (input-method . "thai-kesmanee")
55 (unibyte-display . thai-tis620)
58 . (thai-compose-string
59 (copy-sequence "Thai (
\e,T@RIRd7B
\e(B)
\e,TJGQJ4U$CQ:
\e(B,
\e,TJGQJ4U$hP
\e(B")))
62 (define-coding-system 'cp874
63 "DOS codepage 874 (Thai)"
66 :charset-list '(cp874)
68 (define-coding-system-alias 'ibm874 'cp874)
70 (define-coding-system 'iso-8859-11
71 "ISO/IEC 8859/11 (Latin/Thai)
72 This is the same as `thai-tis620' with the addition of no-break-space."
75 :mime-charset 'iso-8859-11 ; not actually registered as of 2002-05-24
76 :charset-list '(iso-8859-11))
78 ;; For automatic composition.
79 (let ((chars "
\e,TQTUVWXYZghijklmn
\e(B"))
80 (dotimes (i (length chars))
81 (aset composition-function-table (aref chars i)
82 'thai-composition-function)))
86 ;;; arch-tag: c7eb0e91-4db0-4619-81f8-8762e7d51e15