;;; Code:
+(defvar sentence-end-save nil)
+
;;;###autoload
(defun setup-japanese-environment ()
"Setup multilingual environment (MULE) for Japanese."
(if (eq system-type 'ms-dos)
(prefer-coding-system 'japanese-shift-jis))
(setq default-file-name-coding-system 'japanese-iso-8bit)
- (setq default-input-method "japanese"))
+ (setq default-input-method "japanese")
+ (setq sentence-end-save sentence-end)
+ (setq sentence-end (concat sentence-end "\\|[\e$B!#!)!*\e(B]")))
+
+(defun exit-japanese-environment ()
+ (setq sentence-end sentence-end-save))
(defconst japanese-kana-table
'((?\e$B$"\e(B ?\e$B%"\e(B ?\e(I1\e(B) (?\e$B$$\e(B ?\e$B%$\e(B ?\e(I2\e(B) (?\e$B$&\e(B ?\e$B%&\e(B ?\e(I3\e(B) (?\e$B$(\e(B ?\e$B%(\e(B ?\e(I4\e(B) (?\e$B$*\e(B ?\e$B%*\e(B ?\e(I5\e(B)