70
|
1 ;;; cyrillic-hooks.el --- pre-loaded support for Cyrillic.
|
|
2
|
|
3 ;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc.
|
|
4 ;; Copyright (C) 1995 Amdahl Corporation.
|
|
5 ;; Copyright (C) 1995 Sun Microsystems.
|
|
6
|
|
7 ;; This file is part of XEmacs.
|
|
8
|
|
9 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
10 ;; under the terms of the GNU General Public License as published by
|
|
11 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
12 ;; any later version.
|
|
13
|
|
14 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
17 ;; General Public License for more details.
|
|
18
|
|
19 ;; You should have received a copy of the GNU General Public License
|
|
20 ;; along with XEmacs; see the file COPYING. If not, write to the
|
|
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 ;; Boston, MA 02111-1307, USA.
|
|
23
|
|
24 ;;; Synched up with: Mule 2.3.
|
|
25
|
|
26 ;; For syntax of Cyrillic
|
74
|
27 (modify-syntax-entry 'cyrillic-iso8859-5 "w")
|
70
|
28 (modify-syntax-entry ?,L-(B ".")
|
|
29 (modify-syntax-entry ?,Lp(B ".")
|
|
30 (modify-syntax-entry ?,L}(B ".")
|
|
31
|
|
32
|
|
33
|
|
34 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
35 ;;; CYRILLIC
|
|
36 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
37
|
|
38 (make-coding-system
|
|
39 'iso-8859-5 'iso2022
|
|
40 "MIME ISO-8859-5"
|
|
41 '(charset-g0 ascii
|
74
|
42 charset-g1 cyrillic-iso8859-5
|
70
|
43 charset-g2 t
|
|
44 charset-g3 t
|
|
45 mnemonic "ISO8/Cyr"
|
|
46 ))
|
|
47
|
74
|
48 ;;(add-hook 'quail-package-alist '("jcuken" "quail/cyrillic"))
|
|
49 ;;(add-hook 'quail-package-alist '("macedonian" "quail/cyrillic"))
|
|
50 ;;(add-hook 'quail-package-alist '("serbian" "quail/cyrillic"))
|
|
51 ;;(add-hook 'quail-package-alist '("beylorussian" "quail/cyrillic"))
|
|
52 ;;(add-hook 'quail-package-alist '("ukrainian" "quail/cyrillic"))
|
|
53 ;;(add-hook 'quail-package-alist '("yawerty" "quail/cyrillic"))
|
70
|
54
|
|
55 (define-language-environment 'cyrillic
|
|
56 "Cyrillic"
|
|
57 (lambda ()
|
|
58 (set-coding-category-system 'iso-8-designate 'iso-8859-5)
|
|
59 (set-coding-priority-list '(iso-8-designate iso-8-1))
|
110
|
60 (set-default-buffer-file-coding-system 'iso-8859-5)
|
70
|
61 (setq terminal-coding-system 'iso-8859-5)
|
|
62 (setq keyboard-coding-system 'iso-8859-5)
|
74
|
63 ;; (setq-default quail-current-package
|
|
64 ;; (assoc "yawerty" quail-package-alist))))
|
|
65 ))
|