leim-ext.el 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ;; leim-ext.el -- extra leim configuration -*- coding:utf-8; -*-
  2. ;; Copyright (C) 2004-2015 Free Software Foundation, Inc.
  3. ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
  4. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  5. ;; Registration Number H13PRO009
  6. ;; This file is part of GNU Emacs.
  7. ;; GNU Emacs is free software: you can redistribute it and/or modify
  8. ;; it under the terms of the GNU General Public License as published by
  9. ;; the Free Software Foundation, either version 3 of the License, or
  10. ;; (at your option) any later version.
  11. ;; GNU Emacs is distributed in the hope that it will be useful,
  12. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;; GNU General Public License for more details.
  15. ;; You should have received a copy of the GNU General Public License
  16. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  17. ;;; Commentary:
  18. ;; Makefile in this directory appends the contents of this file (only
  19. ;; such non-empty lines that don't begin with ';') to the generated
  20. ;; file leim-list.el.
  21. ;;; Code:
  22. (eval-after-load "quail/PY-b5"
  23. '(quail-defrule "ling2" ?○ nil t))
  24. ;; Enable inputting full-width space (U+3000).
  25. (eval-after-load "quail/Punct"
  26. '(quail-defrule " " ?  nil t))
  27. (eval-after-load "quail/Punct-b5"
  28. '(quail-defrule " " ?  nil t))
  29. (register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+"
  30. "Unicode input as hex in the form Uxxxx.")
  31. (register-input-method
  32. "korean-hangul"
  33. "UTF-8"
  34. 'hangul-input-method-activate
  35. "한2"
  36. "Hangul 2-Bulsik Input"
  37. 'hangul2-input-method
  38. "Input method: korean-hangul2 (mode line indicator:한2)\n\nHangul 2-Bulsik input method.")
  39. (register-input-method
  40. "korean-hangul3f"
  41. "UTF-8"
  42. 'hangul-input-method-activate
  43. "한3f"
  44. "Hangul 3-Bulsik final Input"
  45. 'hangul3-input-method
  46. "Input method: korean-hangul3 (mode line indicator:한3f)\n\nHangul 3-Bulsik final input method.")
  47. (register-input-method
  48. "korean-hangul390"
  49. "UTF-8"
  50. 'hangul-input-method-activate
  51. "한390"
  52. "Hangul 3-Bulsik 390 Input"
  53. 'hangul390-input-method
  54. "Input method: korean-hangul390 (mode line indicator:한390)\n\nHangul 3-Bulsik 390 input method.")
  55. (register-input-method
  56. "korean-hangul3"
  57. "UTF-8"
  58. 'hangul-input-method-activate
  59. "한390"
  60. "Hangul 3-Bulsik 390 Input"
  61. 'hangul390-input-method
  62. "Input method: korean-hangul390 (mode line indicator:한390)\n\nHangul 3-Bulsik 390 input method.")
  63. ;; Following lines are marked such that Makefile adds them to output.
  64. ;; leim-list-header adds "coding: utf-8"; we could move that here,
  65. ;; unless others are using that stuff to generate their own leim files.
  66. ;; TODO? Better to add leim-list-footer?
  67. ;;inc Local Variables:
  68. ;;inc no-byte-compile: t
  69. ;;inc version-control: never
  70. ;;inc no-update-autoloads: t
  71. ;;inc End:
  72. ;;;inc leim-list.el ends here
  73. ;;; leim-ext.el ends here