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
|
3748
|
32 (loop
|
|
33 for (upper lower)
|
|
34 in '((#xdb #xfb) ;; UPSILON WITH DIALYTIKA
|
|
35 (#xda #xfa) ;; IOTA WITH DIALYTIKA
|
|
36 (#xd9 #xf9) ;; OMEGA
|
|
37 (#xd8 #xf8) ;; PSI
|
|
38 (#xd7 #xf7) ;; CHI
|
|
39 (#xd6 #xf6) ;; PHI
|
|
40 (#xd5 #xf5) ;; UPSILON
|
|
41 (#xd4 #xf4) ;; TAU
|
|
42 (#xd3 #xf3) ;; SIGMA
|
|
43 (#xd1 #xf1) ;; RHO
|
|
44 (#xd0 #xf0) ;; PI
|
|
45 (#xcf #xef) ;; OMICRON
|
|
46 (#xce #xee) ;; XI
|
|
47 (#xcd #xed) ;; NU
|
|
48 (#xcc #xec) ;; MU
|
|
49 (#xcb #xeb) ;; LAMDA
|
|
50 (#xca #xea) ;; KAPPA
|
|
51 (#xc9 #xe9) ;; IOTA
|
|
52 (#xc8 #xe8) ;; THETA
|
|
53 (#xc7 #xe7) ;; ETA
|
|
54 (#xc6 #xe6) ;; ZETA
|
|
55 (#xc5 #xe5) ;; EPSILON
|
|
56 (#xc4 #xe4) ;; DELTA
|
|
57 (#xc3 #xe3) ;; GAMMA
|
|
58 (#xc2 #xe2) ;; BETA
|
|
59 (#xc1 #xe1) ;; ALPHA
|
|
60 (#xbf #xfe) ;; OMEGA WITH TONOS
|
|
61 (#xbe #xfd) ;; UPSILON WITH TONOS
|
|
62 (#xbc #xfc) ;; OMICRON WITH TONOS
|
|
63 (#xba #xdf) ;; IOTA WITH TONOS
|
|
64 (#xb9 #xde) ;; ETA WITH TONOS
|
|
65 (#xb8 #xdd) ;; EPSILON WITH TONOS
|
|
66 (#xb6 #xdc) ;; ALPHA WITH TONOS
|
|
67 (#xD3 #xF2)) ;; FINAL SIGMA
|
|
68 ;; No case mappings for:
|
|
69 ;;
|
|
70 ;; (#xE0 "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS")
|
|
71 ;; (#xC0 "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS")
|
|
72 ;;
|
|
73 with case-table = (standard-case-table)
|
|
74 do
|
|
75 (put-case-table-pair (make-char 'greek-iso8859-7 upper)
|
|
76 (make-char 'greek-iso8859-7 lower) case-table))
|
778
|
77
|
3748
|
78 ;; Now, syntax.
|
|
79 (dolist (code '(#xA1 ;; LEFT SINGLE QUOTATION MARK
|
|
80 #xA2 ;; RIGHT SINGLE QUOTATION MARK
|
|
81 #xA3 ;; POUND SIGN
|
|
82 #xA6 ;; BROKEN BAR
|
|
83 #xA7 ;; SECTION SIGN
|
|
84 #xA8 ;; DIAERESIS
|
|
85 #xA9 ;; COPYRIGHT SIGN
|
|
86 #xAB ;; LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
|
|
87 #xAC ;; NOT SIGN
|
|
88 #xAD ;; SOFT HYPHEN
|
|
89 #xAF ;; HORIZONTAL BAR
|
|
90 #xB0 ;; DEGREE SIGN
|
|
91 #xB1 ;; PLUS-MINUS SIGN
|
|
92 #xB7 ;; MIDDLE DOT
|
|
93 #xBB)) ;; RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
|
|
94 (modify-syntax-entry (make-char 'greek-iso8859-7 code) "."))
|
428
|
95
|
3748
|
96 ;; NO-BREAK SPACE
|
|
97 (modify-syntax-entry (make-char 'greek-iso8859-7 #xA0) " ")
|
428
|
98
|
|
99 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
100 ;;; GREEK
|
|
101 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
102
|
|
103
|
|
104 (make-coding-system
|
771
|
105 'iso-8859-7 'iso2022 "ISO-8859-7 (Greek)"
|
428
|
106 '(charset-g0 ascii
|
|
107 charset-g1 greek-iso8859-7
|
|
108 charset-g2 t
|
|
109 charset-g3 t
|
3748
|
110 mnemonic "Grk"))
|
428
|
111
|
|
112 (set-language-info-alist
|
|
113 "Greek" '((charset greek-iso8859-7)
|
|
114 (coding-system iso-8859-7)
|
|
115 (coding-priority iso-8859-7)
|
771
|
116 (locale "el_GR.iso88597" "el_GR.greek8" "el_GR" "greek" "el")
|
428
|
117 (input-method . "greek")
|
771
|
118 (sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B")
|
428
|
119 (documentation . t)))
|
|
120
|
|
121 ;;; greek.el ends here
|