Remove non-free old and crusty clearcase pkg
[packages] / mule-packages / egg-its / egg-kwnn-leim.el
1 ;;; egg-kwnn-leim.el --- Egg/CWnn-related code for LEIM
2
3 ;; Copyright (C) 1997 Stephen Turnbull <turnbull@sk.tsukuba.ac.jp>
4 ;; Copyright (C) 1997 Free Software Foundation, Inc.
5 ;;
6 ;; Shamelessly ripped off from
7 ;;
8 ;; skk-leim.el --- SKK related code for LEIM
9 ;; Copyright (C) 1997
10 ;; Murata Shuuichirou <mrt@mickey.ai.kyutech.ac.jp>
11 ;;
12 ;; Author: Stephen Turnbull <turnbull@sk.tsukuba.ac.jp>
13 ;; Version: egg-leim.el,v 1.1 1997/10/27 09:59:23 steve Exp steve
14 ;; Keywords: japanese, input method, LEIM
15 ;; Last Modified: 1997/10/27 09:59:23
16
17 ;; This program is free software; you can redistribute it and/or modify
18 ;; it under the terms of the GNU General Public License as published by
19 ;; the Free Software Foundation; either versions 2, or (at your option)
20 ;; any later version.
21
22 ;; This program is distributed in the hope that it will be useful
23 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25 ;; GNU General Public License for more details.
26
27 ;; You should have received a copy of the GNU General Public License
28 ;; along with XEmacs, see the file COPYING.  If not, write to the Free
29 ;; Software Foundation Inc., 59 Temple Place - Suite 330, Boston,
30 ;; MA 02111-1307, USA.
31
32 ;;; TODO
33 ;;
34 ;;  Add pointers to Egg documentation in LEIM format
35
36 ;;;###autoload
37 (defun egg-kwnn-activate (&optional name)
38   (if (featurep 'wnn)
39       (require 'egg)
40     (error "Wnn is not built into this XEmacs"))
41   (setq inactivate-current-input-method-function 'egg-kwnn-inactivate)
42   (setq egg-default-startup-file "eggrc-wnn")
43   (require 'egg-wnn)
44   (let ((func (get 'korean 'set-egg-environ)))
45     (when func
46       (funcall func)))
47   (egg-mode)
48   (toggle-egg-mode))
49
50 ;;;###autoload
51 (defun egg-kwnn-inactivate ()
52   (cond (egg:*mode-on* (toggle-egg-mode))))
53
54 ;;;###autoload
55 (when (and (featurep 'mule) (featurep 'wnn))
56   (register-input-method
57    'korean-egg "Korean"
58    'egg-kwnn-activate nil
59    "EGG - an interface to the kWnn Korean conversion program" ))
60
61 (provide 'egg-kwnn-leim)
62
63 ;;; egg-kwnn-leim.el ends here