;;; yude-kkc.el --- Boiled-Egg like roman to kanaji converter ;; Copyright (C) 1996 MORIOKA Tomohiko ;; Author: MORIOKA Tomohiko ;; Version: $Id: yude-kkc.el,v 0.5 1996/11/12 09:04:30 morioka Exp $ ;; Keywords: input, Japanese, mule ;; This file is not part of GNU Emacs. ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation; either version 2, or (at ;; your option) any later version. ;; This program is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. ;;; Code: (require 'nabe) (require 'roman-to-kana) (require 'kkc) (defun yude-kkc-translate-region (start end) (let ((e (save-excursion (save-restriction (narrow-to-region start end) (roman-to-kana-translate-region start end) (point-max) )))) (kkc-region start e) )) (setq nabe-roman-to-kanji-function 'yude-kkc-translate-region) (setq nabe-roman-to-kana-function 'roman-to-kana-translate-region) ;;; @ end ;;; (provide 'yude-kkc) ;;; yude-kkc.el ends here