Mercurial > hg > xemacs-beta
comparison lisp/mule/korean.el @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children | 95016f13131a |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
1 ;;; korean.el --- Support for Korean -*- coding: iso-2022-7bit; -*- | 1 ;;; korean.el --- Support for Korean |
2 | 2 |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | 3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. |
4 ;; Licensed to the Free Software Foundation. | 4 ;; Licensed to the Free Software Foundation. |
5 ;; Copyright (C) 1997 MORIOKA Tomohiko | 5 ;; Copyright (C) 1997 MORIOKA Tomohiko |
6 | 6 |
64 (setq wnn-server-type 'kserver) | 64 (setq wnn-server-type 'kserver) |
65 (setq egg-default-startup-file "eggrc-wnn") | 65 (setq egg-default-startup-file "eggrc-wnn") |
66 (setq-default its:*current-map* (its:get-mode-map "hangul")))) | 66 (setq-default its:*current-map* (its:get-mode-map "hangul")))) |
67 | 67 |
68 ;; (make-coding-system | 68 ;; (make-coding-system |
69 ;; 'korean-iso-8bit 2 ?K | 69 ;; 'euc-kr 2 ?K |
70 ;; "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)" | 70 ;; "Coding-system of Korean EUC (Extended Unix Code)." |
71 ;; '(ascii korean-ksc5601 nil nil | 71 ;; '((ascii t) korean-ksc5601 nil nil |
72 ;; nil ascii-eol ascii-cntl) | 72 ;; nil ascii-eol ascii-cntl)) |
73 ;; '((safe-charsets ascii korean-ksc5601) | |
74 ;; (mime-charset . euc-kr))) | |
75 | 73 |
76 (make-coding-system | 74 (make-coding-system |
77 'euc-kr 'iso2022 | 75 'euc-kr 'iso2022 |
78 "Coding-system of Korean EUC (Extended Unix Code)." | 76 "Coding-system of Korean EUC (Extended Unix Code)." |
79 '(charset-g0 ascii | 77 '(charset-g0 ascii |
81 mnemonic "ko/EUC" | 79 mnemonic "ko/EUC" |
82 eol-type nil)) | 80 eol-type nil)) |
83 | 81 |
84 ;;(define-coding-system-alias 'euc-kr 'euc-korea) | 82 ;;(define-coding-system-alias 'euc-kr 'euc-korea) |
85 | 83 |
86 (define-coding-system-alias 'korean-euc 'euc-kr) | 84 (copy-coding-system 'euc-kr 'korean-euc) |
87 | 85 |
88 ;; (make-coding-system | 86 ;; (make-coding-system |
89 ;; 'iso-2022-kr 2 ?k | 87 ;; 'iso-2022-kr 2 ?k |
90 ;; "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)." | 88 ;; "MIME ISO-2022-KR" |
91 ;; '(ascii (nil korean-ksc5601) nil nil | 89 ;; '(ascii (nil korean-ksc5601) nil nil |
92 ;; nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil | 90 ;; nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil |
93 ;; designation-bol) | 91 ;; designation-bol)) |
94 ;; '((safe-charsets ascii korean-ksc5601) | |
95 ;; (mime-charset . iso-2022-kr))) | |
96 | 92 |
97 (make-coding-system | 93 (make-coding-system |
98 'iso-2022-kr 'iso2022 | 94 'iso-2022-kr 'iso2022 |
99 "Coding-System used for communication with mail in Korea." | 95 "Coding-System used for communication with mail in Korea." |
100 '(charset-g0 ascii | 96 '(charset-g0 ascii |
103 seven t | 99 seven t |
104 lock-shift t | 100 lock-shift t |
105 mnemonic "Ko/7bit" | 101 mnemonic "Ko/7bit" |
106 eol-type lf)) | 102 eol-type lf)) |
107 | 103 |
108 ;; (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr) | 104 (defun setup-korean-environment () |
105 "Setup multilingual environment (MULE) for Korean." | |
106 (interactive) | |
107 (setup-english-environment) | |
108 ;; (setq coding-category-iso-8-2 'euc-kr) | |
109 (set-coding-category-system 'iso-8-2 'euc-kr) | |
110 | |
111 ;; (set-coding-priority | |
112 ;; '(coding-category-iso-7 | |
113 ;; coding-category-iso-8-2 | |
114 ;; coding-category-iso-8-1)) | |
115 (set-coding-priority-list | |
116 '(iso-8-2 | |
117 iso-7 | |
118 iso-8-1 | |
119 iso-8-designate | |
120 iso-lock-shift | |
121 no-conversion | |
122 shift-jis | |
123 big5)) | |
124 | |
125 (set-default-coding-systems 'euc-kr) | |
126 | |
127 ;; (when (eq 'x (device-type (selected-device))) | |
128 ;; (x-use-halfwidth-roman-font 'korean-ksc5601 "ksc5636")) | |
129 | |
130 ;; EGG specific setup 97.02.05 jhod | |
131 (when (featurep 'egg) | |
132 (when (not (featurep 'egg-kor)) | |
133 (provide 'egg-kor) | |
134 (load "its-hangul") | |
135 (setq its:*standard-modes* | |
136 (cons (its:get-mode-map "hangul") its:*standard-modes*))) | |
137 (setq-default its:*current-map* (its:get-mode-map "hangul"))) | |
138 | |
139 (setq default-input-method "korean-hangul")) | |
109 | 140 |
110 (set-language-info-alist | 141 (set-language-info-alist |
111 "Korean" '((setup-function . setup-korean-environment-internal) | 142 "Korean" '((setup-function . setup-korean-environment) |
112 (exit-function . exit-korean-environment) | |
113 (tutorial . "TUTORIAL.ko") | 143 (tutorial . "TUTORIAL.ko") |
114 (charset korean-ksc5601) | 144 (charset . (korean-ksc5601)) |
115 (coding-system euc-kr iso-2022-kr) | 145 (coding-system . (iso-2022-kr euc-kr)) |
116 (coding-priority euc-kr iso-2022-kr) | |
117 (input-method . "korean-hangul") | |
118 (features korea-util) | |
119 (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") | 146 (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B") |
120 (documentation . "\ | 147 (documentation . t))) |
121 The following key bindings are available while using Korean input methods: | |
122 Shift-SPC: toggle-korean-input-mthod | |
123 Control-F9: quail-hangul-switch-symbol-ksc | |
124 F9: quail-hangul-switch-hanja") | |
125 )) | |
126 | 148 |
127 ;;; korean.el ends here | 149 ;;; korean.el ends here |