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: Sat, 03 Aug 2024 21:31:44 +0800 Message-ID: <87plqppwan.fsf@yahoo.com> References: <86h6c5y39e.fsf@gnu.org> <87r0b7i4cn.fsf@turtle-trading.net> <86ttg3umzz.fsf@gnu.org> <87plqrm6dd.fsf@turtle-trading.net> <875xsj83ui.fsf@turtle-trading.net> <87cymqxepd.fsf@protonmail.com> <877ccyq984.fsf@yahoo.com> <871q36x8pi.fsf@protonmail.com> <87wmkyosr5.fsf@yahoo.com> <87wmkxwxzu.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33343"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Benjamin Riefenstahl , Eli Zaretskii , emacs-devel@gnu.org To: pipcet@protonmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 03 15:32:49 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 1saEsL-0008Xe-9S for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Aug 2024 15:32:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saErd-0003UO-Q7; Sat, 03 Aug 2024 09:32:05 -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 1saErc-0003U8-RM for emacs-devel@gnu.org; Sat, 03 Aug 2024 09:32:04 -0400 Original-Received: from sonic317-32.consmr.mail.ne1.yahoo.com ([66.163.184.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1saEra-0007WK-3R for emacs-devel@gnu.org; Sat, 03 Aug 2024 09:32:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722691918; bh=dLOZ3lk5C//dmOObpUIYL/YTJhrNT5k+lCDzf2jgsqI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Wt8RalD91I+Axj3JOZqu9Oy3oUa/BmuJLJ6aAZv552hWdkrr38XsMSLmRL+Z/x79A1nTauMujb+yI+M53HcDKapq+N0H/da6M1IWyJ+kHyoguccMHSq7UzE8hKU5P5aLXYQNCRRv+NQaGQRH3bJQisHFBt8vIOXxcpGM+zQ1wm7booibbSavSNyGd8sUCPiFEdd0GzNYlTmVG9wxoTtJ2yMm1zDnb1M+i9rWoJRamFhWCG79I/zJVJeeHXGN+yHJykHNzoVY8BxJNjxO0+HAT5YX2yVU7MfQk+Vi1d5oHcN/JHpCdC+vEzU876PZjDnVt2zMSh3TpjF/5AMtU4lcwg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1722691918; bh=V1wHUpkHQHaohCjQiWVSB2nCqdK8Zm5I1w3GaWP9gdg=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Wp1fpZ7KWmZ3ZV3qFjxH5C3oxbeitzDLLGjrjMyWWh2sV0E32FyyQDoTkKjnOzzj6XgWrrB67/DffPb6wK2dsfDoxrl5i5oDNDSX3Ze6V4kSXKYjJoXCdxW+fXDrDUL3vpKBUK99JkVdnvQCnXKW3jrRgxZDlS+/jfJ97oW/f8MFp4f1pdRChR3xXZgbRqnv/7a1ZPHixKP9wU/+Zv0IMcE5/fk5U8iJGZwNoaT9n/9RoYkeP3E3dUwZdeGT2xY7xJaEXqrZsDaIvA8XM8UIhoWVo3Z4pysPUWzzhIme7K3baE+ozdstoaj22Fg1lIccC4t6uIM6m1qxdbVPo3/ygg== X-YMail-OSG: T0ld100VM1ltg1.loevmRlUxNHFCV44TCba4T8vg5qxiil86grCicazjqFUlXtO KeH2Po6S0UYKWBUk8YZWvk7pRhw85EWomSIRzmyuhiaNhfy_cE4d25DqpRaQPuQtIP0swMWUm85l _WLC6ulKvHYXgZ83FKDFTUFRrs2WQ4MwDduz8ZBfqfOkeMUJa4K4IDQhk72533vQ5t1ei8NVoN2G dn6gz2JwAbvFnh_MIRuG2QwQgPJkFOBq5GRaNGbOVPyEvq4ZJdtKCcOtbJybIDihToHtT31.L11b q4x_JpgcaMGqxanJqbAibcbOjE61SnnByODPeQuX13j4TUPPHFi736QwCEgiog8vgSTdqzDagoNu 1DLyGVT6JLE0_ooduXIrfVfui1JpeE5lHVedIiC5dfgw2BlajAUoNsGNy6YK9wGeKHxYDptfKNFW W0c_KEfCPNP_3blDJEyJgCZ.Nmi7UZ069astW.DLrEOuppU0FcO_Ji14k_Zwg953SaMy3AFVViR5 iCfDhbu44n.luTGjuNkLJosLpxG9JfsczxaLO1UvuS44RP.QSs1wZBRUiUhu_LDWG1UxpChZO44t CyIktzHItuzniHf0Ph.EEnyQaFOq87NJA9gl9nFbFdZ1Pz6LOLtS6rGTgedFPwmWvsgIuPeg4Bpr Ajg9QbsLBUejhdUlMXe_4w9.gXkGbilVmO82UI5nQl3bHY57oVyj2S_wS8fwo67jMjBhc47XeeCA zM5fTrISCOfA3ryYQcs7ovMGiN9sYvAwgr7PomBYHGpDOOrzDsWiyEa0Mef7TTVizKw1YTg7l6B8 9jU2GshxG7Eh93EeilZnXNkzAbm_lubAI2xCPXvodn X-Sonic-MF: X-Sonic-ID: 4461fcf7-9567-4ce2-97c1-e13e4ccc8dd5 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sat, 3 Aug 2024 13:31:58 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-277r8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID bdbe41f92da71e66a228534f74953219; Sat, 03 Aug 2024 13:31:52 +0000 (UTC) In-Reply-To: <87wmkxwxzu.fsf@protonmail.com> (pipcet@protonmail.com's message of "Sat, 03 Aug 2024 13:13:11 +0000") 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.184.43; envelope-from=luangruo@yahoo.com; helo=sonic317-32.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=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:322304 Archived-At: pipcet@protonmail.com writes: > Thanks again! I really appreciate that there's a second set of eyeballs > going over these before pushing to master, let alone emacs-30 :-) > > The next issue on my LineageOS (an Android variant) phone is that the > Noto CJK fonts have an "OTTO" header, not a "true"/00010000 one, so > they're not enumerated at all. At first glance, this doesn't appear to > be a LineageOS quirk; downloads available elsewhere also have the OTTO > header. > > My understanding of the source code is we currently don't support OTTO > fonts at all, and my experiment in forcing the header to be recognized > seems to agree with me there: I get tofu even for ASCII characters, > which FontForge indicates are present in the font. Yes, because OTTO fonts are actually a completely distinct format from TTF, with a unique bytecode language for constructing glyph outlines. See: https://learn.microsoft.com/en-us/typography/opentype/spec/glyphformatcomparison > I have (lossily!) converted Noto Sans CJK SC to TTF format (with a > "glyf" table), and installed that in > /data/data/org.gnu.emacs/files/fonts, customized the "region" face to > use that font, and now I can see some Han characters when I select them, > but they turn into tofu when using the default face. (It's possible this > is due to the experiment I've described above and goes away when I > revert it...) > > Of course, Noto CJK doesn't provide U+20000 (it does provide U+2000B), > so all this is a bit off-topic. That's quite a circutous means of obtaining a TTF version of the Noto CJK fonts. These fonts are compiled into both formats from a number of common source files, and there is an index of the options available at: https://github.com/notofonts/noto-cjk/tree/main/Serif an amalgamation of all CJK variants is: https://github.com/googlefonts/noto-cjk/raw/main/Serif/Variable/OTC/NotoSerifCJK-VF.ttf.ttc but since it is enormous, I suggest installing only those regional variants which cover the scripts you require.