X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fmule%2Fjapanese.el;h=02ef1d3371cbe1f0365c54e7c229149a93b1464a;hb=HEAD;hp=60fc8b9625f34cc7e8dfd5c44453bf31fcb812d5;hpb=a5812bf2ff9a9cf40f4ff78dcb83f5b4c295bd18;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/mule/japanese.el b/lisp/mule/japanese.el index 60fc8b9..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 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) @@ -243,16 +253,17 @@ mnemonic "Ja/EUC" )) -(make-coding-system - 'euc-jisx0213 'iso2022 - "Coding-system of Japanese EUC based on JIS X 0213." - '(charset-g0 ascii - charset-g1 japanese-jisx0213-1 - charset-g2 katakana-jisx0201 - charset-g3 japanese-jisx0213-2 - short t - mnemonic "Ja/EUC0213" - )) +;; [tomo] Moved to mule-conf.el. +;; (make-coding-system +;; 'euc-jisx0213 'iso2022 +;; "Coding-system of Japanese EUC based on JIS X 0213." +;; '(charset-g0 ascii +;; charset-g1 japanese-jisx0213-1 +;; charset-g2 katakana-jisx0201 +;; charset-g3 japanese-jisx0213-2 +;; short t +;; mnemonic "Ja/EUC0213" +;; )) ;; (define-coding-system-alias 'euc-japan-1990 'japanese-iso-8bit) ;; (define-coding-system-alias 'euc-japan 'japanese-iso-8bit)