Mercurial > emacs
annotate lisp/language/vietnamese.el @ 90197:b7da78284d4c
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-65
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 425-445)
- Remove "-face" suffix from gnus faces
- Update from CVS
- Remove "-face" suffix from MH-E faces
- Remove "-face" suffix from cc-mode faces
- Remove "-face" suffix from eshell faces
- Remove "-face" suffix from ediff faces
- Implement tty vertical-divider face
- Rename vertical-divider face to vertical-border
- Change escape-glyph color on dark backgrounds back to cyan
- Update reference to renamed Buffer-menu-buffer face
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 24 Jun 2005 01:59:52 +0000 |
parents | f042e7c0fe20 |
children | f9a65d7ebd29 |
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 |
62396 | 3 ;; Copyright (C) 1998, 2002 Free Software Foundation, Inc. |
4 ;; Copyright (C) 1995, 1997, 1998, 2000 | |
5 ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
6 ;; Registration Number H14PRO021 | |
89483 | 7 ;; Copyright (C) 2003 |
8 ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
9 ;; Registration Number H13PRO009 | |
17052 | 10 |
88559
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
11 ;; Keywords: multilingual, Vietnamese, i18n |
17052 | 12 |
13 ;; This file is part of GNU Emacs. | |
14 | |
15 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
16 ;; it under the terms of the GNU General Public License as published by | |
17 ;; the Free Software Foundation; either version 2, or (at your option) | |
18 ;; any later version. | |
19 | |
20 ;; GNU Emacs is distributed in the hope that it will be useful, | |
21 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 ;; GNU General Public License for more details. | |
24 | |
25 ;; You should have received a copy of the GNU General Public License | |
17071 | 26 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
27 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
28 ;; Boston, MA 02111-1307, USA. | |
17052 | 29 |
30 ;;; Commentary: | |
31 | |
44962
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
32 ;; For Vietnames, the character sets VISCII, VSCII and TCVN-5712 are |
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
33 ;; supported. |
17052 | 34 |
35 ;;; Code: | |
36 | |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
37 (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
|
38 "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
|
39 :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
|
40 :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
|
41 :charset-list '(viscii) |
88513 | 42 :mime-charset 'viscii) |
17052 | 43 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
44 (define-coding-system-alias 'viscii 'vietnamese-viscii) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
45 |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
46 (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
|
47 "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
|
48 :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
|
49 :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
|
50 :charset-list '(vscii)) |
17052 | 51 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
52 (define-coding-system-alias 'vscii 'vietnamese-vscii) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
53 |
44962
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
54 ;; (make-coding-system |
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
55 ;; 'vietnamese-vps 4 ?p |
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
56 ;; "8-bit encoding for Vietnamese VPS" |
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
57 ;; '(ccl-decode-vps . ccl-encode-vps) |
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
58 ;; '((safe-charsets ascii vietnamese-viscii-lower vietnamese-viscii-upper) |
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
59 ;; (valid-codes (0 . 255)))) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
44962
diff
changeset
|
60 ;; |
44962
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
61 ;; (define-coding-system-alias 'vps 'vietnamese-vps) |
39ed2c52ffb0
(viet-tcvn-decode-table, ccl-decode-tcvn)
Pavel Janík <Pavel@Janik.cz>
parents:
42152
diff
changeset
|
62 |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
63 (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
|
64 "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
|
65 :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
|
66 :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
|
67 :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
|
68 :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
|
69 :pre-write-conversion 'viqr-pre-write-conversion) |
18203
0745f30aec66
Adjusted for coding system name change.
Kenichi Handa <handa@m17n.org>
parents:
17993
diff
changeset
|
70 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
71 (define-coding-system-alias 'viqr 'vietnamese-viqr) |
17052 | 72 |
73 (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
|
74 "Vietnamese" `((charset viscii) |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20155
diff
changeset
|
75 (coding-system vietnamese-viscii vietnamese-vscii |
89483 | 76 vietnamese-tcvn vietnamese-viqr windows-1258) |
77 (nonascii-translation . viscii) | |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20155
diff
changeset
|
78 (coding-priority vietnamese-viscii) |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22879
diff
changeset
|
79 (input-method . "vietnamese-viqr") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22879
diff
changeset
|
80 (unibyte-display . vietnamese-viscii) |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22879
diff
changeset
|
81 (features viet-util) |
17772
550afdbb31d8
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17170
diff
changeset
|
82 (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
|
83 (documentation . "\ |
49727
350e89367682
("Vietnamese"): Fix typos.
Juanma Barranquero <lekktu@gmail.com>
parents:
49598
diff
changeset
|
84 For Vietnamese, Emacs uses special charsets internally. |
89483 | 85 They can be decoded from and encoded to VISCII, VSCII, TCVN-5712, VIQR |
88728
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
86 and windows-1258. VSCII is deprecated in favour of TCVN-5712. The |
89483 | 87 Current setting gives higher priority to the coding system VISCII than |
88728
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
88 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
|
89 'vietnamese-tcvn). There are two Vietnamese input methods: VIQR and |
89483 | 90 Telex, VIQR is the default setting."))) |
17052 | 91 |
88559
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
92 (define-coding-system 'windows-1258 |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
93 "windows-1258 encoding for Vietnamese (MIME: WINDOWS-1258)" |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
94 :coding-type 'charset |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
95 :mnemonic ?* |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
96 :charset-list '(windows-1258) |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
97 :mime-charset 'windows-1258) |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
98 (define-coding-system-alias 'cp1258 'windows-1258) |
2508448a287e
(windows-1258, cp1258): New coding
Dave Love <fx@gnu.org>
parents:
88513
diff
changeset
|
99 |
88728
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
100 (define-coding-system 'vietnamese-tcvn |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
101 "8-bit encoding for Vietnamese TCVN-5712" |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
102 :coding-type 'charset |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
103 :mnemonic ?t |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
104 :charset-list '(tcvn-5712)) |
e18cd612d3c4
(vietnamese-tcvn, tcvn): New coding
Dave Love <fx@gnu.org>
parents:
88722
diff
changeset
|
105 (define-coding-system-alias 'tcvn 'vietnamese-tcvn) |
17052 | 106 |
33778 | 107 (provide 'vietnamese) |
108 | |
52401 | 109 ;;; arch-tag: 5bd4f1aa-2d4e-4f33-b7d8-0679c6a19ee6 |
17052 | 110 ;;; vietnamese.el ends here |