- 'th-tis620 2 ?T
- "Coding-system used for ASCII(MSB=0) & TIS620(MSB=1)."
- '((ascii t) (thai-tis620 t) nil nil
- nil ascii-eol))
-(put 'th-tis620 'post-read-conversion 'thai-post-read-conversion)
-(put 'th-tis620 'pre-write-conversion 'thai-pre-write-conversion)
-
-(define-coding-system-alias 'th-tis620 'tis620)
-
-(register-input-method
- "Thai" '("quail-thai" quail-use-package "quail/thai"))
-
-(defun setup-thai-environment ()
- "Setup multilingual environment (MULE) for Thai."
- (interactive)
- (setup-english-environment)
- (setq coding-category-iso-8-1 'th-tis620)
-
- (set-coding-priority
- '(coding-category-iso-7
- coding-category-iso-8-1))
-
- (setq-default buffer-file-coding-system 'th-tis620)
-
- (setq default-input-method '("Thai" . "quail-thai"))
- )
-
-(defun describe-thai-support ()
- "Describe how Emacs supports Thai."
- (interactive)
- (describe-language-support-internal "Thai"))
+ 'thai-tis620 2 ?T
+ "8-bit encoding for ASCII (MSB=0) and Thai TIS620 (MSB=1)."
+ '(ascii thai-tis620 nil nil
+ nil nil nil nil nil nil nil nil nil nil nil t)
+ '((safe-charsets ascii thai-tis620)
+ (mime-charset . tis-620)
+ (post-read-conversion . thai-post-read-conversion)))
+
+(define-coding-system-alias 'th-tis620 'thai-tis620)
+(define-coding-system-alias 'tis620 'thai-tis620)
+(define-coding-system-alias 'tis-620 'thai-tis620)