Mercurial > emacs
annotate lisp/language/european.el @ 17405:1c2363f760ef
Add defgroup's; change use defcustom for user vars.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 12 Apr 1997 01:50:50 +0000 |
parents | 1012d679efd4 |
children | 93caf447ed72 |
rev | line source |
---|---|
17052 | 1 ;;; european.el --- Support for European languages |
2 | |
3 ;; Copyright (C) 1995 Free Software Foundation, Inc. | |
4 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
5 | |
6 ;; Keywords: multilingual, European | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
17071 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
17052 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; For Europeans, five character sets ISO8859-1,2,3,4,9 are supported. | |
28 | |
29 ;;; Code: | |
30 | |
31 (make-coding-system | |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
32 'iso-8859-1 2 ?X |
17052 | 33 "Coding-system used in X as Compound Text Encoding." |
34 '((ascii t) (latin-iso8859-1 t) nil nil | |
35 nil ascii-eol ascii-cntl)) | |
36 | |
37 ;; CTEXT is an alias for ISO-8859-1 | |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
38 (define-coding-system-alias 'iso-8859-1 'ctext) |
17052 | 39 |
40 (make-coding-system | |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
41 'iso-8859-2 2 ?2 "MIME ISO-8859-2" |
17052 | 42 '((ascii t) (latin-iso8859-2 t) nil nil |
43 nil ascii-eol ascii-cntl nil nil nil nil)) | |
44 | |
45 (make-coding-system | |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
46 'iso-8859-3 2 ?3 "MIME ISO-8859-3" |
17052 | 47 '((ascii t) (latin-iso8859-3 t) nil nil |
48 nil ascii-eol ascii-cntl nil nil nil nil)) | |
49 | |
50 (make-coding-system | |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
51 'iso-8859-4 2 ?4 "MIME ISO-8859-4" |
17052 | 52 '((ascii t) (latin-iso8859-4 t) nil nil |
53 nil ascii-eol ascii-cntl nil nil nil nil)) | |
54 | |
55 (make-coding-system | |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
56 'iso-8859-9 2 ?9 "MIME ISO-8859-9" |
17052 | 57 '((ascii t) (latin-iso8859-9 t) nil nil |
58 nil ascii-eol ascii-cntl nil nil nil nil)) | |
59 | |
60 (register-input-method "European" | |
61 '("quail-latin-1" quail-use-package "quail/latin")) | |
62 (register-input-method "European" | |
63 '("quail-latin-2" quail-use-package "quail/latin")) | |
64 (register-input-method "European" | |
65 '("quail-latin-3" quail-use-package "quail/latin")) | |
66 (register-input-method "European" | |
67 '("quail-latin-4" quail-use-package "quail/latin")) | |
68 (register-input-method "European" | |
69 '("quail-latin-5" quail-use-package "quail/latin")) | |
70 | |
71 (defun setup-european-environment () | |
17302
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
72 (setup-english-environment) |
17052 | 73 |
74 (setq default-input-method '("European" . "quail-latin-1")) | |
75 ) | |
76 | |
77 (set-language-info-alist | |
78 "European" '((setup-function . setup-european-environment) | |
79 (charset . (ascii latin-iso8859-1 latin-iso8859-2 | |
17302
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
80 latin-iso8859-3 latin-iso8859-4 latin-iso8859-9)) |
17098
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
81 (coding-system . (iso-8859-1 iso-8859-2 iso-8859-3 |
8917133b7e82
Remove prefix "coding-system-" from coding system symbol names.
Kenichi Handa <handa@m17n.org>
parents:
17071
diff
changeset
|
82 iso-8859-4 iso-8859-9)) |
17052 | 83 (documentation . t) |
84 (sample-text | |
85 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!"))) | |
86 | |
17302
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
87 (let ((languages '("French" "German" "Spanish" "Italian" |
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
88 ;; We have to list much more European langauges here. |
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
89 )) |
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
90 (val '("quail-latin-1" quail-use-package "quail/latin"))) |
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
91 (while languages |
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
92 (register-input-method (car languages) val) |
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
93 (setq languages (cdr languages)))) |
1012d679efd4
English related codes are moved to
Kenichi Handa <handa@m17n.org>
parents:
17098
diff
changeset
|
94 |
17052 | 95 ;;; european.el ends here |