From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 15afa72460b: Fix 'script-representative-chars' for the 'han' script Date: Wed, 07 Aug 2024 08:17:08 +0800 Message-ID: <87le19nq4b.fsf@yahoo.com> References: <172267024373.1752.11669700725951474437@vcs2.savannah.gnu.org> <20240803073044.42052C1CAF7@vcs2.savannah.gnu.org> <8734nmq7ls.fsf@yahoo.com> <86cympvdej.fsf@gnu.org> <87le1dp2gb.fsf@yahoo.com> <86y15bos1w.fsf@gnu.org> <87sevio729.fsf@yahoo.com> <86jzgtq3xz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18510"; 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 Wed Aug 07 02:18:35 2024 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 1sbUNu-0004f6-SE for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Aug 2024 02:18:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbUN2-0003Ik-Ej; Tue, 06 Aug 2024 20:17:40 -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 1sbUMz-00039D-Qx for emacs-devel@gnu.org; Tue, 06 Aug 2024 20:17:38 -0400 Original-Received: from sonic316-21.consmr.mail.ne1.yahoo.com ([66.163.187.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sbUMx-00035h-Qr for emacs-devel@gnu.org; Tue, 06 Aug 2024 20:17:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722989848; bh=+A8+fwGdo+JejyKp5yIRZZPXqBbjoVA2Glj+TLAcmTo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=WIoDQRt2a/ChpxSWnO8iqCRGChXsfCTc6XWDZ74vW/bT592y5hu5fMbDg2sV6CG4Xc7DVcdRB+N9TIM/UJRJxpdC1Y0YcbOH9s+WYgn/gQ3fLkaEdaSrVa35PEG6skCkN1SGbEYJcuA7oMMuoc6U6wVmHSKcyW6fGG73oMSEO6uRZeVPErCj43nq2XRmz1fhACfNwWLEkiq3OKhln6m8VKq46YkoHAn0S5wczxNH8l1qsvvM4+ZZHQSXRGVzwZFpavWM1fplBz2p8bZGTdxG4cjdnlhmc4sfKAF7YP5DRcoKmRpYlj05hn87mZt4QAG2V9WFfqxZJDjQU2HuHrC5VQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722989848; bh=HLsbmB2rt005BPJtl3jH3DQsLFkrfObE8ydr39NA5Fp=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Ds/QV5H5WUKsVM68fN5mbdnW/x595eXSZ8iF6L/8oniKYuvGNEOcgn9L94XkyxBq3s9D0dBBz7vwuif7bUIRRicIuc86Cba9cLzErmAeHOLW0l+OxeiXOGhEO/kASxLCqyKgtzx7dV+lz+Ls8+6uiwiKuDuIaSFIxp45p2FGwCdnvZfUvzP947niEAD5P1CEc6z5R2p6j4hBhvVcclerJMtQMy7EI9edZ7nCB2pEAteIJZQtf9MksYTuVjrTllG43mW/aSIytpBD5mS35mn6D4FdWbnOLwtvPrIbx44nLFJDfhbyTwe7xHWS8qi1TlMfXGIW1Hoo3yHmsNQDRx3xQA== X-YMail-OSG: Wq4Fxe4VM1nqJemRwPzdNn5EOqGaA2A8PziUWAl.b8Hoei0Y51ies2_luYTSZhj PkpKrTkuKIKAv4HnPKxUZtXJneQJQEZEvPz3942XV.YmAOoooz1Tz7cl0s2RWWaHnp19TlVDpXm1 Hqp7dYeFbceeJN9aa5JdFDDpKz5y0R3Snwl5dG68QR6euWBsU21W8ZvCrlqCIWhQ65AZKzFex5Js hzl.ijhId3MbTMFUWyNN8lM5dIkH35ZcZZ4fSU9T14SsnG5EP9EUajoahtU0xTk6DWWUVQ4Sc.5w jNsZ5Pibsd.n2cAeGGDR_ROI0pM2hkPI6El9JyWJze4W.7KsiyDWk7i4ERmop2QfbCViN3xuWhdC GomLr1kzOBN2ReZmShrwaaFEwMTjr5DlwiYAJ.cn6ylnHAJ4vuziIUF0nMwmcExYYWC44gZ2pFUu wHGyabE4x.nXKGWOlWD4YndUJwsvGJe_.KhfAg9fa9pMT3fG7fo.rzJaNQxtIiPLqDtFJrNqxoH7 Pz7RyZzz21jYavPWs9thX83N0EWSP_RF1bvBd9xt2mLVLnJeFxomY6jdKERxwOnA28j.jUs953lc Aglp1QJ1KMJpcHrGcpCrSAHgViYaBBtE6ymqHyUBVcA5GM6hX5SMt4EUTTNTJRwNfO4a99fJf97o z8DW5vgyuKvu4MAxIAyHzqwH.KC6F2vwdIif6bexfXasxoM5qQvxoSdks9yeiLAOeNVUWZ6rUWwc k.AUc_J7w8Y75xbcR9.HiF9QjQcT_jbj5HvKvedqd17fh7V43.D.QcZEl3FmnqW1nQX0Xb04U8cg WqJAskXpKLjt5UX04HR16Dx0WcfTPUiiA16BTbtaK7 X-Sonic-MF: X-Sonic-ID: 0872489f-6a2e-43f3-88ef-cb6cc65d52d4 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Wed, 7 Aug 2024 00:17:28 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-nnv8r (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 813d7587dbd0aa0256d69c321345f873; Wed, 07 Aug 2024 00:17:24 +0000 (UTC) In-Reply-To: <86jzgtq3xz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Aug 2024 14:35:36 +0300") X-Mailer: WebService/1.1.22544 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.147; envelope-from=luangruo@yahoo.com; helo=sonic316-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:322470 Archived-At: Eli Zaretskii writes: > Note that I said "if you remove those characters". > > If you did note that, then does it mean when U+2F75 needs to be > installed and the current font for han doesn't support it, Emacs will > never try to look for _another_ font which supports han characters? > Or will it try, but always fail? How do you mean? During Emacs's search for a suitable font, it is yet to decide what is the "current font for han." >> > IOW, I'm interested to know what happens on GNU/Linux if more than one >> > font is available that together cover both the "usual" han characters >> > and those additional ones which you think we should remove from >> > script-representative-chars, but neither of these fonts supports all >> > of those characters. Can Emacs solve this by itself on GNU/Linux, or >> > does it need "help" from the user's customization of the fontset? >> >> Probably the latter, unless `han' is divided into scripts for >> characters, obsolete characters, radicals, and the like. > > That is again quite disappointing, since I always thought font > backends based on Fontconfig can do a better job, because (AFAIR) > Fontconfig caches the font information and makes it available for > programs that search fonts covering specific characters. Fontconfig is capable of this, but not telepathy. If Emacs submits multiple requests for such and such a list of characters, ftfont cannot telepathically deduce that in the one instance it should only consider those characters which are in common usage, while in the other radicals or obsolete characters. > What you describe happens on MS-Windows, but there we don't have a way > to test whether a font supports a character without actually loading > the font (the 'has_char' backends method always fails).