aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Müller2023-07-28 23:04:43 +0200
committerUlrich Müller2023-07-31 17:58:34 +0200
commit077c34edfe8f8a826dcb85e5c7036e6bbbef7ff2 (patch)
tree72addce74b9492648002f416ca9744911ccf327f
parent18b176280db58932f7a321a1c7af3863b3e9f67a (diff)
downloademacs-077c34edfe8f8a826dcb85e5c7036e6bbbef7ff2.tar.gz
emacs-077c34edfe8f8a826dcb85e5c7036e6bbbef7ff2.zip
Drop duplicate vietnamese-tcvn coding system
* lisp/language/vietnamese.el (vietnamese-vscii): Update docstring. (vietnamese-tcvn, tcvn, tcvn-5712): Make them aliases of vietnamese-vscii. ("Vietnamese"): Drop vietnamese-tcvn from coding-system values. Update docstring. * etc/NEWS: Announce this change.
-rw-r--r--etc/NEWS9
-rw-r--r--lisp/language/vietnamese.el32
2 files changed, 22 insertions, 19 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 39b4a35930a..7b521f3e6fe 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -665,6 +665,15 @@ previous behavior of showing 'U' in the mode line for 'koi8-u':
665 665
666 (coding-system-put 'koi8-u :mnemonic ?U) 666 (coding-system-put 'koi8-u :mnemonic ?U)
667 667
668---
669** 'vietnamese-tcvn' is now a coding system alias for 'vietnamese-vscii'.
670VSCII-1 and TCVN-5712 are different names for the same character
671encoding. Therefore, the duplicate coding system definition has been
672dropped in favor of an alias.
673
674The mode-line mnemonic for 'vietnamese-vscii' and its aliases is the
675lowercase letter 'v'.
676
668+++ 677+++
669** Infinities and NaNs no longer act as symbols on non-IEEE platforms. 678** Infinities and NaNs no longer act as symbols on non-IEEE platforms.
670On old platforms like the VAX that do not support IEEE floating-point, 679On old platforms like the VAX that do not support IEEE floating-point,
diff --git a/lisp/language/vietnamese.el b/lisp/language/vietnamese.el
index bd0b3c5ae3e..e439a2c3851 100644
--- a/lisp/language/vietnamese.el
+++ b/lisp/language/vietnamese.el
@@ -28,8 +28,8 @@
28 28
29;;; Commentary: 29;;; Commentary:
30 30
31;; For Vietnamese, the character sets VISCII, VSCII and TCVN-5712 are 31;; For Vietnamese, the coding systems VISCII, VSCII-1 (TCVN-5712),
32;; supported. 32;; VIQR and windows-1258 are supported.
33 33
34;;; Code: 34;;; Code:
35 35
@@ -44,13 +44,16 @@
44(define-coding-system-alias 'viscii 'vietnamese-viscii) 44(define-coding-system-alias 'viscii 'vietnamese-viscii)
45 45
46(define-coding-system 'vietnamese-vscii 46(define-coding-system 'vietnamese-vscii
47 "8-bit encoding for Vietnamese VSCII-1." 47 "8-bit encoding for Vietnamese VSCII-1 (TCVN-5712)."
48 :coding-type 'charset 48 :coding-type 'charset
49 :mnemonic ?v 49 :mnemonic ?v
50 :charset-list '(vscii) 50 :charset-list '(vscii)
51 :suitable-for-file-name t) 51 :suitable-for-file-name t)
52 52
53(define-coding-system-alias 'vscii 'vietnamese-vscii) 53(define-coding-system-alias 'vscii 'vietnamese-vscii)
54(define-coding-system-alias 'vietnamese-tcvn 'vietnamese-vscii)
55(define-coding-system-alias 'tcvn 'vietnamese-vscii)
56(define-coding-system-alias 'tcvn-5712 'vietnamese-vscii)
54 57
55;; (make-coding-system 58;; (make-coding-system
56;; 'vietnamese-vps 4 ?p 59;; 'vietnamese-vps 4 ?p
@@ -74,7 +77,7 @@
74(set-language-info-alist 77(set-language-info-alist
75 "Vietnamese" '((charset viscii) 78 "Vietnamese" '((charset viscii)
76 (coding-system vietnamese-viscii vietnamese-vscii 79 (coding-system vietnamese-viscii vietnamese-vscii
77 vietnamese-tcvn vietnamese-viqr windows-1258) 80 vietnamese-viqr windows-1258)
78 (nonascii-translation . viscii) 81 (nonascii-translation . viscii)
79 (coding-priority vietnamese-viscii) 82 (coding-priority vietnamese-viscii)
80 (input-method . "vietnamese-viqr") 83 (input-method . "vietnamese-viqr")
@@ -83,12 +86,12 @@
83 (sample-text . "Vietnamese (Tiếng Việt) Chào bạn") 86 (sample-text . "Vietnamese (Tiếng Việt) Chào bạn")
84 (documentation . "\ 87 (documentation . "\
85For Vietnamese, Emacs uses special charsets internally. 88For Vietnamese, Emacs uses special charsets internally.
86They can be decoded from and encoded to VISCII, VSCII, TCVN-5712, VIQR 89They can be decoded from and encoded to VISCII, VSCII-1 (TCVN-5712),
87and windows-1258. VSCII is deprecated in favor of TCVN-5712. The 90VIQR and windows-1258. The current setting gives higher priority
88Current setting gives higher priority to the coding system VISCII than 91to the coding system VISCII than VSCII-1. If you prefer VSCII-1,
89TCVN-5712. If you prefer TCVN-5712, please do: (prefer-coding-system 92please do: (prefer-coding-system 'vietnamese-vscii). There are
90'vietnamese-tcvn). There are two Vietnamese input methods: VIQR and 93two Vietnamese input methods: VIQR and Telex, VIQR is the default
91Telex, VIQR is the default setting."))) 94setting.")))
92 95
93(define-coding-system 'windows-1258 96(define-coding-system 'windows-1258
94 "windows-1258 encoding for Vietnamese (MIME: WINDOWS-1258)" 97 "windows-1258 encoding for Vietnamese (MIME: WINDOWS-1258)"
@@ -98,15 +101,6 @@ Telex, VIQR is the default setting.")))
98 :mime-charset 'windows-1258) 101 :mime-charset 'windows-1258)
99(define-coding-system-alias 'cp1258 'windows-1258) 102(define-coding-system-alias 'cp1258 'windows-1258)
100 103
101(define-coding-system 'vietnamese-tcvn
102 "8-bit encoding for Vietnamese TCVN-5712"
103 :coding-type 'charset
104 :mnemonic ?t
105 :charset-list '(tcvn-5712)
106 :suitable-for-file-name t)
107(define-coding-system-alias 'tcvn 'vietnamese-tcvn)
108(define-coding-system-alias 'tcvn-5712 'vietnamese-tcvn)
109
110(provide 'vietnamese) 104(provide 'vietnamese)
111 105
112;;; vietnamese.el ends here 106;;; vietnamese.el ends here