annotate lisp/mule/korean.el @ 404:2f8bb876ab1d r21-2-32

Import from CVS: tag r21-2-32
author cvs
date Mon, 13 Aug 2007 11:16:07 +0200
parents 74fd4e045ea6
children 697ef44129c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
1 ;;; korean.el --- Support for Korean -*- coding: iso-2022-7bit; -*-
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
6
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
7 ;; Keywords: multilingual, Korean
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
8
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
10
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
14 ;; any later version.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
15
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
19 ;; General Public License for more details.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
20
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
24 ;; 02111-1307, USA.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
25
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
26 ;;; Commentary:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
27
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
28 ;; For Korean, the character set KSC5601 is supported.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
29
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
30 ;;; Code:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
31
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
32 ;; Syntax of Korean characters.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
33 (loop for row from 33 to 34 do
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
34 (modify-syntax-entry `[korean-ksc5601 ,row] "."))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
35 (loop for row from 35 to 37 do
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
36 (modify-syntax-entry `[korean-ksc5601 ,row] "w"))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
37 (loop for row from 38 to 41 do
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
38 (modify-syntax-entry `[korean-ksc5601 ,row] "."))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
39 (loop for row from 42 to 126 do
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
40 (modify-syntax-entry `[korean-ksc5601 ,row] "w"))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
41
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
42 ;; Setting for coding-system and quail were moved to
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
43 ;; language/korean.el.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
44
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
45 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
46 'iso-2022-int-1 'iso2022
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
47 "ISO-2022-INT-1"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
48 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
49 charset-g1 korean-ksc5601
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
50 short t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
51 seven t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
52 lock-shift t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
53 mnemonic "INT-1"))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
54
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
55 ;; EGG specific setup
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
56 (define-egg-environment 'korean
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
57 "Korean settings for egg"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
58 (lambda ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
59 (when (not (featurep 'egg-kor))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
60 (load "its-hangul")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
61 (setq its:*standard-modes*
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
62 (cons (its:get-mode-map "hangul") its:*standard-modes*))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
63 (provide 'egg-kor))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
64 (setq wnn-server-type 'kserver)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
65 (setq egg-default-startup-file "eggrc-wnn")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
66 (setq-default its:*current-map* (its:get-mode-map "hangul"))))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
67
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
68 ;; (make-coding-system
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
69 ;; 'korean-iso-8bit 2 ?K
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
70 ;; "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
71 ;; '(ascii korean-ksc5601 nil nil
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
72 ;; nil ascii-eol ascii-cntl)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
73 ;; '((safe-charsets ascii korean-ksc5601)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
74 ;; (mime-charset . euc-kr)))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
75
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
76 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
77 'euc-kr 'iso2022
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
78 "Coding-system of Korean EUC (Extended Unix Code)."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
79 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
80 charset-g1 korean-ksc5601
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
81 mnemonic "ko/EUC"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
82 eol-type nil))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
83
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
84 ;;(define-coding-system-alias 'euc-kr 'euc-korea)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
85
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
86 (define-coding-system-alias 'korean-euc 'euc-kr)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
87
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
88 ;; (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
89 ;; 'iso-2022-kr 2 ?k
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
90 ;; "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)."
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
91 ;; '(ascii (nil korean-ksc5601) nil nil
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
92 ;; nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
93 ;; designation-bol)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
94 ;; '((safe-charsets ascii korean-ksc5601)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
95 ;; (mime-charset . iso-2022-kr)))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
96
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
97 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
98 'iso-2022-kr 'iso2022
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
99 "Coding-System used for communication with mail in Korea."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
100 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
101 charset-g1 korean-ksc5601
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
102 force-g1-on-output t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
103 seven t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
104 lock-shift t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
105 mnemonic "Ko/7bit"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
106 eol-type lf))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
107
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
108 ;; (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
109
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
110 (set-language-info-alist
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
111 "Korean" '((setup-function . setup-korean-environment-internal)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
112 (exit-function . exit-korean-environment)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
113 (tutorial . "TUTORIAL.ko")
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
114 (charset korean-ksc5601)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
115 (coding-system euc-kr iso-2022-kr)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
116 (coding-priority euc-kr iso-2022-kr)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
117 (input-method . "korean-hangul")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
118 (features korea-util)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
119 (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B")
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
120 (documentation . "\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
121 The following key bindings are available while using Korean input methods:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
122 Shift-SPC: toggle-korean-input-mthod
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
123 Control-F9: quail-hangul-switch-symbol-ksc
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
124 F9: quail-hangul-switch-hanja")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
125 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
126
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
127 ;;; korean.el ends here