Initial revision
[bpt/emacs.git] / lisp / language / cyrillic.el
1 ;;; cyrillic.el --- Support for languages which use Cyrillic characters
2
3 ;; Copyright (C) 1995 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
5
6 ;; Keywords: multilingual, Cyrillic
7
8 ;; This file is part of GNU Emacs.
9
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version.
14
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23
24 ;;; Commentary:
25
26 ;; The character set ISO8859-5 is supported.
27
28 ;;; Code:
29
30 (make-coding-system
31 'coding-system-iso-8859-5 2 ?5 "MIME ISO-8859-5"
32 '((ascii t) (cyrillic-iso8859-5 t) nil nil
33 nil ascii-eol ascii-cntl nil nil nil nil))
34
35 (register-input-method
36 "Cyrillic" '("quail-jcuken" quail-use-package "quail/cyrillic"))
37 (register-input-method
38 "Cyrillic" '("quail-macedonian" quail-use-package "quail/cyrillic"))
39 (register-input-method
40 "Cyrillic" '("quail-serbian" quail-use-package "quail/cyrillic"))
41 (register-input-method
42 "Cyrillic" '("quail-beylorussian" quail-use-package "quail/cyrillic"))
43 (register-input-method
44 "Cyrillic" '("quail-ukrainian" quail-use-package "quail/cyrillic"))
45 (register-input-method
46 "Cyrillic" '("quail-yawerty" quail-use-package "quail/cyrillic"))
47
48 (defun setup-cyrillic-environment ()
49 (setq primary-language "Cyrillic")
50
51 (setq coding-category-iso-8-1 'coding-system-iso-8859-5)
52
53 (set-coding-priority
54 '(coding-category-iso-7
55 coding-category-iso-8-1))
56
57 (setq-default buffer-file-coding-system 'coding-system-iso-8859-5)
58 (set-terminal-coding-system 'coding-system-iso-8859-5)
59 (set-keyboard-coding-system 'coding-system-iso-8859-5)
60
61 (setq default-input-method '("Cyrillic" . "quail-yawerty"))
62 )
63
64 (set-language-info-alist
65 "Cyrillic" '((setup-function . setup-cyrillic-environment)
66 (charset . (cyrillic-iso8859-5))
67 (coding-system . (coding-system-iso-8859-5))
68 (documentation . t)
69 (sample-text . "Russian (\e,L@caaZXY\e(B) \e,L7T`PRabRcYbU\e(B!")))
70
71 ;;; cyrillic.el ends here