Mercurial > hg > xemacs-beta
comparison lisp/mule/greek-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 ;;; greek-hooks.el --- pre-loaded support for Greek. | |
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 Greek | |
27 (let ((c 54)) | |
28 (while (< c 127) | |
29 (modify-syntax-entry (make-char 'greek c) "w") | |
30 (setq c (1+ c)))) | |
31 (modify-syntax-entry (make-char 'greek 32) "w") ; no-break space | |
32 (modify-syntax-entry ?,F7(B ".") | |
33 (modify-syntax-entry ?,F;(B ".") | |
34 (modify-syntax-entry ?,F=(B ".") | |
35 | |
36 | |
37 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
38 ;;; GREEK | |
39 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
40 | |
41 (make-coding-system | |
42 'iso-8859-7 'iso2022 "MIME ISO-8859-7" | |
43 '(charset-g0 ascii | |
44 charset-g1 greek | |
45 charset-g2 t | |
46 charset-g3 t | |
47 mnemonic "MIME/Grk" | |
48 )) | |
49 | |
50 (add-hook 'quail-package-alist '("greek" "quail/greek")) | |
51 | |
52 (define-language-environment 'greek | |
53 "Greek" | |
54 (lambda () | |
55 (set-coding-category-system 'iso-8-designate 'iso-8859-7) | |
56 (set-coding-priority-list '(iso-8-designate iso-8-1)) | |
57 (set-default-file-coding-system 'iso-8859-7) | |
58 (setq terminal-coding-system 'iso-8859-7) | |
59 (setq keyboard-coding-system 'iso-8859-7) | |
60 (setq-default quail-current-package | |
61 (assoc "greek" quail-package-alist)))) | |
62 |