1 ;;; vietnamese.el --- support for Vietnamese -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 ;; Free Software Foundation, Inc.
5 ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
6 ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011
7 ;; National Institute of Advanced Industrial Science and Technology (AIST)
8 ;; Registration Number H14PRO021
10 ;; National Institute of Advanced Industrial Science and Technology (AIST)
11 ;; Registration Number H13PRO009
13 ;; Keywords: multilingual, Vietnamese, i18n
15 ;; This file is part of GNU Emacs.
17 ;; GNU Emacs is free software: you can redistribute it and/or modify
18 ;; it under the terms of the GNU General Public License as published by
19 ;; the Free Software Foundation, either version 3 of the License, or
20 ;; (at your option) any later version.
22 ;; GNU Emacs is distributed in the hope that it will be useful,
23 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;; GNU General Public License for more details.
27 ;; You should have received a copy of the GNU General Public License
28 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
32 ;; For Vietnames, the character sets VISCII, VSCII and TCVN-5712 are
37 (define-coding-system 'vietnamese-viscii
38 "8-bit encoding for Vietnamese VISCII 1.1 (MIME:VISCII)."
41 :charset-list
'(viscii)
43 :suitable-for-file-name t
)
45 (define-coding-system-alias 'viscii
'vietnamese-viscii
)
47 (define-coding-system 'vietnamese-vscii
48 "8-bit encoding for Vietnamese VSCII-1."
51 :charset-list
'(vscii)
52 :suitable-for-file-name t
)
54 (define-coding-system-alias 'vscii
'vietnamese-vscii
)
56 ;; (make-coding-system
57 ;; 'vietnamese-vps 4 ?p
58 ;; "8-bit encoding for Vietnamese VPS"
59 ;; '(ccl-decode-vps . ccl-encode-vps)
60 ;; '((safe-charsets ascii vietnamese-viscii-lower vietnamese-viscii-upper)
61 ;; (valid-codes (0 . 255))))
63 ;; (define-coding-system-alias 'vps 'vietnamese-vps)
65 (define-coding-system 'vietnamese-viqr
66 "Vietnamese latin transcription (VIQR)."
69 :charset-list
'(ascii viscii
)
70 :post-read-conversion
'viqr-post-read-conversion
71 :pre-write-conversion
'viqr-pre-write-conversion
)
73 (define-coding-system-alias 'viqr
'vietnamese-viqr
)
75 (set-language-info-alist
76 "Vietnamese" `((charset viscii
)
77 (coding-system vietnamese-viscii vietnamese-vscii
78 vietnamese-tcvn vietnamese-viqr windows-1258
)
79 (nonascii-translation . viscii
)
80 (coding-priority vietnamese-viscii
)
81 (input-method .
"vietnamese-viqr")
82 (unibyte-display . vietnamese-viscii
)
84 (sample-text .
"Vietnamese (Ti\e,1*\e(Bng Vi\e,1.\e(Bt) Ch\e,1`\e(Bo b\e,1U\e(Bn")
86 For Vietnamese, Emacs uses special charsets internally.
87 They can be decoded from and encoded to VISCII, VSCII, TCVN-5712, VIQR
88 and windows-1258. VSCII is deprecated in favour of TCVN-5712. The
89 Current setting gives higher priority to the coding system VISCII than
90 TCVN-5712. If you prefer TCVN-5712, please do: (prefer-coding-system
91 'vietnamese-tcvn). There are two Vietnamese input methods: VIQR and
92 Telex, VIQR is the default setting.")))
94 (define-coding-system 'windows-1258
95 "windows-1258 encoding for Vietnamese (MIME: WINDOWS-1258)"
98 :charset-list
'(windows-1258)
99 :mime-charset
'windows-1258
)
100 (define-coding-system-alias 'cp1258
'windows-1258
)
102 (define-coding-system 'vietnamese-tcvn
103 "8-bit encoding for Vietnamese TCVN-5712"
104 :coding-type
'charset
106 :charset-list
'(tcvn-5712)
107 :suitable-for-file-name t
)
108 (define-coding-system-alias 'tcvn
'vietnamese-tcvn
)
109 (define-coding-system-alias 'tcvn-5712
'vietnamese-tcvn
)
111 (provide 'vietnamese
)
113 ;; arch-tag: 5bd4f1aa-2d4e-4f33-b7d8-0679c6a19ee6
114 ;;; vietnamese.el ends here