Prefer UTF-8 in documentation.
[bpt/emacs.git] / lisp / language / korean.el
CommitLineData
48b9bb83 1;;; korean.el --- support for Korean -*- coding: utf-8 -*-
4ed46869 2
ab422c4d 3;; Copyright (C) 1998, 2001-2013 Free Software Foundation, Inc.
7976eda0 4;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
5df4f04c 5;; 2005, 2006, 2007, 2008, 2009, 2010, 2011
eaa61218
KH
6;; National Institute of Advanced Industrial Science and Technology (AIST)
7;; Registration Number H14PRO021
8f924df7
KH
8;; Copyright (C) 2003
9;; National Institute of Advanced Industrial Science and Technology (AIST)
10;; Registration Number H13PRO009
4ed46869
KH
11
12;; Keywords: multilingual, Korean
13
14;; This file is part of GNU Emacs.
15
4936186e 16;; GNU Emacs is free software: you can redistribute it and/or modify
4ed46869 17;; it under the terms of the GNU General Public License as published by
4936186e
GM
18;; the Free Software Foundation, either version 3 of the License, or
19;; (at your option) any later version.
4ed46869
KH
20
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.
25
26;; You should have received a copy of the GNU General Public License
4936186e 27;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
4ed46869
KH
28
29;;; Commentary:
30
31;; For Korean, the character set KSC5601 is supported.
32
33;;; Code:
34
e1915ab3
KH
35(define-coding-system 'korean-iso-8bit
36 "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)."
37 :coding-type 'iso-2022
38 :mnemonic ?K
39 :designation [ascii korean-ksc5601 nil nil]
40 :charset-list '(ascii korean-ksc5601)
d21363d3 41 :mime-charset 'euc-kr)
4ed46869 42
71eabd24
RS
43(define-coding-system-alias 'euc-kr 'korean-iso-8bit)
44(define-coding-system-alias 'euc-korea 'korean-iso-8bit)
4ed46869 45
e1915ab3
KH
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
49 :mnemonic ?k
50 :designation [ascii (nil korean-ksc5601) nil nil]
51 :flags '(ascii-at-eol ascii-at-cntl 7-bit designation locking-shift
52 designation-bol)
53 :charset-list '(ascii korean-ksc5601)
dd2c478d
KH
54 :mime-charset 'iso-2022-kr
55 :suitable-for-keyboard t)
4ed46869 56
a79a3c79 57(define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr)
4b9121fc 58
edfe155b
CY
59(define-coding-system 'korean-cp949
60 "CP949 (Microsoft Unified Hangul Code)"
61 :coding-type 'charset
62 :mnemonic ?K
63 :charset-list '(ascii cp949))
64
65(define-coding-system-alias 'cp949 'korean-cp949)
66
4ed46869 67(set-language-info-alist
abdd7298 68 "Korean" '((setup-function . setup-korean-environment-internal)
7b70edb4 69 (exit-function . exit-korean-environment)
789c1a0c 70 (iso639-language . ko)
e76351bc 71 (tutorial . "TUTORIAL.ko")
3f396bac
KH
72 (charset korean-ksc5601 cp949)
73 (coding-system iso-2022-kr korean-iso-8bit korean-cp949)
a564ccf9
KH
74 (input-method . "korean-hangul")
75 (features korea-util)
3f396bac 76 (coding-priority korean-iso-8bit korean-cp949 iso-2022-kr)
48b9bb83 77 (sample-text . "Hangul (한글) 안녕하세요, 안녕하십니까")
a79a3c79 78 (documentation . "\
5c7c11c3
KH
79The 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
83and the following key bindings are available within Korean input methods:
84 F9, Hangul_Hanja: hangul-to-hanja-conversion")
7b70edb4 85 ))
4ed46869 86
41da80b1
DL
87(provide 'korean)
88
4ed46869 89;;; korean.el ends here