1 ;;; korean.el --- support for Korean -*- coding: utf-8 -*-
3 ;; Copyright (C) 1998, 2001-2015 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
5 ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011
6 ;; National Institute of Advanced Industrial Science and Technology (AIST)
7 ;; Registration Number H14PRO021
9 ;; National Institute of Advanced Industrial Science and Technology (AIST)
10 ;; Registration Number H13PRO009
12 ;; Keywords: multilingual, Korean
14 ;; This file is part of GNU Emacs.
16 ;; GNU Emacs is free software: you can redistribute it and/or modify
17 ;; it under the terms of the GNU General Public License as published by
18 ;; the Free Software Foundation, either version 3 of the License, or
19 ;; (at your option) any later version.
21 ;; GNU Emacs is distributed in the hope that it will be useful,
22 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;; GNU General Public License for more details.
26 ;; You should have received a copy of the GNU General Public License
27 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
31 ;; For Korean, the character set KSC5601 is supported.
35 (define-coding-system 'korean-iso-8bit
36 "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)."
37 :coding-type
'iso-2022
39 :designation
[ascii korean-ksc5601 nil nil
]
40 :charset-list
'(ascii korean-ksc5601
)
41 :mime-charset
'euc-kr
)
43 (define-coding-system-alias 'euc-kr
'korean-iso-8bit
)
44 (define-coding-system-alias 'euc-korea
'korean-iso-8bit
)
46 (define-coding-system 'iso-2022-kr
47 "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)."
48 :coding-type
'iso-2022
50 :designation
[ascii
(nil korean-ksc5601
) nil nil
]
51 :flags
'(ascii-at-eol ascii-at-cntl
7-bit designation locking-shift
53 :charset-list
'(ascii korean-ksc5601
)
54 :mime-charset
'iso-2022-kr
55 :suitable-for-keyboard t
)
57 (define-coding-system-alias 'korean-iso-7bit-lock
'iso-2022-kr
)
59 (define-coding-system 'korean-cp949
60 "CP949 (Microsoft Unified Hangul Code)"
63 :charset-list
'(ascii cp949
))
65 (define-coding-system-alias 'cp949
'korean-cp949
)
67 (set-language-info-alist
68 "Korean" '((setup-function . setup-korean-environment-internal
)
69 (exit-function . exit-korean-environment
)
70 (iso639-language . ko
)
71 (tutorial .
"TUTORIAL.ko")
72 (charset korean-ksc5601 cp949
)
73 (coding-system iso-2022-kr korean-iso-8bit korean-cp949
)
74 (input-method .
"korean-hangul")
76 (coding-priority korean-iso-8bit korean-cp949 iso-2022-kr
)
77 (sample-text .
"Hangul (한글) 안녕하세요, 안녕하십니까")
79 The following key bindings are available for controlling Korean input methods:
80 Shift-SPC, Hangul: toggle-korean-input-method
81 Control-F9: quail-hangul-switch-symbol-ksc
82 F9: quail-hangul-switch-hanja
83 and the following key bindings are available within Korean input methods:
84 F9, Hangul_Hanja: hangul-to-hanja-conversion")
89 ;;; korean.el ends here