[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/lisp/language japan-util.el
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] emacs/lisp/language japan-util.el |
Date: |
Fri, 13 Nov 2009 06:20:52 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kenichi Handa <handa> 09/11/13 06:20:52
Modified files:
lisp/language : japan-util.el
Log message:
Make sure that the value of jisx0208 property is jisx0208 character.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/language/japan-util.el?cvsroot=emacs&r1=1.50&r2=1.51
Patches:
Index: japan-util.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/language/japan-util.el,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -b -r1.50 -r1.51
--- japan-util.el 31 Oct 2009 02:38:38 -0000 1.50
+++ japan-util.el 13 Nov 2009 06:20:52 -0000 1.51
@@ -109,10 +109,10 @@
(?@ ?@)
;; cp932-2-byte
(#x2015 ?-) (#xFF5E ?~) (#xFF0D ?-))
- "Japanese JISX0208 symbol character table.
+ "Japanese JISX0208 and CP932 symbol character table.
Each element is of the form (SYMBOL ASCII HANKAKU), where SYMBOL
-belongs to `japanese-jisx0208', ASCII belongs to `ascii', and HANKAKU
-belongs to `japanese-jisx0201-kana'.")
+belongs to `japanese-jisx0208' or `cp932', ASCII belongs to `ascii',
+and HANKAKU belongs to `japanese-jisx0201-kana'.")
;; Put properties 'jisx0208, 'jisx0201, and 'ascii to each Japanese
;; symbol and ASCII characters for conversion among them.
@@ -125,11 +125,13 @@
(if ascii
(progn
(put-char-code-property jisx0208 'ascii ascii)
- (put-char-code-property ascii 'jisx0208 jisx0208)))
+ (if (encode-char jisx0208 'japanese-jisx0208)
+ (put-char-code-property ascii 'jisx0208 jisx0208))))
(if jisx0201
(progn
(put-char-code-property jisx0208 'jisx0201 jisx0201)
- (put-char-code-property jisx0201 'jisx0208 jisx0208)))))
+ (if (encode-char jisx0208 'japanese-jisx0208)
+ (put-char-code-property jisx0201 'jisx0208 jisx0208))))))
(defconst japanese-alpha-numeric-table
'((?0 . ?0) (?1 . ?1) (?2 . ?2) (?3 . ?3)
(?4 . ?4)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs/lisp/language japan-util.el,
Kenichi Handa <=