47726
|
1 ;;; korean.el --- support for Korean -*- coding: iso-2022-7bit; no-byte-compile: t -*-
|
17052
|
2
|
|
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
|
18377
|
4 ;; Licensed to the Free Software Foundation.
|
17052
|
5
|
|
6 ;; Keywords: multilingual, Korean
|
|
7
|
|
8 ;; This file is part of GNU Emacs.
|
|
9
|
|
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
11 ;; it under the terms of the GNU General Public License as published by
|
|
12 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
13 ;; any later version.
|
|
14
|
|
15 ;; GNU Emacs is distributed in the hope that it will be useful,
|
|
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18 ;; GNU General Public License for more details.
|
|
19
|
|
20 ;; You should have received a copy of the GNU General Public License
|
17071
|
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
23 ;; Boston, MA 02111-1307, USA.
|
17052
|
24
|
|
25 ;;; Commentary:
|
|
26
|
|
27 ;; For Korean, the character set KSC5601 is supported.
|
|
28
|
|
29 ;;; Code:
|
|
30
|
|
31 (make-coding-system
|
18203
|
32 'korean-iso-8bit 2 ?K
|
42152
|
33 "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)."
|
20739
|
34 '(ascii korean-ksc5601 nil nil
|
20157
|
35 nil ascii-eol ascii-cntl)
|
20739
|
36 '((safe-charsets ascii korean-ksc5601)
|
|
37 (mime-charset . euc-kr)))
|
17052
|
38
|
18520
|
39 (define-coding-system-alias 'euc-kr 'korean-iso-8bit)
|
|
40 (define-coding-system-alias 'euc-korea 'korean-iso-8bit)
|
17052
|
41
|
|
42 (make-coding-system
|
20739
|
43 'iso-2022-kr 2 ?k
|
18203
|
44 "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)."
|
17052
|
45 '(ascii (nil korean-ksc5601) nil nil
|
17098
|
46 nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil
|
20157
|
47 designation-bol)
|
20739
|
48 '((safe-charsets ascii korean-ksc5601)
|
|
49 (mime-charset . iso-2022-kr)))
|
17052
|
50
|
20739
|
51 (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr)
|
18203
|
52
|
17052
|
53 (set-language-info-alist
|
22988
|
54 "Korean" '((setup-function . setup-korean-environment-internal)
|
20157
|
55 (exit-function . exit-korean-environment)
|
21487
|
56 (tutorial . "TUTORIAL.ko")
|
20739
|
57 (charset korean-ksc5601)
|
|
58 (coding-system iso-2022-kr korean-iso-8bit)
|
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
diff
changeset
|
59 (input-method . "korean-hangul")
|
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
diff
changeset
|
60 (features korea-util)
|
20739
|
61 (coding-priority korean-iso-8bit iso-2022-kr)
|
17770
|
62 (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B")
|
20739
|
63 (documentation . "\
|
21509
|
64 The following key bindings are available while using Korean input methods:
|
20157
|
65 Shift-SPC: toggle-korean-input-mthod
|
20437
|
66 Control-F9: quail-hangul-switch-symbol-ksc
|
20157
|
67 F9: quail-hangul-switch-hanja")
|
|
68 ))
|
17052
|
69
|
33778
|
70 (provide 'korean)
|
|
71
|
17052
|
72 ;;; korean.el ends here
|