;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
;; Licensed to the Free Software Foundation.
-;; Copyright (C) 1997 MORIOKA Tomohiko
+;; Copyright (C) 1997,1999,2002,2004,2005 MORIOKA Tomohiko
;; Keywords: multilingual, Japanese
"\e$B!#\e(B"
"\\)"
"[ \t\n]*"))
-(setq paragraph-start "^[ \e$B!!\e(B\t\n\f]")
-(setq paragraph-separate "^[ \e$B!!\e(B\t\f]*$")
+
+;; allow paragraphs to start with a zenkaku space
+(setq paragraph-start "[ \e$B!!\e(B\t\n\f]")
+(setq paragraph-separate "[ \e$B!!\e(B\t\f]*$")
;; EGG specific setup
(define-egg-environment 'japanese
;; (setq egg-default-startup-file "eggrc-wnn")
(setq-default its:*current-map* (its:get-mode-map "roma-kana"))))
-;; stuff for providing gramatic processing of Japanese text
+;; stuff for providing grammatic processing of Japanese text
;; something like this should probably be created for all environments...
+;; #### Arrgh. This stuff should defvar'd in either fill.el or kinsoku.el.
+;; Then the language environment should set these things, probably buffer-
+;; locally.
(defvar aletter (concat "\\(" ascii-char "\\|" kanji-char "\\)"))
(defvar kanji-space-insertable (concat
ascii-alphanumeric kanji-kanji-char "\\|"
kanji-kanji-char ascii-alphanumeric ))
+;; #### will be moved to fill.el
(defvar space-insertable (concat " " aletter "\\|" kanji-space-insertable)
"Regexp for finding points that can have spaces inserted into them for justification")
\f
(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)
mnemonic "Ja/EUC"
))
+;; [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)
;; (define-coding-system-alias 'euc-jp 'japanese-iso-8bit)
shift_jis iso-2022-jp-2)
;; (input-method . "japanese")
(features japan-util)
- (sample-text . "Japanese (\e$BF|K\8l\e(B) \e$B$3$s$K$A$O\e(B, \e)IºÝÆÁÊ")\e-A
+ (sample-text . "Japanese (\e$BF|K\8l\e(B) \e$B$3$s$K$A$O\e(B, \e(I:]FAJ\e(B")
(documentation . t)))
;;; japanese.el ends here