From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich =?utf-8?Q?M=C3=BCller?= Newsgroups: gmane.emacs.devel Subject: Re: Coding systems vietnamese-vscii and vietnamese-tcvn Date: Sat, 29 Jul 2023 07:19:50 +0200 Message-ID: References: <83zg3pzbm6.fsf@gnu.org> <83jzutbeim.fsf@gnu.org> <83v8e3j29k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27276"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 29 07:39:43 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPcg3-0006tt-B8 for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jul 2023 07:39:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPcN4-0005X3-Qg; Sat, 29 Jul 2023 01:20:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPcMy-0005WP-KP for emacs-devel@gnu.org; Sat, 29 Jul 2023 01:20:01 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qPcMw-0004Nl-NR; Sat, 29 Jul 2023 01:20:00 -0400 In-Reply-To: <83v8e3j29k.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Jul 2023 21:53:59 +0300") Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308196 Archived-At: >>>>> On Fri, 28 Jul 2023, Eli Zaretskii wrote: >> From: Ulrich Mueller >> Cc: emacs-devel@gnu.org >> Date: Fri, 28 Jul 2023 20:03:10 +0200 >>=20 >> So I suggest to define only coding system vietnamese-vscii, and make >> vietnamese-tcvn an alias of it. If this a acceptable, I can prepare a >> patch for lisp/language/vietnamese.el. > Please do, and thanks. But please include in the patch a NEWS entry, > and please make the change backward-compatible, so that files written > in either of the 2 encodings we supported before and stating the > encoding in their file-local variables will still be correctly decoded > after the change. >From 393d39dc4961309cdc7f6e71ceaeab7a4942d868 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Ulrich=3D20M=3DC3=3DBCller?=3D Date: Fri, 28 Jul 2023 23:04:43 +0200 Subject: [PATCH] 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. --- etc/NEWS | 9 +++++++++ lisp/language/vietnamese.el | 32 +++++++++++++------------------- 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': =20 (coding-system-put 'koi8-u :mnemonic ?U) =20 +--- +** 'vietnamese-tcvn' is now a coding system alias for 'vietnamese-vscii'. +VSCII-1 and TCVN-5712 are different names for the same character +encoding. Therefore, the duplicate coding system definition has been +dropped in favor of an alias. + +The mode-line mnemonic for 'vietnamese-vscii' and its aliases is the +lowercase letter 'v'. + +++ ** Infinities and NaNs no longer act as symbols on non-IEEE platforms. 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..1589173b207 100644 --- a/lisp/language/vietnamese.el +++ b/lisp/language/vietnamese.el @@ -28,8 +28,8 @@ =20 ;;; Commentary: =20 -;; For Vietnamese, the character sets VISCII, VSCII and TCVN-5712 are -;; supported. +;; For Vietnamese, the character sets VISCII, VSCII-1 (TCVN-5712), +;; VIQR and windows-1258 are supported. =20 ;;; Code: =20 @@ -44,13 +44,16 @@ 'vietnamese-viscii (define-coding-system-alias 'viscii 'vietnamese-viscii) =20 (define-coding-system 'vietnamese-vscii - "8-bit encoding for Vietnamese VSCII-1." + "8-bit encoding for Vietnamese VSCII-1 (TCVN-5712)." :coding-type 'charset :mnemonic ?v :charset-list '(vscii) :suitable-for-file-name t) =20 (define-coding-system-alias 'vscii 'vietnamese-vscii) +(define-coding-system-alias 'vietnamese-tcvn 'vietnamese-vscii) +(define-coding-system-alias 'tcvn 'vietnamese-vscii) +(define-coding-system-alias 'tcvn-5712 'vietnamese-vscii) =20 ;; (make-coding-system ;; 'vietnamese-vps 4 ?p @@ -74,7 +77,7 @@ 'viqr (set-language-info-alist "Vietnamese" '((charset viscii) (coding-system vietnamese-viscii vietnamese-vscii - vietnamese-tcvn vietnamese-viqr windows-1258) + vietnamese-viqr windows-1258) (nonascii-translation . viscii) (coding-priority vietnamese-viscii) (input-method . "vietnamese-viqr") @@ -83,12 +86,12 @@ 'viqr (sample-text . "Vietnamese (Ti=E1=BA=BFng Vi=E1=BB=87t) Ch=C3=A0o b=E1= =BA=A1n") (documentation . "\ For Vietnamese, Emacs uses special charsets internally. -They can be decoded from and encoded to VISCII, VSCII, TCVN-5712, VIQR -and windows-1258. VSCII is deprecated in favor of TCVN-5712. The -Current setting gives higher priority to the coding system VISCII than -TCVN-5712. If you prefer TCVN-5712, please do: (prefer-coding-system -'vietnamese-tcvn). There are two Vietnamese input methods: VIQR and -Telex, VIQR is the default setting."))) +They can be decoded from and encoded to VISCII, VSCII-1 (TCVN-5712), +VIQR and windows-1258. The current setting gives higher priority +to the coding system VISCII than VSCII-1. If you prefer VSCII-1, +please do: (prefer-coding-system 'vietnamese-vscii). There are +two Vietnamese input methods: VIQR and Telex, VIQR is the default +setting."))) =20 (define-coding-system 'windows-1258 "windows-1258 encoding for Vietnamese (MIME: WINDOWS-1258)" @@ -98,15 +101,6 @@ 'windows-1258 :mime-charset 'windows-1258) (define-coding-system-alias 'cp1258 'windows-1258) =20 -(define-coding-system 'vietnamese-tcvn - "8-bit encoding for Vietnamese TCVN-5712" - :coding-type 'charset - :mnemonic ?t - :charset-list '(tcvn-5712) - :suitable-for-file-name t) -(define-coding-system-alias 'tcvn 'vietnamese-tcvn) -(define-coding-system-alias 'tcvn-5712 'vietnamese-tcvn) - (provide 'vietnamese) =20 ;;; vietnamese.el ends here --=20 2.41.0