Commit | Line | Data |
---|---|---|
0a10297a | 1 | ;;; korean.el --- support for Korean -*- coding: iso-2022-7bit; no-byte-compile: t -*- |
4ed46869 | 2 | |
4ed46869 | 3 | ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. |
fa526c4a | 4 | ;; Licensed to the Free Software Foundation. |
4ed46869 KH |
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 | |
369314dc KH |
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. | |
4ed46869 KH |
24 | |
25 | ;;; Commentary: | |
26 | ||
27 | ;; For Korean, the character set KSC5601 is supported. | |
28 | ||
29 | ;;; Code: | |
30 | ||
31 | (make-coding-system | |
4b9121fc | 32 | 'korean-iso-8bit 2 ?K |
5ef35063 | 33 | "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)." |
a79a3c79 | 34 | '(ascii korean-ksc5601 nil nil |
7b70edb4 | 35 | nil ascii-eol ascii-cntl) |
a79a3c79 KH |
36 | '((safe-charsets ascii korean-ksc5601) |
37 | (mime-charset . euc-kr))) | |
4ed46869 | 38 | |
71eabd24 RS |
39 | (define-coding-system-alias 'euc-kr 'korean-iso-8bit) |
40 | (define-coding-system-alias 'euc-korea 'korean-iso-8bit) | |
4ed46869 KH |
41 | |
42 | (make-coding-system | |
a79a3c79 | 43 | 'iso-2022-kr 2 ?k |
4b9121fc | 44 | "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)." |
4ed46869 | 45 | '(ascii (nil korean-ksc5601) nil nil |
a7f2c216 | 46 | nil ascii-eol ascii-cntl seven locking-shift nil nil nil nil nil |
7b70edb4 | 47 | designation-bol) |
a79a3c79 KH |
48 | '((safe-charsets ascii korean-ksc5601) |
49 | (mime-charset . iso-2022-kr))) | |
4ed46869 | 50 | |
a79a3c79 | 51 | (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr) |
4b9121fc | 52 | |
4ed46869 | 53 | (set-language-info-alist |
abdd7298 | 54 | "Korean" '((setup-function . setup-korean-environment-internal) |
7b70edb4 | 55 | (exit-function . exit-korean-environment) |
e76351bc | 56 | (tutorial . "TUTORIAL.ko") |
a79a3c79 KH |
57 | (charset korean-ksc5601) |
58 | (coding-system iso-2022-kr korean-iso-8bit) | |
a564ccf9 KH |
59 | (input-method . "korean-hangul") |
60 | (features korea-util) | |
a79a3c79 | 61 | (coding-priority korean-iso-8bit iso-2022-kr) |
710b5fab | 62 | (sample-text . "Hangul (\e$(CGQ1[\e(B) \e$(C>H3gGO<<?d\e(B, \e$(C>H3gGO=J4O1n\e(B") |
a79a3c79 | 63 | (documentation . "\ |
f38514a1 | 64 | The following key bindings are available while using Korean input methods: |
7b70edb4 | 65 | Shift-SPC: toggle-korean-input-mthod |
26db3a55 | 66 | Control-F9: quail-hangul-switch-symbol-ksc |
7b70edb4 KH |
67 | F9: quail-hangul-switch-hanja") |
68 | )) | |
4ed46869 | 69 | |
41da80b1 DL |
70 | (provide 'korean) |
71 | ||
ab5796a9 | 72 | ;;; arch-tag: ca7c7348-5ca3-4623-887a-7fd33d725d0e |
4ed46869 | 73 | ;;; korean.el ends here |