(defun setup-chinese-gb-environment ()
"Setup multilingual environment (MULE) for Chinese GB2312 users."
(interactive)
- (setup-english-environment)
- (set-language-environment-coding-systems "Chinese-GB")
- (setq default-input-method "chinese-py-punct"))
+ (set-language-environment "Chinese-GB"))
;;;###autoload
(defun setup-chinese-big5-environment ()
"Setup multilingual environment (MULE) for Chinese Big5 users."
(interactive)
- (setup-english-environment)
- (set-language-environment-coding-systems "Chinese-BIG5")
- (setq default-input-method "chinese-py-punct-b5"))
+ (set-language-environment "Chinese-BIG5"))
;;;###autoload
(defun setup-chinese-cns-environment ()
"Setup multilingual environment (MULE) for Chinese CNS11643 family users."
(interactive)
- (setup-english-environment)
- (set-language-environment-coding-systems "Chinese-CNS")
- (setq default-input-method "chinese-cns-quick"))
+ (set-language-environment "Chinese-CNS"))
;; Hz/ZW encoding stuffs
(defun setup-cyrillic-iso-environment ()
"Setup multilingual environment (MULE) for Cyrillic ISO-8859-5 users."
(interactive)
- (setup-8-bit-environment "Cyrillic-ISO" 'cyrillic-iso8859-5
- "cyrillic-yawerty"))
+ (set-language-environment "Cyrillic-ISO"))
;;;###autoload
(defun setup-cyrillic-koi8-environment ()
"Setup multilingual environment (MULE) for Cyrillic KOI8 users."
(interactive)
- (setup-8-bit-environment "Cyrillic-KOI8" 'cyrillic-iso8859-5
- "cyrillic-yawerty"))
+ (set-language-environment "Cyrillic-KOI8"))
;;;###autoload
(defun setup-cyrillic-alternativnyj-environment ()
"Setup multilingual environment (MULE) for Cyrillic ALTERNATIVNYJ users."
(interactive)
- (setup-8-bit-environment "Cyrillic-ALT" 'cyrillic-iso8859-5
- "cyrillic-yawerty")
- (setq coding-category-raw-text 'cyrillic-alternativnyj))
+ (set-language-environment "Cyrillic-ALT"))
;;;###autoload
(defun cyrillic-encode-koi8-r-char (char)
(defun setup-devanagari-environment ()
"Setup multilingual environment (MULE) for languages using Devanagari."
(interactive)
- (setup-8-bit-environment "Devanagari" nil "devanagari-itrans"))
-
+ (set-language-environment "Devanagari"))
+
;;; Basic functions.
;;;###autoload
;;;###autoload
(defun setup-ethiopic-environment ()
"Setup multilingual environment for Ethiopic."
- (interactive)
- (setup-english-environment)
- (setq default-input-method "ethiopic")
+ (set-language-environment "Ethiopic"))
+;;;###autoload
+(defun setup-ethiopic-environment-internal ()
(let ((key-bindings '((" " . ethio-insert-space)
([?\S- ] . ethio-insert-ethio-space)
([?\C-'] . ethio-gemination)
(defun setup-japanese-environment ()
"Setup multilingual environment (MULE) for Japanese."
(interactive)
- (setup-english-environment)
- (set-language-environment-coding-systems "Japanese")
+ (set-language-environment "Japanese"))
+
+;;;###autoload
+(defun setup-japanese-environment-internal ()
(if (eq system-type 'ms-dos)
- (prefer-coding-system 'japanese-shift-jis))
- (setq default-file-name-coding-system 'japanese-iso-8bit)
- (setq default-input-method "japanese")
+ (prefer-coding-system 'japanese-shift-jis)
+ (setq default-file-name-coding-system 'japanese-iso-8bit))
(setq sentence-end-save sentence-end)
(setq sentence-end (concat sentence-end "\\|[\e$B!#!)!*\e(B]")))
(defun setup-korean-environment ()
"Setup multilingual environment (MULE) for Korean."
(interactive)
- (setup-english-environment)
- (set-language-environment-coding-systems "Korean")
-
- (setq default-input-method "korean-hangul")
+ (set-language-environment "Korean"))
+;;;###autoload
+(defun setup-korean-environment-internal ()
(let ((key-bindings korean-key-bindings))
(while key-bindings
(let* ((this (car key-bindings))
(defun setup-lao-environment ()
"Setup multilingual environment (MULE) for Lao."
(interactive)
- (setup-8-bit-environment "Lao" 'lao "lao"))
+ (set-language-environment "Lao"))
(let ((l '((?\e(1!\e(B consonant "LETTER KOR KAI'" "CHICKEN")
(?\e(1"\e(B consonant "LETTER KHOR KHAI'" "EGG")
(defun setup-thai-environment ()
"Setup multilingual environment (MULE) for Thai."
(interactive)
- (setup-8-bit-environment "Thai" 'thai-tis620 "thai-kesmanee"))
+ (set-language-environment "Thai"))
;; Setting information of Thai characters.
;;;###autoload
(defun setup-tibetan-environment ()
(interactive)
- (setup-english-environment)
- (set-language-environment-coding-systems "Tibetan")
- (setq default-input-method "tibetan-wylie"))
+ (set-language-environment "Tibetan"))
;;; This function makes a transcription string for
;;; re-composing a character.
;;;
;;; Here are examples of the words "bsgrubs" and "h'uM"
;;;
-;;; \e$(7"7\e2%q`"U\e1"7"G\e(B \e2\e$(7"H`#A`"U0"_\e1\e(B
+;;; \e$(7"7\e(B\e2\e$(7%q`"U\e(B\e1\e$(7"7"G\e(B \e2\e$(7"H`#A`"U0"_\e(B\e1
;;;
;;; M
;;; b s b s h
(defun setup-vietnamese-environment ()
"Setup multilingual environment (MULE) for Vietnamese VISCII users."
(interactive)
- (setup-8-bit-environment "Vietnamese" nil "vietnamese-viqr"))
+ (set-language-environment "Vietnamese"))
;; VIQR is a menmonic encoding specification for Vietnamese.
;; It represents diacritical marks by ASCII characters as follows: