aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1998-01-22 01:42:20 +0000
committerKenichi Handa1998-01-22 01:42:20 +0000
commit777cfce616ad8c16bb2844ccc7eac32b42b71ae4 (patch)
tree240614d797a9dc62f02bfef69b1169f548c48a74
parent54b226f7e59fd83c0f83dc0e76c6dac99d19a1c3 (diff)
downloademacs-777cfce616ad8c16bb2844ccc7eac32b42b71ae4.tar.gz
emacs-777cfce616ad8c16bb2844ccc7eac32b42b71ae4.zip
Put `prefered-coding-system'
property to each character set.
-rw-r--r--lisp/international/characters.el59
1 files changed, 58 insertions, 1 deletions
diff --git a/lisp/international/characters.el b/lisp/international/characters.el
index ab6bfec5f58..5f30a79c87e 100644
--- a/lisp/international/characters.el
+++ b/lisp/international/characters.el
@@ -80,7 +80,8 @@
80(define-category ?| "While filling, we can break a line at this character.") 80(define-category ?| "While filling, we can break a line at this character.")
81 81
82;; For indentation calculation. 82;; For indentation calculation.
83(define-category ?\ "This character counts as a space for indentation purposes.") 83(define-category ?
84 "This character counts as a space for indentation purposes.")
84 85
85;; Keep the followings for `kinsoku' processing. See comments in 86;; Keep the followings for `kinsoku' processing. See comments in
86;; kinsoku.el. 87;; kinsoku.el.
@@ -543,3 +544,59 @@
543 (?C . ?A) ; Chinese - Alpha numeric 544 (?C . ?A) ; Chinese - Alpha numeric
544 (?C . ?K) ; Chinese - Katakana 545 (?C . ?K) ; Chinese - Katakana
545 )) 546 ))
547
548
549;; For each character set, put the information of the most proper
550;; coding system to encode it by `prefered-coding-system' property.
551
552(let ((l '((latin-iso8859-1 . iso-latin-1)
553 (latin-iso8859-2 . iso-latin-2)
554 (latin-iso8859-3 . iso-latin-3)
555 (latin-iso8859-4 . iso-latin-4)
556 (thai-tis620 . thai-tis620)
557 (greek-iso8859-7 . greek-iso-8bit)
558 (arabic-iso8859-6 . iso-2022-7bit)
559 (hebrew-iso8859-8 . hebrew-iso-8bit)
560 (katakana-jisx0201 . japanese-shift-jis)
561 (latin-jisx0201 . japanese-shift-jis)
562 (cyrillic-iso8859-5 . cyrillic-iso-8bit)
563 (latin-iso8859-9 . iso-latin-5)
564 (japanese-jisx0208-1978 . iso-2022-jp)
565 (chinese-gb2312 . cn-gb-2312)
566 (japanese-jisx0208 . iso-2022-jp)
567 (korean-ksc5601 . iso-2022-kr)
568 (japanese-jisx0212 . iso-2022-jp)
569 (chinese-cns11643-1 . iso-2022-cn)
570 (chinese-cns11643-2 . iso-2022-cn)
571 (chinese-big5-1 . chinese-big5)
572 (chinese-big5-2 . chinese-big5)
573 (chinese-sisheng . iso-2022-7bit)
574 (ipa . iso-2022-7bit)
575 (vietnamese-viscii-lower . vietnamese-viscii)
576 (vietnamese-viscii-upper . vietnamese-viscii)
577 (arabic-digit . iso-2022-7bit)
578 (arabic-1-column . iso-2022-7bit)
579 (ascii-right-to-left . iso-2022-7bit)
580 (lao . lao)
581 (arabic-2-column . iso-2022-7bit)
582 (indian-is13194 . devanagari)
583 (indian-1-column . devanagari)
584 (tibetan-1-column . tibetan)
585 (ethiopic . iso-2022-jp)
586 (chinese-cns11643-3 . iso-2022-cn)
587 (chinese-cns11643-4 . iso-2022-cn)
588 (chinese-cns11643-5 . iso-2022-cn)
589 (chinese-cns11643-6 . iso-2022-cn)
590 (chinese-cns11643-7 . iso-2022-cn)
591 (indian-2-column . devanagari)
592 (tibetan . tibetan))))
593 (while l
594 (put-charset-property (car (car l)) 'prefered-coding-system (cdr (car l)))
595 (setq l (cdr l))))
596
597
598;;; Local Variables:
599;;; coding: iso-2022-7bit
600;;; End:
601
602;;; end of characters.el