1
;;; wnn7egg-leim.el --- Egg/Wnn-related code for LEIM
2
;; Copyright (C) 2001 OMRON SOFTWARE Co., Ltd. <wnn-info@omronsoft.co.jp>
4
;; Shamelessly ripped off from
6
;; egg-leim.el --- Egg-related code for LEIM
7
;; Copyright (C) 1997 Stephen Turnbull <turnbull@sk.tsukuba.ac.jp>
8
;; Copyright (C) 1997 Free Software Foundation, Inc.
10
;; Shamelessly ripped off from
12
;; skk-leim.el --- SKK related code for LEIM
14
;; Murata Shuuichirou <mrt@mickey.ai.kyutech.ac.jp>
16
;; Author: OMRON SOFTWARE Co., Ltd. <wnn-info@omronsoft.co.jp>
17
;; Keywords: japanese, input method, LEIM, Wnn7
18
;; Last Modified: 2001/5/30 00:00:00
20
;; This program is free software; you can redistribute it and/or modify
21
;; it under the terms of the GNU General Public License as published by
22
;; the Free Software Foundation; either versions 2, or (at your option)
25
;; This program is distributed in the hope that it will be useful
26
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
27
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
;; GNU General Public License for more details.
30
;; You should have received a copy of the GNU General Public License
31
;; along with XEmacs, see the file COPYING. If not, write to the Free
32
;; Software Foundation Inc., 59 Temple Place - Suite 330, Boston,
33
;; MA 02111-1307, USA.
37
;; Add pointers to Egg documentation in LEIM format
39
(defvar wnn7-activate nil "T if wnn7egg is activeate.")
40
(make-variable-buffer-local 'wnn7-activate)
41
(set-default 'wnn7-activate nil)
43
(defun wnn7egg-activate (&optional name)
45
(require 'wnn7egg-cnv)
46
(setq inactivate-current-input-method-function 'wnn7egg-inactivate)
47
(setq wnn7egg-default-startup-file "eggrc-wnn7")
49
(setq wnn7-activate t);;;;
52
(defun wnn7egg-inactivate ()
53
(setq wnn7-activate nil);;;;
54
(cond (egg:*mode-on* (toggle-egg-mode))))
57
(or (and current-input-method
58
(string-match "japanese-egg-wnn7" current-input-method))
61
(register-input-method
62
'japanese-egg-wnn7 "Japanese"
64
"Wnn7EGG - an interface to the Wnn7 kana to kanji conversion program")
66
(provide 'wnn7egg-leim)
68
;;; wnn7egg-leim.el ends here