502
|
1 ;;; greek.el --- Support for Greek -*- coding: iso-2022-7bit; -*-
|
428
|
2
|
|
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
|
|
4 ;; Licensed to the Free Software Foundation.
|
|
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
|
|
6
|
|
7 ;; Keywords: multilingual, Greek
|
|
8
|
|
9 ;; This file is part of XEmacs.
|
|
10
|
|
11 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
12 ;; under the terms of the GNU General Public License as published by
|
|
13 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
14 ;; any later version.
|
|
15
|
|
16 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
19 ;; General Public License for more details.
|
|
20
|
|
21 ;; You should have received a copy of the GNU General Public License
|
|
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
|
|
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
24 ;; 02111-1307, USA.
|
|
25
|
|
26 ;;; Commentary:
|
|
27
|
|
28 ;; For Greek, the character set ISO8859-7 is supported.
|
|
29
|
|
30 ;;; Code:
|
|
31
|
778
|
32 ; (make-charset 'greek-iso8859-7
|
|
33 ; "Right-Hand Part of Latin/Greek Alphabet (ISO/IEC 8859-7): ISO-IR-126"
|
|
34 ; '(dimension
|
|
35 ; 1
|
|
36 ; registry "ISO8859-7"
|
|
37 ; chars 96
|
|
38 ; columns 1
|
|
39 ; direction l2r
|
|
40 ; final ?F
|
|
41 ; graphic 1
|
|
42 ; short-name "RHP of ISO8859/7"
|
|
43 ; long-name "RHP of Greek (ISO 8859-7): ISO-IR-126"
|
|
44 ; ))
|
|
45
|
428
|
46 ;; For syntax of Greek
|
|
47 (loop for c from 54 to 126
|
|
48 do (modify-syntax-entry (make-char 'greek-iso8859-7 c) "w"))
|
|
49 (modify-syntax-entry (make-char 'greek-iso8859-7 32) "w") ; no-break space
|
771
|
50 (modify-syntax-entry ?,F7(B ".")
|
|
51 (modify-syntax-entry ?,F;(B ".")
|
|
52 (modify-syntax-entry ?,F=(B ".")
|
428
|
53
|
|
54
|
|
55 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
56 ;;; GREEK
|
|
57 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
58
|
|
59
|
|
60 ;; (make-coding-system
|
|
61 ;; 'greek-iso-8bit 2 ?7
|
|
62 ;; "ISO 2022 based 8-bit encoding for Greek (MIME:ISO-8859-7)"
|
|
63 ;; '(ascii greek-iso8859-7 nil nil
|
|
64 ;; nil nil nil nil nil nil nil)
|
|
65 ;; '((safe-charsets ascii greek-iso8859-7)
|
|
66 ;; (mime-charset . iso-8859-7)))
|
|
67
|
|
68 ;; (define-coding-system-alias 'iso-8859-7 'greek-iso-8bit)
|
|
69
|
|
70 (make-coding-system
|
771
|
71 'iso-8859-7 'iso2022 "ISO-8859-7 (Greek)"
|
428
|
72 '(charset-g0 ascii
|
|
73 charset-g1 greek-iso8859-7
|
|
74 charset-g2 t
|
|
75 charset-g3 t
|
|
76 mnemonic "Grk"
|
|
77 ))
|
|
78
|
|
79 (set-language-info-alist
|
|
80 "Greek" '((charset greek-iso8859-7)
|
|
81 (coding-system iso-8859-7)
|
|
82 (coding-priority iso-8859-7)
|
771
|
83 (locale "el_GR.iso88597" "el_GR.greek8" "el_GR" "greek" "el")
|
428
|
84 (input-method . "greek")
|
771
|
85 (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B")
|
428
|
86 (documentation . t)))
|
|
87
|
|
88 ;;; greek.el ends here
|