Mercurial > hg > xemacs-beta
diff lisp/language/korean.el @ 207:e45d5e7c476e r20-4b2
Import from CVS: tag r20-4b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:03:52 +0200 |
parents | acd284d43ca1 |
children | 41ff10fd062f |
line wrap: on
line diff
--- a/lisp/language/korean.el Mon Aug 13 10:02:48 2007 +0200 +++ b/lisp/language/korean.el Mon Aug 13 10:03:52 2007 +0200 @@ -105,15 +105,37 @@ "Setup multilingual environment (MULE) for Korean." (interactive) (setup-english-environment) - (setq coding-category-iso-8-2 'euc-kr) + ;; (setq coding-category-iso-8-2 'euc-kr) + (set-coding-category-system 'iso-8-2 'euc-kr) - (set-coding-priority - '(coding-category-iso-7 - coding-category-iso-8-2 - coding-category-iso-8-1)) + ;; (set-coding-priority + ;; '(coding-category-iso-7 + ;; coding-category-iso-8-2 + ;; coding-category-iso-8-1)) + (set-coding-priority-list + '(iso-8-2 + iso-7 + iso-8-1 + iso-8-designate + iso-lock-shift + no-conversion + shift-jis + big5)) (set-default-coding-systems 'euc-kr) + ;; (when (eq 'x (device-type (selected-device))) + ;; (x-use-halfwidth-roman-font 'korean-ksc5601 "ksc5636")) + + ;; EGG specific setup 97.02.05 jhod + (when (featurep 'egg) + (when (not (featurep 'egg-kor)) + (provide 'egg-kor) + (load "its/its-hangul") + (setq its:*standard-modes* + (cons (its:get-mode-map "hangul") its:*standard-modes*))) + (setq-default its:*current-map* (its:get-mode-map "hangul"))) + (setq default-input-method "korean-hangul")) (set-language-info-alist @@ -124,37 +146,4 @@ (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") (documentation . t))) -;;; for XEmacs (will be obsoleted) - -(define-language-environment 'korean - "Korean" - (lambda () - (set-coding-category-system 'iso-8-2 'euc-kr) - (set-coding-priority-list '(iso-8-2 iso-7 iso-8-designate)) - (set-pathname-coding-system 'euc-kr) - (add-hook 'comint-exec-hook - (lambda () - (let ((proc (get-buffer-process (current-buffer)))) - (set-process-input-coding-system proc 'euc-kr) - (set-process-output-coding-system proc 'euc-kr)))) - (set-buffer-file-coding-system-for-read 'automatic-conversion) - (set-default-buffer-file-coding-system 'euc-kr) - (setq keyboard-coding-system 'euc-kr) - (setq terminal-coding-system 'euc-kr) - (when (eq 'x (device-type (selected-device))) - (x-use-halfwidth-roman-font 'korean-ksc5601 "ksc5636")) - - ;; EGG specific setup 97.02.05 jhod - (when (featurep 'egg) - (when (not (featurep 'egg-kor)) - (provide 'egg-kor) - (load "its/its-hangul") - (setq its:*standard-modes* - (cons (its:get-mode-map "hangul") its:*standard-modes*))) - (setq-default its:*current-map* (its:get-mode-map "hangul"))) - -;; ;; (setq-default quail-current-package -;; ;; (assoc "hangul" quail-package-alist)) - )) - ;;; korean.el ends here