annotate lisp/language/english.el @ 17939:533508e3c425

(texinfo-extra-inter-column-width): Renamed from extra-inter-column-width. Doc fix. (texinfo-multitable-buffer-name): Variable renamed from multitable-temp-buffer-name. (texinfo-multitable-rectangle-name): Variable renamed from multitable-temp-rectangle-name. (texinfo-format-key): Don't insert angle-brackets.
author Richard M. Stallman <rms@gnu.org>
date Sat, 24 May 1997 20:52:05 +0000
parents 084d922fcd78
children 28d45a11ac18
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17301
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 ;;; english.el --- English support
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 ;; Keywords: multibyte character, character set, syntax, category
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 ;; any later version.
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 ;;; Commentary:
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27 ;; We need nothing special to support English on Emacs. Selecting
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28 ;; English as a language environment is one of the ways to reset
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29 ;; various multilingual environment to the original settting.
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 ;;; Code
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 (defun setup-english-environment ()
17767
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
34 "Reset multilingual environment of Emacs to the default status.
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
35 The default status is as follows.
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
36
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
37 The default value of enable-multibyte-characters is t.
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
38
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
39 The default value of buffer-file-coding-system is iso-8859-1.
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
40 The coding system for terminal output is nil.
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
41 The coding system for keyboard input is nil.
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
42
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
43 The order of priorities of coding categories and the coding system
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
44 bound to each category are as follows
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
45 coding category coding system
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
46 --------------------------------------------------
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
47 coding-category-iso-7 iso-2022-7
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
48 coding-category-iso-8-2 iso-8859-1
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
49 coding-category-iso-8-1 iso-8859-1
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
50 coding-category-iso-else iso-8859-1
17841
084d922fcd78 Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents: 17767
diff changeset
51 coding-category-emacs-mule emacs-mule
17767
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
52 coding-category-binary no-conversion
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
53 coding-category-sjis sjis
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
54 coding-category-big5 big5
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
55 "
17301
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 (interactive)
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57 (setq-default enable-multibyte-characters t)
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 (if (local-variable-p 'enable-multibyte-characters)
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 (setq enable-multibyte-characters t))
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60
17841
084d922fcd78 Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents: 17767
diff changeset
61 (setq coding-category-emacs-mule 'emacs-mule
17301
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 coding-category-iso-7 'iso-2022-7
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 coding-category-iso-8-1 'iso-8859-1
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 coding-category-iso-8-2 'iso-8859-1
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 coding-category-iso-else 'iso-8859-1
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 coding-category-sjis 'sjis
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 coding-category-big5 'big5
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 coding-category-binary 'no-conversion)
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 (set-coding-priority
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 '(coding-category-iso-7
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 coding-category-iso-8-2
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 coding-category-iso-8-1
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 coding-category-iso-else
17841
084d922fcd78 Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents: 17767
diff changeset
75 coding-category-emacs-mule
17301
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 coding-category-binary
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77 coding-category-sjis
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78 coding-category-big5))
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 (setq-default buffer-file-coding-system 'iso-8859-1)
17767
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
81 (set-terminal-coding-system nil)
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
82 (set-keyboard-coding-system nil)
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
83
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
84 (setq sendmail-coding-system nil
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
85 rmail-file-coding-system nil)
17301
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 )
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 (set-language-info-alist
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 "English" '((setup-function . setup-english-environment)
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90 (tutorial . "TUTORIAL")
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 (charset . (ascii))
17767
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
92 (sample-text . "Hello!, Hi!, How are you?")
17841
084d922fcd78 Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents: 17767
diff changeset
93 (documentation . ("\
17767
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
94 There's nothing special you should care to handle English in Emacs.
17841
084d922fcd78 Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents: 17767
diff changeset
95 You can use English both with enable-multibyte-characters t and nil."))
17767
d93b9414ff2b Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents: 17301
diff changeset
96 ))
17301
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98 (register-input-method "English"
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99 '("quail-dvorak" quail-use-package "quail/latin"))
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100
0b94fe381355 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101 ;;; english.el ends here