From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45184: 26.1; Private Unicode plains 15 and 16 seem not supported Date: Sat, 12 Dec 2020 09:45:43 +0200 Message-ID: <83czzf1n88.fsf@gnu.org> References: <87v9d8mdlk.fsf@mimuw.edu.pl> <83k0to14uu.fsf@gnu.org> <87ft4b7di4.fsf@mimuw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1747"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45184@debbugs.gnu.org To: jsbien@mimuw.edu.pl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 12 08:47:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1knzcW-0000MF-Sh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 08:47:12 +0100 Original-Received: from localhost ([::1]:52544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knzcU-0006Fn-GP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 02:47:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knzcM-0006Fc-HC for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 02:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knzcM-0000kz-9v for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 02:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knzcM-0001Kb-83 for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 02:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Dec 2020 07:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45184 X-GNU-PR-Package: emacs Original-Received: via spool by 45184-submit@debbugs.gnu.org id=B45184.16077591705026 (code B ref 45184); Sat, 12 Dec 2020 07:47:02 +0000 Original-Received: (at 45184) by debbugs.gnu.org; 12 Dec 2020 07:46:10 +0000 Original-Received: from localhost ([127.0.0.1]:43834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knzbV-0001J0-Uq for submit@debbugs.gnu.org; Sat, 12 Dec 2020 02:46:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knzbR-0001IC-Om for 45184@debbugs.gnu.org; Sat, 12 Dec 2020 02:46:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43718) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knzbL-0000F0-T9; Sat, 12 Dec 2020 02:45:59 -0500 Original-Received: from [176.228.60.248] (port=1839 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1knzbJ-0001ic-WA; Sat, 12 Dec 2020 02:45:58 -0500 In-Reply-To: <87ft4b7di4.fsf@mimuw.edu.pl> (jsbien@mimuw.edu.pl) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195822 Archived-At: > From: jsbien@mimuw.edu.pl (Janusz S. Bień) > Cc: 45184@debbugs.gnu.org > Date: Sat, 12 Dec 2020 07:19:15 +0100 > > On Fri, Dec 11 2020 at 22:10 +02, Eli Zaretskii wrote: > > severity 45184 wishlist > > This is a bug report, not a feature request. It is a report about a missing functionality, thus a feature request. > > That's because Emacs has no idea that you are using SPUA planes for > > Polish. > > The fact that I want to use the characters for Polish is irrelevant. Not the way Emacs looks up fonts installed on the system. It uses the character's script and then a database of representative script characters to find appropriate candidate fonts. > > You need to tell Emacs about that by augmenting your fontset. > > The PUA from the Basic Multulingual Plane are used by me for years and > do not require doing anything with the fontset. For example, LATIN SMALL > LETTER LONG S WITH FLOURISH (coming from the Medieval Unicode Font > Initiative) is displayed without problem and the appropriate font is > found automatically: > > character:  (displayed as ) (codepoint 59575, #o164267, #xe8b7) > xft:-psbk-Junicode-normal-normal-normal-*-15-*-*-*-*-0-iso10646-1 (#x94C) AFAIK, this happens by sheer luck. Of course, my expertise in this part of Emacs is rather limited, so I might be missing something. Corrections with explanations are welcome. > > (And even after you do that, there could be problems, because Emacs > > doesn't treat PUA ranges of Unicode codepoints as characters.) > > Really? What do you exactly mean? My experience contradicts this > statement. Please look at the various settings of character-related databases in Emacs: they basically deny PUA codepoints any reasonable character properties. IOW, Emacs doesn't know anything about these codepoints, in terms of the character attributes and properties it needs for proper support. Font selection is just the tip of the iceberg. The feature we miss is some facility to tell Emacs the semantics of a range of PUA codepoints, so that the rest of the code will support them properly and correctly. > I think the Emacs code just for some reason limits the range of the > Unicode characters, and the limitation should be removed. Any evidence that such a limitation exists and/or where does it happen?