;; Copyright (C) 1995,1996 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Id: emu-e19.el,v 7.40 1996/10/01 13:28:03 morioka Exp $
+;; Version: $Id: emu-e19.el,v 7.42 1996/12/10 14:41:46 morioka Exp $
;; Keywords: emulation, compatibility, mule, Latin-1
-;; This file is part of tl (Tiny Library).
+;; This file is part of emu.
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;;;
(defconst charset-ascii 0 "Character set of ASCII")
-(defconst charset-latin-1 129 "Character set of ISO-8859-1")
+(defconst charset-latin-iso8859-1 129 "Character set of ISO-8859-1")
(defun charset-description (charset)
"Return description of CHARSET. [emu-e19.el]"
(if (< charset 128)
(documentation-property 'charset-ascii 'variable-documentation)
- (documentation-property 'charset-latin-1 'variable-documentation)
+ (documentation-property 'charset-latin-iso8859-1 'variable-documentation)
))
(defun charset-registry (charset)
"Return a list of charsets in the string.
\[emu-e19.el; Mule emulating function]"
(if (string-match "[\200-\377]" str)
- (list lc-ltn1)
+ (list charset-latin-iso8859-1)
))
(defalias 'find-non-ascii-charset-string 'find-charset-string)
(goto-char start)
(re-search-forward "[\200-\377]" nil t)
))
- (list lc-ltn1)
+ (list charset-latin-iso8859-1)
))
(defalias 'find-non-ascii-charset-region 'find-charset-region)
-;;; @@ for old MULE emulation
-;;;
-
-(defconst lc-ascii 0)
-(defconst lc-ltn1 129)
-
;;; @ coding-system
;;;
\[emu-e19.el; XEmacs 20 emulating function]"
(if (< chr 128)
charset-ascii
- charset-latin-1))
+ charset-latin-iso8859-1))
(defun char-bytes (char)
"Return number of bytes a character in CHAR occupies in a buffer.
;; Copyright (C) 1994,1995,1996 MORIOKA Tomohiko
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Id: emu-x20.el,v 7.40 1996/10/19 14:35:37 morioka Exp $
+;; Version: $Id: emu-x20.el,v 7.43 1996/12/07 06:07:15 morioka Exp $
;; Keywords: emulation, compatibility, Mule, XEmacs
;; This file is part of tl (Tiny Library).
)))
-;;; @ character set
+;;; @ graphic character set
;;;
(defalias 'charset-description 'charset-doc-string)
(delq 'ascii (charsets-in-region start end))
)
-;;; @@ for Mule emulation
-;;;
-
-(defconst lc-ascii 'ascii)
-(defconst lc-ltn1 'latin-1)
-(defconst lc-ltn2 'latin-2)
-(defconst lc-ltn3 'latin-3)
-(defconst lc-ltn4 'latin-4)
-(defconst lc-crl 'cyrillic)
-(defconst lc-arb 'arabic)
-(defconst lc-grk 'greek)
-(defconst lc-hbw 'hebrew)
-(defconst lc-ltn5 'latin-5)
-(defconst lc-jp 'japanese)
-(defconst lc-jp2 'japanese-2)
-(defconst lc-kr 'korean)
-(defconst lc-big5-1 'chinese-big5-1)
-(defconst lc-big5-2 'chinese-big5-2)
-(defconst lc-cn 'chinese-gb)
-(defconst lc-cns1 'chinese-cns-1)
-(defconst lc-cns2 'chinese-cns-2)
-(defconst lc-cns3 'chinese-cns-3)
-(defconst lc-cns4 'chinese-cns-4)
-(defconst lc-cns5 'chinese-cns-5)
-(defconst lc-cns6 'chinese-cns-6)
-(defconst lc-cns7 'chinese-cns-7)
-
;;; @ coding-system
;;;
-(defconst *noconv* 'noconv)
+(defconst *noconv* 'no-conversion)
(defconst *ctext* 'ctext)
(defconst *hz* 'hz)
(defconst *big5* 'big5)
,@body))
(defmacro as-binary-input-file (&rest body)
- `(let ((file-coding-system-for-read 'noconv))
+ `(let ((file-coding-system-for-read 'no-conversion))
,@body))
(defvar charsets-mime-charset-alist
'(((ascii) . us-ascii)
- ((ascii latin-1) . iso-8859-1)
- ((ascii latin-2) . iso-8859-2)
- ((ascii latin-3) . iso-8859-3)
- ((ascii latin-4) . iso-8859-4)
-;;; ((ascii cyrillic) . iso-8859-5)
- ((ascii cyrillic) . koi8-r)
- ((ascii arabic) . iso-8859-6)
- ((ascii greek) . iso-8859-7)
- ((ascii hebrew) . iso-8859-8)
- ((ascii latin-5) . iso-8859-9)
- ((ascii japanese-old japanese) . iso-2022-jp)
- ((ascii korean) . euc-kr)
+ ((ascii latin-iso8859-1) . iso-8859-1)
+ ((ascii latin-iso8859-2) . iso-8859-2)
+ ((ascii latin-iso8859-3) . iso-8859-3)
+ ((ascii latin-iso8859-4) . iso-8859-4)
+;;; ((ascii cyrillic-iso8859-5) . iso-8859-5)
+ ((ascii cyrillic-iso8859-5) . koi8-r)
+ ((ascii arabic-iso8859-6) . iso-8859-6)
+ ((ascii greek-iso8859-7) . iso-8859-7)
+ ((ascii hebrew-iso8859-8) . iso-8859-8)
+ ((ascii latin-iso8859-9) . iso-8859-9)
+ ((ascii japanese-jisx0208-1978 japanese-jisx0208) . iso-2022-jp)
+ ((ascii korean-ksc5601) . euc-kr)
((ascii chinese-big5-1 chinese-big5-2) . big5)
- ((ascii japanese-old chinese-gb japanese korean
- japanese-2 latin-1 greek) . iso-2022-jp-2)
- ((ascii japanese-old chinese-gb japanese korean
- japanese-2 chinese-cns-1 chinese-cns-2
- latin-1 greek) . iso-2022-int-1)
+ ((ascii japanese-jisx0208-1978 chinese-gb
+ japanese-jisx0208 korean-ksc5601
+ japanese-jisx0212 latin-iso8859-1
+ greek-iso8859-7) . iso-2022-jp-2)
+ ((ascii japanese-jisx0208-1978 chinese-gb2312
+ japanese-jisx0208 korean-ksc5601
+ japanese-jisx0212
+ chinese-cns11643-1 chinese-cns11643-2
+ latin-iso8859-1 greek-iso8859-7) . iso-2022-int-1)
))
(defvar default-mime-charset 'iso-2022-int-1)