2001-07-15 19:53:53 +00:00
|
|
|
|
;;; cyrillic.el --- support for Cyrillic -*- coding: iso-2022-7bit; -*-
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
|
1997-06-26 21:08:49 +00:00
|
|
|
|
;; Licensed to the Free Software Foundation.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; Keywords: multilingual, Cyrillic
|
|
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
;; any later version.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
1997-02-23 09:20:52 +00:00
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
|
|
|
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
|
;; Boston, MA 02111-1307, USA.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
2001-03-30 21:17:48 +00:00
|
|
|
|
;; The character set ISO8859-5 is supported. See
|
|
|
|
|
;; http://www.ecma.ch/ecma1/STAND/ECMA-113.HTM. KOI-8 and
|
|
|
|
|
;; ALTERNATIVNYJ are converted to ISO8859-5 internally.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
1997-08-22 01:22:17 +00:00
|
|
|
|
;; Cyrillic (general)
|
|
|
|
|
|
2002-05-16 19:11:09 +00:00
|
|
|
|
;; ISO-8859-5 stuff
|
1997-02-26 12:27:06 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'cyrillic-iso-8bit
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Cyrillic script (MIME:ISO-8859-5)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?5
|
|
|
|
|
:charset-list '(iso-8859-5)
|
2002-05-14 15:36:38 +00:00
|
|
|
|
:mime-charset 'iso-8859-5)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-07-02 00:06:30 +00:00
|
|
|
|
(define-coding-system-alias 'iso-8859-5 'cyrillic-iso-8bit)
|
1997-06-18 13:03:19 +00:00
|
|
|
|
|
1997-08-22 01:22:17 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Cyrillic-ISO" '((charset iso-8859-5)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system cyrillic-iso-8bit)
|
|
|
|
|
(coding-priority cyrillic-iso-8bit)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-5)
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(input-method . "cyrillic-yawerty")
|
|
|
|
|
(unibyte-display . cyrillic-iso-8bit)
|
|
|
|
|
(features cyril-util)
|
1997-08-22 01:22:17 +00:00
|
|
|
|
(sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!")
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(documentation . "Support for Cyrillic ISO-8859-5."))
|
|
|
|
|
'("Cyrillic"))
|
1997-08-22 01:22:17 +00:00
|
|
|
|
|
2002-05-16 19:11:09 +00:00
|
|
|
|
;; KOI-8 stuff
|
1997-02-26 12:27:06 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'cyrillic-koi8
|
|
|
|
|
"KOI8 8-bit encoding for Cyrillic (MIME: KOI8-R)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
;; We used to use ?K. It is true that ?K is more strictly correct,
|
|
|
|
|
;; but it is also used for Korean. So people who use koi8 for
|
|
|
|
|
;; languages other than Russian will have to forgive us.
|
|
|
|
|
:mnemonic ?R
|
|
|
|
|
:charset-list '(koi8)
|
2002-05-14 15:36:38 +00:00
|
|
|
|
:mime-charset 'koi8-r)
|
1997-02-26 12:27:06 +00:00
|
|
|
|
|
1997-07-02 00:06:30 +00:00
|
|
|
|
(define-coding-system-alias 'koi8-r 'cyrillic-koi8)
|
|
|
|
|
(define-coding-system-alias 'koi8 'cyrillic-koi8)
|
2002-05-14 15:36:38 +00:00
|
|
|
|
(define-coding-system-alias 'cp878 'cyrillic-koi8)
|
1997-02-26 12:27:06 +00:00
|
|
|
|
|
1997-08-22 01:22:17 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Cyrillic-KOI8" `((charset koi8)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system cyrillic-koi8)
|
|
|
|
|
(coding-priority cyrillic-koi8)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . koi8)
|
1999-07-13 19:03:04 +00:00
|
|
|
|
(input-method . "cyrillic-jcuken")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(features cyril-util)
|
|
|
|
|
(unibyte-display . cyrillic-koi8)
|
1997-08-22 01:22:17 +00:00
|
|
|
|
(sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!")
|
1998-08-02 01:06:57 +00:00
|
|
|
|
(documentation . "Support for Cyrillic KOI8-R."))
|
1998-01-22 01:48:25 +00:00
|
|
|
|
'("Cyrillic"))
|
1997-08-22 01:22:17 +00:00
|
|
|
|
|
2002-05-16 19:11:09 +00:00
|
|
|
|
;;; ALTERNATIVNYJ stuff
|
1997-02-26 12:27:06 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'cyrillic-alternativnyj
|
|
|
|
|
"ALTERNATIVNYJ 8-bit encoding for Cyrillic."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?A
|
2002-05-14 15:36:38 +00:00
|
|
|
|
:charset-list '(alternativnyj)
|
|
|
|
|
:mime-charset 'cp866)
|
1997-02-26 12:27:06 +00:00
|
|
|
|
|
1997-07-02 00:06:30 +00:00
|
|
|
|
(define-coding-system-alias 'alternativnyj 'cyrillic-alternativnyj)
|
2002-05-14 15:36:38 +00:00
|
|
|
|
(define-coding-system-alias 'cp866 'cyrillic-alternativnyj)
|
1997-06-18 13:03:19 +00:00
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Cyrillic-ALT" `((charset alternativnyj)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system cyrillic-alternativnyj)
|
|
|
|
|
(coding-priority cyrillic-alternativnyj)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . alternativnyj)
|
1999-07-13 19:03:04 +00:00
|
|
|
|
(input-method . "cyrillic-jcuken")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(features cyril-util)
|
|
|
|
|
(unibyte-display . cyrillic-alternativnyj)
|
1997-08-22 01:22:17 +00:00
|
|
|
|
(sample-text . "Russian (,L@caaZXY(B) ,L7T`PRabRcYbU(B!")
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(documentation . "Support for Cyrillic ALTERNATIVNYJ."))
|
|
|
|
|
'("Cyrillic"))
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
2002-05-16 19:11:09 +00:00
|
|
|
|
(define-coding-system 'koi8-u
|
|
|
|
|
"KOI8-U 8-bit encoding for Cyrillic (MIME: KOI8-U)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?U
|
|
|
|
|
:charset-list '(koi8-u)
|
|
|
|
|
:mime-charset 'koi8-u)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'koi8-t
|
|
|
|
|
"KOI8-T 8-bit encoding for Cyrillic (MIME: KOI8-T)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(koi8-t)
|
|
|
|
|
:mime-charset 'koi8-t)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'windows-1251
|
|
|
|
|
"windows-1251 8-bit encoding for Cyrillic (MIME: WINDOWS-1251)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?b
|
|
|
|
|
:charset-list '(windows-1251)
|
|
|
|
|
:mime-charset 'windows-1251)
|
|
|
|
|
(define-coding-system-alias 'cp1251 'windows-1251)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'cp1125
|
|
|
|
|
"cp1125 8-bit encoding for Cyrillic (MIME: CP1125)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(cp1125))
|
|
|
|
|
(define-coding-system-alias 'ruscii 'cp1125)
|
|
|
|
|
;; Original name for cp1125, says Serhii Hlodin <hlodin@lutsk.bank.gov.ua>
|
|
|
|
|
(define-coding-system-alias 'cp866u 'cp1125)
|
|
|
|
|
|
2002-05-23 18:17:57 +00:00
|
|
|
|
(define-coding-system 'cp855
|
|
|
|
|
"DOS codepage 855 (Russian)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?D
|
|
|
|
|
:charset-list '(cp855)
|
|
|
|
|
:mime-charset 'cp855)
|
|
|
|
|
(define-coding-system-alias 'ibm855 'cp855)
|
|
|
|
|
|
2000-11-22 19:28:28 +00:00
|
|
|
|
(provide 'cyrillic)
|
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;; cyrillic.el ends here
|