korean.el 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ;;; korean.el --- support for Korean -*- coding: iso-2022-7bit; no-byte-compile: t -*-
  2. ;; Copyright (C) 1998, 2001-2012 Free Software Foundation, Inc.
  3. ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  4. ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011
  5. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  6. ;; Registration Number H14PRO021
  7. ;; Copyright (C) 2003
  8. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  9. ;; Registration Number H13PRO009
  10. ;; Keywords: multilingual, Korean
  11. ;; This file is part of GNU Emacs.
  12. ;; GNU Emacs is free software: you can redistribute it and/or modify
  13. ;; it under the terms of the GNU General Public License as published by
  14. ;; the Free Software Foundation, either version 3 of the License, or
  15. ;; (at your option) any later version.
  16. ;; GNU Emacs is distributed in the hope that it will be useful,
  17. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. ;; GNU General Public License for more details.
  20. ;; You should have received a copy of the GNU General Public License
  21. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  22. ;;; Commentary:
  23. ;; For Korean, the character set KSC5601 is supported.
  24. ;;; Code:
  25. (define-coding-system 'korean-iso-8bit
  26. "ISO 2022 based EUC encoding for Korean KSC5601 (MIME:EUC-KR)."
  27. :coding-type 'iso-2022
  28. :mnemonic ?K
  29. :designation [ascii korean-ksc5601 nil nil]
  30. :charset-list '(ascii korean-ksc5601)
  31. :mime-charset 'euc-kr)
  32. (define-coding-system-alias 'euc-kr 'korean-iso-8bit)
  33. (define-coding-system-alias 'euc-korea 'korean-iso-8bit)
  34. (define-coding-system 'iso-2022-kr
  35. "ISO 2022 based 7-bit encoding for Korean KSC5601 (MIME:ISO-2022-KR)."
  36. :coding-type 'iso-2022
  37. :mnemonic ?k
  38. :designation [ascii (nil korean-ksc5601) nil nil]
  39. :flags '(ascii-at-eol ascii-at-cntl 7-bit designation locking-shift
  40. designation-bol)
  41. :charset-list '(ascii korean-ksc5601)
  42. :mime-charset 'iso-2022-kr
  43. :suitable-for-keyboard t)
  44. (define-coding-system-alias 'korean-iso-7bit-lock 'iso-2022-kr)
  45. (define-coding-system 'korean-cp949
  46. "CP949 (Microsoft Unified Hangul Code)"
  47. :coding-type 'charset
  48. :mnemonic ?K
  49. :charset-list '(ascii cp949))
  50. (define-coding-system-alias 'cp949 'korean-cp949)
  51. (set-language-info-alist
  52. "Korean" '((setup-function . setup-korean-environment-internal)
  53. (exit-function . exit-korean-environment)
  54. (iso639-language . ko)
  55. (tutorial . "TUTORIAL.ko")
  56. (charset korean-ksc5601 cp949)
  57. (coding-system iso-2022-kr korean-iso-8bit korean-cp949)
  58. (input-method . "korean-hangul")
  59. (features korea-util)
  60. (coding-priority korean-iso-8bit korean-cp949 iso-2022-kr)
  61. (sample-text . "Hangul ($(CGQ1[(B) $(C>H3gGO<<?d(B, $(C>H3gGO=J4O1n(B")
  62. (documentation . "\
  63. The following key bindings are available for controlling Korean input methods:
  64. Shift-SPC, Hangul: toggle-korean-input-method
  65. Control-F9: quail-hangul-switch-symbol-ksc
  66. F9: quail-hangul-switch-hanja
  67. and the following key bindings are available within Korean input methods:
  68. F9, Hangul_Hanja: hangul-to-hanja-conversion")
  69. ))
  70. (provide 'korean)
  71. ;;; korean.el ends here