aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/language/japan-util.el12
2 files changed, 12 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1cb15fb252f..547d317a6bc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-11-13 Kenichi Handa <handa@m17n.org>
2
3 * language/japan-util.el: Make sure that the value of jisx0208
4 property is jisx0208 character.
5
12009-11-13 Dan Nicolaescu <dann@ics.uci.edu> 62009-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * international/mule.el (auto-coding-regexp-alist): Only purecopy 8 * international/mule.el (auto-coding-regexp-alist): Only purecopy
diff --git a/lisp/language/japan-util.el b/lisp/language/japan-util.el
index 96fd8957d20..e0e226866bc 100644
--- a/lisp/language/japan-util.el
+++ b/lisp/language/japan-util.el
@@ -109,10 +109,10 @@ HANKAKU-KATAKANA belongs to `japanese-jisx0201-kana'.")
109 (?@ ?@) 109 (?@ ?@)
110 ;; cp932-2-byte 110 ;; cp932-2-byte
111 (#x2015 ?-) (#xFF5E ?~) (#xFF0D ?-)) 111 (#x2015 ?-) (#xFF5E ?~) (#xFF0D ?-))
112 "Japanese JISX0208 symbol character table. 112 "Japanese JISX0208 and CP932 symbol character table.
113 Each element is of the form (SYMBOL ASCII HANKAKU), where SYMBOL 113 Each element is of the form (SYMBOL ASCII HANKAKU), where SYMBOL
114belongs to `japanese-jisx0208', ASCII belongs to `ascii', and HANKAKU 114belongs to `japanese-jisx0208' or `cp932', ASCII belongs to `ascii',
115belongs to `japanese-jisx0201-kana'.") 115and HANKAKU belongs to `japanese-jisx0201-kana'.")
116 116
117;; Put properties 'jisx0208, 'jisx0201, and 'ascii to each Japanese 117;; Put properties 'jisx0208, 'jisx0201, and 'ascii to each Japanese
118;; symbol and ASCII characters for conversion among them. 118;; symbol and ASCII characters for conversion among them.
@@ -125,11 +125,13 @@ belongs to `japanese-jisx0201-kana'.")
125 (if ascii 125 (if ascii
126 (progn 126 (progn
127 (put-char-code-property jisx0208 'ascii ascii) 127 (put-char-code-property jisx0208 'ascii ascii)
128 (put-char-code-property ascii 'jisx0208 jisx0208))) 128 (if (encode-char jisx0208 'japanese-jisx0208)
129 (put-char-code-property ascii 'jisx0208 jisx0208))))
129 (if jisx0201 130 (if jisx0201
130 (progn 131 (progn
131 (put-char-code-property jisx0208 'jisx0201 jisx0201) 132 (put-char-code-property jisx0208 'jisx0201 jisx0201)
132 (put-char-code-property jisx0201 'jisx0208 jisx0208))))) 133 (if (encode-char jisx0208 'japanese-jisx0208)
134 (put-char-code-property jisx0201 'jisx0208 jisx0208))))))
133 135
134(defconst japanese-alpha-numeric-table 136(defconst japanese-alpha-numeric-table
135 '((?0 . ?0) (?1 . ?1) (?2 . ?2) (?3 . ?3) (?4 . ?4) 137 '((?0 . ?0) (?1 . ?1) (?2 . ?2) (?3 . ?3) (?4 . ?4)