changeset 89117:39a217f682b4

Don't set char width of CJK charsets generally. (korean-ksc5601): Fix ranges with symbol syntax.
author Dave Love <fx@gnu.org>
date Mon, 23 Sep 2002 14:03:06 +0000
parents e822de57aa31
children 4d1e00ad371c
files lisp/international/characters.el
diffstat 1 files changed, 21 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/characters.el	Thu Sep 19 00:40:09 2002 +0000
+++ b/lisp/international/characters.el	Mon Sep 23 14:03:06 2002 +0000
@@ -287,7 +287,9 @@
 (map-charset-chars #'modify-category-entry 'korean-ksc5601 ?h)
 
 (map-charset-chars #'modify-syntax-entry 'korean-ksc5601 "_" #x2121 #x227E)
-(map-charset-chars #'modify-syntax-entry 'korean-ksc5601 "_" #x2621 #x297E)
+(map-charset-chars #'modify-syntax-entry 'korean-ksc5601 "_" #x2621 #x277E)
+(map-charset-chars #'modify-syntax-entry 'korean-ksc5601 "_" #x2830 #x287E)
+(map-charset-chars #'modify-syntax-entry 'korean-ksc5601 "_" #x2930 #x297E)
 (map-charset-chars #'modify-category-entry 'korean-ksc5601 ?A #x2330 #x2339)
 (map-charset-chars #'modify-category-entry 'korean-ksc5601 ?A #x2341 #x235A)
 (map-charset-chars #'modify-category-entry 'korean-ksc5601 ?A #x2361 #x237A)
@@ -769,18 +771,24 @@
     (set-char-table-range char-width-table
 			  (cons (car elt) (cdr elt))
 			  2)))
-(map-charset-chars
- #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
- 'japanese-jisx0208)
-(map-charset-chars
- #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
- 'japanese-jisx0212)
-(map-charset-chars
- #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
- 'japanese-jisx0213-1)
-(map-charset-chars
- #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
- 'japanese-jisx0213-2)
+;; Fixme: Doing this affects non-CJK characters through unification,
+;; but presumably CJK users expect those characters to be
+;; double-width when using these charsets.
+;; (map-charset-chars
+;;  #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
+;;  'japanese-jisx0208)
+;; (map-charset-chars
+;;  #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
+;;  'japanese-jisx0212)
+;; (map-charset-chars
+;;  #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
+;;  'japanese-jisx0213-1)
+;; (map-charset-chars
+;;  #'(lambda (range ignore) (set-char-table-range char-width-table range 2))
+;;  'japanese-jisx0213-2)
+;; (map-charset-chars
+;;  (lambda (range ignore) (set-char-table-range char-width-table range 2))
+;;  'korean-ksc5601)
 
 ;; Other double width
 (map-charset-chars
@@ -795,9 +803,6 @@
 (map-charset-chars
  (lambda (range ignore) (set-char-table-range char-width-table range 2))
  'arabic-2-column)
-(map-charset-chars
- (lambda (range ignore) (set-char-table-range char-width-table range 2))
- 'korean-ksc5601)
 
 (optimize-char-table (standard-case-table))
 (optimize-char-table char-width-table)