Mercurial > hg > xemacs-beta
comparison lisp/mule/cyrillic-hooks.el @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | |
children | 54cc21c15cbb |
comparison
equal
deleted
inserted
replaced
69:804d1389bcd6 | 70:131b0175ea99 |
---|---|
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 | |
27 (let ((c 33)) | |
28 (while (< c 128) | |
29 (modify-syntax-entry (make-char 'cyrillic c) "w") | |
30 (setq c (1+ c)))) | |
31 (modify-syntax-entry (make-char 'cyrillic 32) "w") ; no-break space | |
32 (modify-syntax-entry ?,L-(B ".") | |
33 (modify-syntax-entry ?,Lp(B ".") | |
34 (modify-syntax-entry ?,L}(B ".") | |
35 | |
36 | |
37 | |
38 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
39 ;;; CYRILLIC | |
40 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
41 | |
42 (make-coding-system | |
43 'iso-8859-5 'iso2022 | |
44 "MIME ISO-8859-5" | |
45 '(charset-g0 ascii | |
46 charset-g1 cyrillic | |
47 charset-g2 t | |
48 charset-g3 t | |
49 mnemonic "ISO8/Cyr" | |
50 )) | |
51 | |
52 (add-hook 'quail-package-alist '("jcuken" "quail/cyrillic")) | |
53 (add-hook 'quail-package-alist '("macedonian" "quail/cyrillic")) | |
54 (add-hook 'quail-package-alist '("serbian" "quail/cyrillic")) | |
55 (add-hook 'quail-package-alist '("beylorussian" "quail/cyrillic")) | |
56 (add-hook 'quail-package-alist '("ukrainian" "quail/cyrillic")) | |
57 (add-hook 'quail-package-alist '("yawerty" "quail/cyrillic")) | |
58 | |
59 (define-language-environment 'cyrillic | |
60 "Cyrillic" | |
61 (lambda () | |
62 (set-coding-category-system 'iso-8-designate 'iso-8859-5) | |
63 (set-coding-priority-list '(iso-8-designate iso-8-1)) | |
64 (set-default-file-coding-system 'iso-8859-5) | |
65 (setq terminal-coding-system 'iso-8859-5) | |
66 (setq keyboard-coding-system 'iso-8859-5) | |
67 (setq-default quail-current-package | |
68 (assoc "yawerty" quail-package-alist)))) |