Mercurial > emacs
comparison lisp/international/ucs-tables.el @ 49294:d85a11253dd2
Redo 8859-6 change in the right
place.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 17 Jan 2003 13:59:17 +0000 |
parents | 1b936b315f3d |
children | 0d8b17d428b5 |
comparison
equal
deleted
inserted
replaced
49293:41213ea7b9d6 | 49294:d85a11253dd2 |
---|---|
1095 ;; Note: Here, using decode-char is safe because | 1095 ;; Note: Here, using decode-char is safe because |
1096 ;; utf-fragment-on-decoding is by default nil, thus the translation | 1096 ;; utf-fragment-on-decoding is by default nil, thus the translation |
1097 ;; table `utf-translation-table-for-decode' does nothing. | 1097 ;; table `utf-translation-table-for-decode' does nothing. |
1098 | 1098 |
1099 ;; Convert the lists to the basic char tables. | 1099 ;; Convert the lists to the basic char tables. |
1100 (dolist (n (list 15 14 9 8 7 5 4 3 2 1)) | 1100 (dolist (n (list 15 14 9 8 7 6 5 4 3 2 1)) |
1101 (let ((alist (symbol-value (intern (format "ucs-8859-%d-alist" n))))) | 1101 (let ((alist (symbol-value (intern (format "ucs-8859-%d-alist" n))))) |
1102 (dolist (pair alist) | 1102 (dolist (pair alist) |
1103 (let ((mule (car pair)) | 1103 (let ((mule (car pair)) |
1104 (uc (cdr pair)) | 1104 (uc (cdr pair)) |
1105 (mu (decode-char 'ucs (cdr pair)))) | 1105 (mu (decode-char 'ucs (cdr pair)))) |
1109 (aset ucs-mule-8859-to-mule-unicode mule mu) | 1109 (aset ucs-mule-8859-to-mule-unicode mule mu) |
1110 (aset ucs-mule-to-mule-unicode mule mu))))) | 1110 (aset ucs-mule-to-mule-unicode mule mu))))) |
1111 | 1111 |
1112 ;; Derive tables that can be used as per-coding-system | 1112 ;; Derive tables that can be used as per-coding-system |
1113 ;; `translation-table-for-encode's. | 1113 ;; `translation-table-for-encode's. |
1114 ;; N.B., there's no 8859-6 coding system. | |
1114 (dolist (n (list 15 14 9 8 7 5 4 3 2 1)) | 1115 (dolist (n (list 15 14 9 8 7 5 4 3 2 1)) |
1115 (let* ((alist (symbol-value (intern (format "ucs-8859-%d-alist" n)))) | 1116 (let* ((alist (symbol-value (intern (format "ucs-8859-%d-alist" n)))) |
1116 (encode-translator (set (intern (format "ucs-8859-%d-encode-table" | 1117 (encode-translator (set (intern (format "ucs-8859-%d-encode-table" |
1117 n)) | 1118 n)) |
1118 (make-translation-table))) | 1119 (make-translation-table))) |