Mercurial > emacs
annotate lisp/language/vietnamese.el @ 89304:5b82d8f14d06
(tibetan-composition-function): Change
arguments to conform to composition-function-table.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 07 Nov 2002 06:33:13 +0000 |
parents | e18cd612d3c4 |
children | 2f877ed80fa6 |
rev | line source |
---|---|
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
1 ;;; vietnamese.el --- support for Vietnamese -*- coding: iso-2022-7bit; -*- |
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. |
88559
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
5 ;; Copyright (C) 2002 Free Software Foundation, Inc. |
17052 | 6 |
88559
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
7 ;; Keywords: multilingual, Vietnamese, i18n |
17052 | 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 Vietnames, the character sets VISCII and VSCII are 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 'vietnamese-viscii |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
33 "8-bit encoding for Vietnamese VISCII 1.1 (MIME:VISCII)." |
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 ?V |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
36 :charset-list '(viscii) |
88513 | 37 :mime-charset 'viscii) |
17052 | 38 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
39 (define-coding-system-alias 'viscii 'vietnamese-viscii) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
40 |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
41 (define-coding-system 'vietnamese-vscii |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
42 "8-bit encoding for Vietnamese VSCII-1." |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
43 :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
|
44 :mnemonic ?v |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
45 :charset-list '(vscii)) |
17052 | 46 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
47 (define-coding-system-alias 'vscii 'vietnamese-vscii) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
48 |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
49 (define-coding-system 'vietnamese-viqr |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
50 "Vietnamese latin transcription (VIQR)." |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
51 :coding-type 'utf-8 |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
52 :mnemonic ?q |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
53 :charset-list '(ascii viscii) |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
54 :post-read-conversion 'viqr-post-read-conversion |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
55 :pre-write-conversion 'viqr-pre-write-conversion) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
56 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
57 (define-coding-system-alias 'viqr 'vietnamese-viqr) |
17052 | 58 |
59 (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
|
60 "Vietnamese" `((charset viscii) |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20155
diff
changeset
|
61 (coding-system vietnamese-viscii vietnamese-vscii |
88728
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
62 vietnamese-tcvn vietnamese-viqr windows-1258) |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20155
diff
changeset
|
63 (coding-priority vietnamese-viscii) |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
64 (nonascii-translation . viscii) |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22879
diff
changeset
|
65 (input-method . "vietnamese-viqr") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22879
diff
changeset
|
66 (unibyte-display . vietnamese-viscii) |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22879
diff
changeset
|
67 (features viet-util) |
17772
550afdbb31d8
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17170
diff
changeset
|
68 (sample-text . "Vietnamese (Ti,1*(Bng Vi,1.(Bt) Ch,1`(Bo b,1U(Bn") |
17993
73869115ae0a
Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents:
17841
diff
changeset
|
69 (documentation . "\ |
88728
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
70 For Vietnamese, Emacs can use encodings VISCII, VSCII, TCVN-5712, VIQR |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
71 and windows-1258. VSCII is deprecated in favour of TCVN-5712. The |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
72 current setting gives higher priority to the coding system VISCII than |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
73 TCVN-5712. If you prefer TCVN-5712, please do: (prefer-coding-system |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
74 'vietnamese-tcvn). There are two Vietnamese input methods: VIQR and |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
75 Telex; VIQR is the default setting."))) |
17052 | 76 |
88559
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
77 (define-coding-system 'windows-1258 |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
78 "windows-1258 encoding for Vietnamese (MIME: WINDOWS-1258)" |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
79 :coding-type 'charset |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
80 :mnemonic ?* |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
81 :charset-list '(windows-1258) |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
82 :mime-charset 'windows-1258) |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
83 (define-coding-system-alias 'cp1258 'windows-1258) |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
84 |
88728
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
85 (define-coding-system 'vietnamese-tcvn |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
86 "8-bit encoding for Vietnamese TCVN-5712" |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
87 :coding-type 'charset |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
88 :mnemonic ?t |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
89 :charset-list '(tcvn-5712)) |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
90 (define-coding-system-alias 'tcvn 'vietnamese-tcvn) |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
91 |
33778 | 92 (provide 'vietnamese) |
93 | |
17052 | 94 ;;; vietnamese.el ends here |