Mercurial > emacs
annotate lisp/language/greek.el @ 88893:86354924a790
Setup the default fontset by the new
script based way.
(x-complement-fontset-spec): Change the format of arg FONTLIST to
an alist of charsets vs font name lists.
(charset-script-alist): New variable.
(create-fontset-from-fontset-spec): Allow script name in
FONTSET-SPEC. If charset is specified in FONTSET-SPEC, change it
to the corresponding script name.
(create-fontset-from-ascii-font): Slightly tuned.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 26 Jul 2002 04:03:01 +0000 |
parents | 5c9662a7b7f6 |
children | 8e27ca682098 |
rev | line source |
---|---|
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
1 ;;; greek.el --- support for Greek |
17052 | 2 |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18309
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
88557
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
5 ;; Copyright (C) 2002 Free Software Foundation, Inc. |
17052 | 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 | |
17071 | 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. | |
17052 | 25 |
26 ;;; Commentary: | |
27 | |
28 ;; For Greek, the character set ISO8859-7 is supported. | |
29 | |
30 ;;; Code: | |
31 | |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
32 (define-coding-system 'greek-iso-8bit |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
33 "ISO 2022 based 8-bit encoding for Greek (MIME:ISO-8859-7)." |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
34 :coding-type 'charset |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
35 :mnemonic ?7 |
88479
b22b2b59667b
(greek-iso-8bit): Fix typo.
Kenichi Handa <handa@m17n.org>
parents:
88414
diff
changeset
|
36 :charset-list '(iso-8859-7) |
88513 | 37 :mime-charset 'iso-8859-7) |
17052 | 38 |
18520
383d11185239
Swap args to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
39 (define-coding-system-alias 'iso-8859-7 'greek-iso-8bit) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
40 |
88557
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
41 (define-coding-system 'windows-1253 |
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
42 "windows-1253 encoding for Greek" |
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
43 :coding-type 'charset |
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
44 :mnemonic ?g |
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
45 :charset-list '(windows-1253) |
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
46 :mime-charset 'windows-1253) |
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
47 (define-coding-system-alias 'cp1253 'windows-1253) |
601020f7bce8
(windows-1253, cp1253): New coding systems.
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
48 |
88618
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
49 (define-coding-system 'cp851 |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
50 "DOS codepage 851 (Greek)" |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
51 :coding-type 'charset |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
52 :mnemonic ?D |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
53 :charset-list '(cp851) |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
54 :mime-charset 'cp851) |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
55 (define-coding-system-alias 'ibm851 'cp851) |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
56 |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
57 (define-coding-system 'cp869 |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
58 "DOS codepage 869 (Greek)" |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
59 :coding-type 'charset |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
60 :mnemonic ?D |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
61 :charset-list '(cp869) |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
62 :mime-charset 'cp869) |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
63 (define-coding-system-alias 'ibm869 'cp869) |
bc872894c0a7
(cp851, ibm851, cp869, ibm869): New coding
Dave Love <fx@gnu.org>
parents:
88557
diff
changeset
|
64 |
17052 | 65 (set-language-info-alist |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
66 "Greek" '((charset iso-8859-7) |
88719
5c9662a7b7f6
("Greek"): Add windows-1253, cp851, cp869
Dave Love <fx@gnu.org>
parents:
88618
diff
changeset
|
67 (coding-system . (greek-iso-8bit windows-1253 cp851 cp869)) |
22622 | 68 (coding-priority greek-iso-8bit) |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
69 (nonascii-translation . iso-8859-7) |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
22622
diff
changeset
|
70 (input-method . "greek") |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
22622
diff
changeset
|
71 (unibyte-display . greek-iso-8bit) |
17841
084d922fcd78
Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents:
17772
diff
changeset
|
72 (documentation . t))) |
17052 | 73 |
33778 | 74 (provide 'greek) |
75 | |
17052 | 76 ;;; greek.el ends here |