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 bf0aeaa0d7a: Re-enable displaying `han' characters on Android Date: Thu, 01 Aug 2024 08:07:35 +0800 Message-ID: <87plqtf6m0.fsf@yahoo.com> References: <86h6c5y39e.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="17494"; 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 Thu Aug 01 02:08:52 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 1sZJND-0004Oq-Pd for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Aug 2024 02:08:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZJMK-0004Ox-1D; Wed, 31 Jul 2024 20:07:56 -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 1sZJMH-0004OQ-7l for emacs-devel@gnu.org; Wed, 31 Jul 2024 20:07:53 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sZJMF-0003eR-Nq for emacs-devel@gnu.org; Wed, 31 Jul 2024 20:07:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722470866; bh=erGZ3PJWRCP1A4Eqbs7M2nopz7bh0QcN3DLRNwMyam8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=M8DQuR6u0O3yMvwvgaCLAsH3zrmgz18m0jxLMOsS3J+lnukdMLJqledHk18uiuvjMxIfbZhB9jjDs9k0Lhlycn9Jj0wS9lKX+hPaDNKiTdScJPhnUHk9z1CtWJm0msEzVvMrHGpIrGKSM1nobM7570UCKNSZDC0JAN/JonufooRw1zRRNt+jzOSnU67Jdghmndf12+qH+Dq1GxlOgjW36GoRqPRRwP5PiBWmoK3qakbA2vFpvHjVqhsRyAh5BQbASQI6z5Rvrt4ZwSaqVbXIMl7dPPpKQ5Xh9/SMl7mVvSJVM7e9bE8DrrYm/tG9m6whNSW5QjEunmhA1cvTufrg0w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722470866; bh=qDQURKrfMtoqNxXrukpiVVsVI20ckbM+N9V2fV2/Ltt=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Q8tYwX/uVMrpzUE9w4VOiYCPRpSHgoel4lgHp1oBbj9DTGC3ya2dI2fqw3VutbgEC/9WhZv4Q46AU6Ns/emLWWmP7igalIJf3j1Z+2bRnGZfM4pc3kK09tMQEdnUWzechYZR0QL9QqyVkT6d7N8yZD/j84sOz4ndO0ZNJgnclW+8wmlNJ+b2KN17jwdSa9lwYQEGBpEg7/3tD7BZw3HY4By7NndF97F5lX6O/hDSH2OmzKhVakCLiCPRiKiVGwsdj72I7PsNWYi3dZQn4s6umZpVC6BFDiuna+eqp7o/FJrJzKIyJF5RS7zVKMT5XPF8KaKwQruOovVz0WGd/qdzOg== X-YMail-OSG: 3zvYQN8VM1lIDcV2x81AOMldKnB3jVYZ2Qkpcit_uF8lX37ev6_IVKLvhCAD5r7 VCOgoo0IpAZWWyHZ2mxxIuBiGwvjhg2LdGapXbFKHyUKU61NQEyuXcyvLPzDJVltKcBZa.l774.w HC6PwpPKZ5Ty056XZp0ppdLNT4qNQWEiULjqMMGQAQzC8GVDNlrmBLQ7CaVjurx2M6NAuUPbxMfy jMLeXrhgh0.BqzVDFPxZ.y13KidP5IYUx8hDmdK0crmvklQpSPhi33C6q4KRj9_Hboo_6DkilLzy 3aSsnNe20oDTXMsIS8rp2MzznQl.hYmXqI6XmgaCOOJF8V7MfQ2ibZnz_n.XKOYCFLAyBr6k5n8I gc4inp3uLIQbgJu6xG_oD4VBbabC3IW25719EHgdibXbYdQ9jBEEIBhcOQhlMF5OHtPNX7YTJgPV 28Qqoa0h3jGz994pb8MfrEMcJSTEzcaRbBle80t27W4hKWSN5PuoVfG3_IZDn6PzCD51qB0vkA3r b.jRBfKK4zrCAMl.L40gXP8hk_FVpNZpuH225g.ESd2xSWNwzO4dPMyRcFeKWosVCuFJFX4H1FkQ 0wOCvHMUMLtg18FUoms1pAeqttjLaJCu7vvzAMnX7IV__G97yExcqlOirCyKCFeH19ugiUp9WJYT FwmrO_OGY7pCVrr_Pna6sK.xqw8FcEde0F3cI.QmrpR7S4EHZI42v5eaA9tiY_UGpVI.XRpMLgu_ YJRTWccnrrt7TLH.x55kUdE5xV255yfe5y7CSNQIbPhmYKxMBGchKV3bBWVdNrBd61KShJa2UYFk VJWONF2Dx2Oyhbmg.OfU07DWw8UiGwTtn0E8trEMmj X-Sonic-MF: X-Sonic-ID: 6defe448-4241-48e7-96ed-08f7ba449cc0 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 1 Aug 2024 00:07:46 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-kzxtv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a8c72dde1de05252179a64a430f0878c; Thu, 01 Aug 2024 00:07:42 +0000 (UTC) In-Reply-To: <86h6c5y39e.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 31 Jul 2024 18:45:01 +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.190.33; envelope-from=luangruo@yahoo.com; helo=sonic307-10.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:322236 Archived-At: Eli Zaretskii writes: > I've reverted the above commit. The change which added those > characters was not an accident: I found that Emacs would choose an > inappropriate (sub-optimal) font for Chinese characters because it > generally stops looking once it find the first font that fulfills the > requirements. The reason behind your discovery is that with your choice of `script-representative-chars', no font will ever match this font spec (in the default fontset): ,(font-spec :registry "iso10646-1" :script 'han) so that Emacs returns to the preceding ones, which specify a design language rather than a script: ,(font-spec :registry "iso10646-1" :lang 'ja) ,(font-spec :registry "iso10646-1" :lang 'zh) which is supported elsewhere than on Android. > The font Emacs sometimes selects due to those characters missing > lacked support for important Han blocks because those blocks had no > characters in script-representative-chars. I didn't revert your change in whole, only characters beyond the BMP that seldom appear in real Chinese writing; of the characters that were deleted: #x1f210 #x20000 #x2a700 #x2b740 #x2b820 #x2ceb0 #x2f804 the first is "SQUARED CJK UNIFIED IDEOGRAPH-624B", which is a stylized variant of its base character that is absent from Droid Sans Fallback. The remainder, #x2a700, #x2b740, #x2b820, #x2ceb0, and #x2f804 are esoteric characters that are provided by no CJK font on my GNU/Linux system, or compatibility ideographs that were never designed to be displayed. Needless to say, neither are they provided by any of the CJK fonts users will probably install on Android > If this causes problems to Android, then please implement a fix that > is specific to Android, without affecting other platforms. It does affect other platforms, but I'm only in the habit of installing master regularly on Android.