From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: What is a preferred charset? Date: Wed, 21 Nov 2018 23:44:55 +0100 Message-ID: <87in0q3va0.fsf@gmx.net> References: <87zhu24h0b.fsf@gmx.net> <87r2fe4bru.fsf@gmx.net> <83o9aigj29.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542841321 9731 195.159.176.226 (21 Nov 2018 23:02:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2018 23:02:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: schwab@suse.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 22 00:01:57 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPbVM-0002OI-1c for ged-emacs-devel@m.gmane.org; Thu, 22 Nov 2018 00:01:56 +0100 Original-Received: from localhost ([::1]:42942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPbXS-0004ZD-Jd for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2018 18:04:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPbF7-0005JO-Hp for emacs-devel@gnu.org; Wed, 21 Nov 2018 17:45:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPbF6-0008PX-Km for emacs-devel@gnu.org; Wed, 21 Nov 2018 17:45:09 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:46951) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPbEz-0008CS-7p; Wed, 21 Nov 2018 17:45:01 -0500 Original-Received: from rosalinde ([178.6.147.239]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lg0wl-1ffXqF2onb-00papL; Wed, 21 Nov 2018 23:44:56 +0100 In-Reply-To: <83o9aigj29.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Nov 2018 00:30:22 +0200") X-Provags-ID: V03:K1:e+klN7gzm3DyrGhK6sIIGvLflF4RERD0Tg/KcsGxbW/ZrKgSfrx 30ZyNY1Ys55nQN9D1BnezxmiASsLIb43bYONgaQ+eWVUmt6v068I2fCzkAGlJtWQ9cyf6yW uGzaeY4PpAhj3JbJjGsfZSE4Xbj2U1x0QTRXNNWCykg76AUYTd5XAXszKCrB42qIG/JMCWN a67WKdT+RoDJp+IGifd8w== X-UI-Out-Filterresults: notjunk:1;V03:K0:hulz6J95UvM=:z2hIiYxYjoBXR5RiP57PAp uyrNhRktb4TO7YNkYN/a60xheZ/CGv1ICy7h7ukpFzDSd4Svv4NoXQdRuNIBPhU2w7h+611Bm /WkNWZTQ5wpvSS30Y/sqjTlRCwXfg0QtD+qe7+cYwKBDOCUbF3q54Nsot5WHB5kr4Ka94GXbs GjJpBzpGZTgyPYLqqnWVKVykTMN1tRKNbRhvsRrjWT1//5wcXSVbOvsFQUiLjw8HDFp5vmmVv q4JA37eX9ROcPBvyd3nw6D1QwMjOqnBcOP6Inx4+WjJ40sOjRdvQU2VswbDzKzJf3f2jeHuA4 G5bhZ86htUaWrNVQ6Jt8fBUtRrmJo4ot+qNr5o6aUfLQZfi7H4X4gdEvLX5Xo2eXhrrkPlFmy dz9T9iR4iaINUvKxyO/mHyE4VU/N88Q3xX7TFrpj18atPmjn26B4+oGBw74cOAc/j8h0grf5p zvYGoGtwa/QoQyPHWKsyR5vDug0PMZ0FBJQszSYcQxErbMbyaF16619LZbLMjr+CWjVC/C3AZ KKowpItlfXHT7FPl83uy/WkldWjUkP+LA8MVY1jnferb1eO7E9F/M+kqti5Mwd+RxzwrgFyB3 cqLozlpfaHgJ+v1IExDEkZ57Gytjh0NmmzELvVAccbQyK4JKuFX6w3jF89kxQbdmlCMy9zEuJ mpTuEx5Bfjo8C/4gN0Ce1EI/vELKHiarv4D8b6XD1ChxPtgTcTsPEN/7SV9hb8gPBNAK1dXIj Bko94LZvHhf55qkolf3vO6DUFlWo8muIRLZ58lyx4cJGYPfDILbGxhUqIwp7DMVwIkp1IAQW X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231301 Archived-At: On Thu, 22 Nov 2018 00:30:22 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: emacs-devel@gnu.org >> Date: Wed, 21 Nov 2018 17:48:37 +0100 >> >> > When text has the 'charset' property, we show its value as the >> > highest-priority charset of the characters having that property. This >> > property is described in "Explicit Encoding". >> >> On my system (where the value of locale-coding-system is utf-8-unix) the >> first entries in charset-priority-list are: ascii iso-8859-1 unicode >> latin-iso8859-1 ... And calling char-charset on the character named >> INVERTED EXCLAMATION MARK returns "unicode" here. That accords with >> what you both wrote above about highest priority, but... >> >> > In the case of HELLO, each hello phrase was given the 'charset' >> > property corresponding to its language's script, so as to instruct >> > Emacs to choose the most appropriate font for that greeting. >> >> ...this seems to be a different criterion for preferred, not the highest >> priority as defined above > > Not a different criterion, it's just that the 'charset' text property > overrides the charset priority order (as you'd expect). But why override the priority order if the preferred charset by that criterion (namely unicode, in this case) works (i.e. the character is correctly displayed)? I guess because there are cases where the preferred charset according to priority order fails? So then it is not preferred. But then preferred in that case does not mean according to priority order. So I'm still not clear about this... Steve Berman