Nabe 0.2.
[elisp/nabe.git] / yude-kkc.el
1 ;;; yude-kkc.el --- Boiled-Egg like roman to kanaji converter
2
3 ;; Copyright (C) 1996 MORIOKA Tomohiko
4
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Version: $Id: yude-kkc.el,v 0.5 1996/11/12 09:04:30 morioka Exp $
7 ;; Keywords: input, Japanese, mule
8
9 ;; This file is not part of GNU Emacs.
10
11 ;; This program is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
15
16 ;; This program is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 ;; General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25
26 ;;; Code:
27
28 (require 'nabe)
29 (require 'roman-to-kana)
30 (require 'kkc)
31
32 (defun yude-kkc-translate-region (start end)
33   (let ((e (save-excursion
34              (save-restriction
35                (narrow-to-region start end)
36                (roman-to-kana-translate-region start end)
37                (point-max)
38                ))))
39     (kkc-region start e)
40     ))
41
42 (setq nabe-roman-to-kanji-function 'yude-kkc-translate-region)
43 (setq nabe-roman-to-kana-function 'roman-to-kana-translate-region)
44
45
46 ;;; @ end
47 ;;;
48
49 (provide 'yude-kkc)
50
51 ;;; yude-kkc.el ends here