X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fmule%2Fjapanese.el;h=02ef1d3371cbe1f0365c54e7c229149a93b1464a;hb=530c7c52cfe52565da24ba72a698f755fa8d9368;hp=5628f9fff74d499f208db8be33542fae194fd669;hpb=ed89c691911a39869ae2bc1d05405754f598f9e5;p=chise%2Fxemacs-chise.git diff --git a/lisp/mule/japanese.el b/lisp/mule/japanese.el index 5628f9f..02ef1d3 100644 --- a/lisp/mule/japanese.el +++ b/lisp/mule/japanese.el @@ -2,7 +2,7 @@ ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. ;; Licensed to the Free Software Foundation. -;; Copyright (C) 1997,1999,2002,2004 MORIOKA Tomohiko +;; Copyright (C) 1997,1999,2002,2004,2005 MORIOKA Tomohiko ;; Keywords: multilingual, Japanese @@ -97,8 +97,10 @@ "。" "\\)" "[ \t\n]*")) -(setq paragraph-start "^[  \t\n\f]") -(setq paragraph-separate "^[  \t\f]*$") + +;; allow paragraphs to start with a zenkaku space +(setq paragraph-start "[  \t\n\f]") +(setq paragraph-separate "[  \t\f]*$") ;; EGG specific setup (define-egg-environment 'japanese @@ -157,13 +159,21 @@ (make-coding-system 'iso-2022-jp 'iso2022 "Coding-system used for communication with mail and news in Japan." - '(charset-g0 ascii - short t - seven t - input-charset-conversion ((latin-jisx0201 ascii) - (japanese-jisx0208-1978 japanese-jisx0208)) - mnemonic "MULE/7bit" - )) + (let ((conf + '(charset-g0 ascii + short t + seven t + mnemonic "MULE/7bit"))) + (if (featurep 'utf-2000) + (list* 'ccs-priority-list + '(ascii + =jis-x0208@1983 =jis-x0208@1978 + latin-jisx0201) + conf) + (list* 'input-charset-conversion + '((latin-jisx0201 ascii) + (japanese-jisx0208-1978 japanese-jisx0208)) + conf)))) (define-coding-system-alias 'junet 'iso-2022-jp)