diff options
| author | Kenichi Handa | 1997-10-23 12:03:41 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-10-23 12:03:41 +0000 |
| commit | 7b70edb428665556ce8891d70701c6bd6ebe3a25 (patch) | |
| tree | 6df23efee012c337d39e9f2c1d8026cd85dacf45 | |
| parent | 1763c50caa3732ac100ea9258df0cce7fa2a24c0 (diff) | |
| download | emacs-7b70edb428665556ce8891d70701c6bd6ebe3a25.tar.gz emacs-7b70edb428665556ce8891d70701c6bd6ebe3a25.zip | |
Give proper SAFE-CHARSET argument in each
call of make-coding-system. Set exit-function for language
environment "Korean" to exit-korean-environment.
(setup-korean-environment): Moved to korean.el.
| -rw-r--r-- | lisp/language/korean.el | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/lisp/language/korean.el b/lisp/language/korean.el index c410b8bd438..2c6a435efb0 100644 --- a/lisp/language/korean.el +++ b/lisp/language/korean.el | |||
| @@ -32,7 +32,8 @@ | |||
| 32 | 'korean-iso-8bit 2 ?K | 32 | 'korean-iso-8bit 2 ?K |
| 33 | "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)" | 33 | "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)" |
| 34 | '((ascii t) korean-ksc5601 nil nil | 34 | '((ascii t) korean-ksc5601 nil nil |
| 35 | nil ascii-eol ascii-cntl)) | 35 | nil ascii-eol ascii-cntl) |
| 36 | '(ascii korean-ksc5601)) | ||
| 36 | 37 | ||
| 37 | (define-coding-system-alias 'euc-kr 'korean-iso-8bit) | 38 | (define-coding-system-alias 'euc-kr 'korean-iso-8bit) |
| 38 | (define-coding-system-alias 'euc-korea 'korean-iso-8bit) | 39 | (define-coding-system-alias 'euc-korea 'korean-iso-8bit) |
| @@ -42,31 +43,22 @@ | |||
| 42 | "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)." | 43 | "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)." |
| 43 | '(ascii (nil korean-ksc5601) nil nil | 44 | '(ascii (nil korean-ksc5601) nil nil |
| 44 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil | 45 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil |
| 45 | designation-bol)) | 46 | designation-bol) |
| 47 | '(ascii korean-ksc5601)) | ||
| 46 | 48 | ||
| 47 | (define-coding-system-alias 'iso-2022-kr 'korean-iso-7bit-lock) | 49 | (define-coding-system-alias 'iso-2022-kr 'korean-iso-7bit-lock) |
| 48 | 50 | ||
| 49 | (defun setup-korean-environment () | ||
| 50 | "Setup multilingual environment (MULE) for Korean." | ||
| 51 | (interactive) | ||
| 52 | (setup-english-environment) | ||
| 53 | (setq coding-category-iso-8-2 'korean-iso-8bit) | ||
| 54 | |||
| 55 | (set-coding-priority | ||
| 56 | '(coding-category-iso-7 | ||
| 57 | coding-category-iso-8-2 | ||
| 58 | coding-category-iso-8-1)) | ||
| 59 | |||
| 60 | (set-default-coding-systems 'korean-iso-8bit) | ||
| 61 | |||
| 62 | (setq default-input-method "korean-hangul")) | ||
| 63 | |||
| 64 | (set-language-info-alist | 51 | (set-language-info-alist |
| 65 | "Korean" '((setup-function . setup-korean-environment) | 52 | "Korean" '((setup-function . setup-korean-environment) |
| 53 | (exit-function . exit-korean-environment) | ||
| 66 | (tutorial . "TUTORIAL.kr") | 54 | (tutorial . "TUTORIAL.kr") |
| 67 | (charset . (korean-ksc5601)) | 55 | (charset . (korean-ksc5601)) |
| 68 | (coding-system . (korean-iso-7bit-lock korean-iso-8bit)) | 56 | (coding-system . (korean-iso-7bit-lock korean-iso-8bit)) |
| 69 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") | 57 | (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") |
| 70 | (documentation . t))) | 58 | (documentation . "The following key bindings are avairable: |
| 59 | Shift-SPC: toggle-korean-input-mthod | ||
| 60 | Control-F10: quail-hangul-switch-symbol-ksc | ||
| 61 | F9: quail-hangul-switch-hanja") | ||
| 62 | )) | ||
| 71 | 63 | ||
| 72 | ;;; korean.el ends here | 64 | ;;; korean.el ends here |