changeset 106761:8e1704b5a4b3

international/fontset.el (build-default-fontset-data): Exclude characters in scripts kana, hangul, han, or cjk-misc.
author Kenichi Handa <handa@m17n.org>
date Fri, 08 Jan 2010 10:46:22 +0900
parents a9df81470f83
children 19b3c3f93cd1
files lisp/ChangeLog lisp/international/fontset.el
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jan 08 09:46:18 2010 +0900
+++ b/lisp/ChangeLog	Fri Jan 08 10:46:22 2010 +0900
@@ -1,3 +1,8 @@
+2010-01-08  Kenichi Handa  <handa@m17n.org>
+
+	* international/fontset.el (build-default-fontset-data): Exclude
+	characters in scripts kana, hangul, han, or cjk-misc.
+
 2010-01-06  Jan Djärv  <jan.h.d@swipnet.se>
 
 	* font-setting.el (font-setting-change-default-font): Use user-spec
--- a/lisp/international/fontset.el	Fri Jan 08 09:46:18 2010 +0900
+++ b/lisp/international/fontset.el	Fri Jan 08 10:46:22 2010 +0900
@@ -361,8 +361,10 @@
 	     (let ((from (car range)) (to (cdr range)))
 	       (if (< to #x110000)
 		   (while (<= from to)
-		     (aset cjk-table from
-			   (logior (or (aref cjk-table from) 0) mask))
+		     (or (memq (aref char-script-table from)
+			       '(kana hangul han cjk-misc))
+			 (aset cjk-table from
+			       (logior (or (aref cjk-table from) 0) mask)))
 		     (setq from (1+ from))))))
 	 (nth 1 elt) nil (nth 2 elt) (nth 3 elt)))
       (setq i (1+ i)))