From 9366993ca32973c78d0cece8aac9755b8e8c2fc0 Mon Sep 17 00:00:00 2001 From: tomo Date: Fri, 25 Nov 2011 17:22:15 +0000 Subject: [PATCH] Add code to convert `=>>adobe-japan1' to `=>>adobe-japan1-{0..6}'. --- lisp/utf-2000/maps-conf.el | 67 ++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/lisp/utf-2000/maps-conf.el b/lisp/utf-2000/maps-conf.el index 388b83e..f95a223 100644 --- a/lisp/utf-2000/maps-conf.el +++ b/lisp/utf-2000/maps-conf.el @@ -216,36 +216,37 @@ nil) '=>jis-x0208) -(map-char-attribute - (lambda (c v) - (cond - ((<= v 8283) - (remove-char-attribute c '=>>>adobe-japan1) - (put-char-attribute c '=>>>adobe-japan1-0 v) - ) - ((<= v 8358) - (remove-char-attribute c '=>>>adobe-japan1) - (put-char-attribute c '=>>>adobe-japan1-1 v) - ) - ((<= v 8719) - (remove-char-attribute c '=>>>adobe-japan1) - (put-char-attribute c '=>>>adobe-japan1-2 v) - ) - ((<= v 9353) - (remove-char-attribute c '=>>>adobe-japan1) - (put-char-attribute c '=>>>adobe-japan1-3 v) - ) - ((<= v 15443) - (remove-char-attribute c '=>>>adobe-japan1) - (put-char-attribute c '=>>>adobe-japan1-4 v) - ) - ((<= v 20316) - (remove-char-attribute c '=>>>adobe-japan1) - (put-char-attribute c '=>>>adobe-japan1-5 v) - ) - ((<= v 23057) - (remove-char-attribute c '=>>>adobe-japan1) - (put-char-attribute c '=>>>adobe-japan1-6 v) - )) - nil) - '=>>>adobe-japan1) +(dolist (aj1-f '(=>>>adobe-japan1 =>>adobe-japan1)) + (map-char-attribute + (lambda (c v) + (cond + ((<= v 8283) + (remove-char-attribute c aj1-f) + (put-char-attribute c (intern (format "%s-0" aj1-f)) v) + ) + ((<= v 8358) + (remove-char-attribute c aj1-f) + (put-char-attribute c (intern (format "%s-1" aj1-f)) v) + ) + ((<= v 8719) + (remove-char-attribute c aj1-f) + (put-char-attribute c (intern (format "%s-2" aj1-f)) v) + ) + ((<= v 9353) + (remove-char-attribute c aj1-f) + (put-char-attribute c (intern (format "%s-3" aj1-f)) v) + ) + ((<= v 15443) + (remove-char-attribute c aj1-f) + (put-char-attribute c (intern (format "%s-4" aj1-f)) v) + ) + ((<= v 20316) + (remove-char-attribute c aj1-f) + (put-char-attribute c (intern (format "%s-5" aj1-f)) v) + ) + ((<= v 23057) + (remove-char-attribute c aj1-f) + (put-char-attribute c (intern (format "%s-6" aj1-f)) v) + )) + nil) + aj1-f)) -- 1.7.10.4