diff options
| author | Ulrich Müller | 2023-07-28 23:04:43 +0200 |
|---|---|---|
| committer | Ulrich Müller | 2023-07-31 17:58:34 +0200 |
| commit | 077c34edfe8f8a826dcb85e5c7036e6bbbef7ff2 (patch) | |
| tree | 72addce74b9492648002f416ca9744911ccf327f | |
| parent | 18b176280db58932f7a321a1c7af3863b3e9f67a (diff) | |
| download | emacs-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/NEWS | 9 | ||||
| -rw-r--r-- | lisp/language/vietnamese.el | 32 |
2 files changed, 22 insertions, 19 deletions
| @@ -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'. | ||
| 670 | VSCII-1 and TCVN-5712 are different names for the same character | ||
| 671 | encoding. Therefore, the duplicate coding system definition has been | ||
| 672 | dropped in favor of an alias. | ||
| 673 | |||
| 674 | The mode-line mnemonic for 'vietnamese-vscii' and its aliases is the | ||
| 675 | lowercase 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. |
| 670 | On old platforms like the VAX that do not support IEEE floating-point, | 679 | On 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 . "\ |
| 85 | For Vietnamese, Emacs uses special charsets internally. | 88 | For Vietnamese, Emacs uses special charsets internally. |
| 86 | They can be decoded from and encoded to VISCII, VSCII, TCVN-5712, VIQR | 89 | They can be decoded from and encoded to VISCII, VSCII-1 (TCVN-5712), |
| 87 | and windows-1258. VSCII is deprecated in favor of TCVN-5712. The | 90 | VIQR and windows-1258. The current setting gives higher priority |
| 88 | Current setting gives higher priority to the coding system VISCII than | 91 | to the coding system VISCII than VSCII-1. If you prefer VSCII-1, |
| 89 | TCVN-5712. If you prefer TCVN-5712, please do: (prefer-coding-system | 92 | please do: (prefer-coding-system 'vietnamese-vscii). There are |
| 90 | 'vietnamese-tcvn). There are two Vietnamese input methods: VIQR and | 93 | two Vietnamese input methods: VIQR and Telex, VIQR is the default |
| 91 | Telex, VIQR is the default setting."))) | 94 | setting."))) |
| 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 |