changeset 57728:8ce088246974

Use utf-translate-cjk-substitutable-p.
author Kenichi Handa <handa@m17n.org>
date Wed, 27 Oct 2004 06:03:43 +0000
parents c3945be39e09
children e369cf644334
files lisp/international/subst-big5.el lisp/international/subst-gb2312.el lisp/international/subst-jis.el lisp/international/subst-ksc.el
diffstat 4 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/subst-big5.el	Wed Oct 27 06:01:59 2004 +0000
+++ b/lisp/international/subst-big5.el	Wed Oct 27 06:03:43 2004 +0000
@@ -32,9 +32,9 @@
  (lambda (pair)
    (let ((unicode (car pair))
 	 (char (cadr pair)))
-     (if (or (and (>= unicode #x2e80) (<= unicode #xd7a3))
-	     (and (>= unicode #xff00) (<= unicode #xffef)))
-	 (puthash unicode  char ucs-unicode-to-mule-cjk))
+     ;; exclude non-supporting components from decode table
+     (if (utf-translate-cjk-substitutable-p unicode)
+	 (puthash unicode char ucs-unicode-to-mule-cjk))
      (puthash char unicode ucs-mule-cjk-to-unicode)))
  '((#xa7 ?¡±)
    (#xaf ?¡Â)
--- a/lisp/international/subst-gb2312.el	Wed Oct 27 06:01:59 2004 +0000
+++ b/lisp/international/subst-gb2312.el	Wed Oct 27 06:03:43 2004 +0000
@@ -32,9 +32,9 @@
  (lambda (pair)
    (let ((unicode (car pair))
 	 (char (cadr pair)))
-     (if (or (and (>= unicode #x2e80) (<= unicode #xd7a3))
-	     (and (>= unicode #xff00) (<= unicode #xffef)))
-	 (puthash unicode  char ucs-unicode-to-mule-cjk))
+     ;; exclude non-supporting components from decode table
+     (if (utf-translate-cjk-substitutable-p unicode)
+	 (puthash unicode char ucs-unicode-to-mule-cjk))
      (puthash char unicode ucs-mule-cjk-to-unicode)))
  '((#xa4 ?¡è)
    (#xa7 ?¡ì)
--- a/lisp/international/subst-jis.el	Wed Oct 27 06:01:59 2004 +0000
+++ b/lisp/international/subst-jis.el	Wed Oct 27 06:03:43 2004 +0000
@@ -45,11 +45,11 @@
 (mapc
  (lambda (pair)
    (let ((unicode (car pair))
-	 (char (cadr pair)))
-     ;; exclude non-CJK components from decode table
-     (if (or (and (>= unicode #x2e80) (<= unicode #xd7a3))
-	     (and (>= unicode #xff00) (<= unicode #xffef)))
-	 (puthash unicode  char ucs-unicode-to-mule-cjk))
+	 (char (cadr pair))
+	 (tail utf-translate-cjk-unicode-range))
+     ;; exclude non-supporting components from decode table
+     (if (utf-translate-cjk-substitutable-p unicode)
+	 (puthash unicode char ucs-unicode-to-mule-cjk))
      (puthash char unicode ucs-mule-cjk-to-unicode)))
  '(
    ;; jisx0208
--- a/lisp/international/subst-ksc.el	Wed Oct 27 06:01:59 2004 +0000
+++ b/lisp/international/subst-ksc.el	Wed Oct 27 06:03:43 2004 +0000
@@ -31,9 +31,9 @@
  (lambda (pair)
    (let ((unicode (car pair))
 	 (char (cadr pair)))
-     (if (or (and (>= unicode #x2e80) (<= unicode #xd7a3))
-	     (and (>= unicode #xff00) (<= unicode #xffef)))
-	 (puthash unicode  char ucs-unicode-to-mule-cjk))
+     ;; exclude non-supporting components from decode table
+     (if (utf-translate-cjk-substitutable-p unicode)
+	 (puthash unicode char ucs-unicode-to-mule-cjk))
      (puthash char unicode ucs-mule-cjk-to-unicode)))
  '((#xa1 ?¢®)
    (#xa4 ?¢´)