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