]> code.delx.au - gnu-emacs/blob - lisp/language/greek.el
*** empty log message ***
[gnu-emacs] / lisp / language / greek.el
1 ;;; greek.el --- support for Greek
2
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5 ;; Copyright (C) 2002 Free Software Foundation, Inc.
6
7 ;; Keywords: multilingual, Greek
8
9 ;; This file is part of GNU Emacs.
10
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
12 ;; it 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 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25
26 ;;; Commentary:
27
28 ;; For Greek, the character set ISO8859-7 is supported.
29
30 ;;; Code:
31
32 (define-coding-system 'greek-iso-8bit
33 "ISO 2022 based 8-bit encoding for Greek (MIME:ISO-8859-7)."
34 :coding-type 'charset
35 :mnemonic ?7
36 :charset-list '(iso-8859-7)
37 :mime-charset 'iso-8859-7)
38
39 (define-coding-system-alias 'iso-8859-7 'greek-iso-8bit)
40
41 (define-coding-system 'windows-1253
42 "windows-1253 encoding for Greek"
43 :coding-type 'charset
44 :mnemonic ?g
45 :charset-list '(windows-1253)
46 :mime-charset 'windows-1253)
47 (define-coding-system-alias 'cp1253 'windows-1253)
48
49 (define-coding-system 'cp737
50 "Codepage 737 (PC Greek)"
51 :coding-type 'charset
52 :mnemonic ?D
53 :charset-list '(cp737)
54 :mime-charset 'cp737)
55
56 (define-coding-system 'cp851
57 "DOS codepage 851 (Greek)"
58 :coding-type 'charset
59 :mnemonic ?D
60 :charset-list '(cp851)
61 :mime-charset 'cp851)
62 (define-coding-system-alias 'ibm851 'cp851)
63
64 (define-coding-system 'cp869
65 "DOS codepage 869 (Greek)"
66 :coding-type 'charset
67 :mnemonic ?D
68 :charset-list '(cp869)
69 :mime-charset 'cp869)
70 (define-coding-system-alias 'ibm869 'cp869)
71
72 (set-language-info-alist
73 "Greek" '((charset iso-8859-7)
74 (coding-system . (greek-iso-8bit windows-1253 cp851 cp869))
75 (coding-priority greek-iso-8bit)
76 (nonascii-translation . iso-8859-7)
77 (input-method . "greek")
78 (documentation . t)))
79
80 (provide 'greek)
81
82 ;;; greek.el ends here