diff lisp/mule/korean.el @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents 3ecd8885ac67
children 2923009caf47
line wrap: on
line diff
--- a/lisp/mule/korean.el	Fri Mar 08 13:33:14 2002 +0000
+++ b/lisp/mule/korean.el	Wed Mar 13 08:54:06 2002 +0000
@@ -44,7 +44,7 @@
 
 (make-coding-system
  'iso-2022-int-1 'iso2022
- "ISO-2022-INT-1"
+ "ISO-2022-INT-1 (Korean)"
  '(charset-g0 ascii
    charset-g1 korean-ksc5601
    short t
@@ -56,14 +56,17 @@
 (define-egg-environment 'korean
   "Korean settings for egg"
   (lambda ()
-    (when (not (featurep 'egg-kor))
-      (load "its-hangul")
-      (setq its:*standard-modes*
-	    (cons (its:get-mode-map "hangul") its:*standard-modes*))
-      (provide 'egg-kor))
-    (setq wnn-server-type 'kserver)
-    (setq egg-default-startup-file "eggrc-wnn")
-    (setq-default its:*current-map* (its:get-mode-map "hangul"))))
+    (with-boundp '(its:*standard-modes* its:*current-map* wnn-server-type
+					egg-default-startup-file)
+      (with-fboundp 'its:get-mode-map
+	(when (not (featurep 'egg-kor))
+	  (load "its-hangul")
+	  (setq its:*standard-modes*
+		(cons (its:get-mode-map "hangul") its:*standard-modes*))
+	  (provide 'egg-kor))
+	(setq wnn-server-type 'kserver)
+	(setq egg-default-startup-file "eggrc-wnn")
+	(setq-default its:*current-map* (its:get-mode-map "hangul"))))))
 
 ;; (make-coding-system
 ;;  'korean-iso-8bit 2 ?K
@@ -75,10 +78,17 @@
 
 (make-coding-system
  'euc-kr 'iso2022
- "Coding-system of Korean EUC (Extended Unix Code)."
+ "Korean EUC"
  '(charset-g0 ascii
    charset-g1 korean-ksc5601
    mnemonic "ko/EUC"
+   documentation
+   "Korean EUC (Extended Unix Code), the standard Korean encoding on Unix.
+This follows the same overall EUC principles (see the description under
+Japanese EUC), but specifies different character sets:
+
+G0: ASCII
+G1: Korean-KSC5601"
    eol-type nil))
 
 ;;(define-coding-system-alias 'euc-kr 'euc-korea)
@@ -96,13 +106,14 @@
 
 (make-coding-system
  'iso-2022-kr 'iso2022
- "Coding-System used for communication with mail in Korea."
+ "ISO-2022-KR (Korean mail)"
  '(charset-g0 ascii
    charset-g1 korean-ksc5601
    force-g1-on-output t
    seven t
    lock-shift t
    mnemonic "Ko/7bit"
+   documentation "Coding-System used for communication with mail in Korea."
    eol-type lf))
 
 ;; (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr)
@@ -114,6 +125,8 @@
 	    (charset korean-ksc5601)
 	    (coding-system euc-kr iso-2022-kr)
 	    (coding-priority euc-kr iso-2022-kr)
+	    (locale "ko_KR.eucKR" "ko_KR.EUC" "ko_KR.euc" "ko_KR" "ko")
+	    (native-coding-system euc-kr)
 	    (input-method . "korean-hangul")
 	    (features korea-util)
 	    (sample-text . "Hangul ($(CGQ1[(B)	$(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B")