unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: jsbien@mimuw.edu.pl
Cc: 32599@debbugs.gnu.org
Subject: bug#32599: 25.2; Feature request: input PUA characters by name
Date: Sun, 26 May 2019 21:52:35 +0300	[thread overview]
Message-ID: <837ead2glo.fsf@gnu.org> (raw)
In-Reply-To: <86woidyvbz.fsf@mimuw.edu.pl> (jsbien@mimuw.edu.pl)

> From: jsbien@mimuw.edu.pl (Janusz S. Bień)
> Cc: 32599@debbugs.gnu.org
> Date: Sun, 26 May 2019 19:33:20 +0200
> 
> > The problems I alluded to start from the fact that we exclude the PUA
> > codepoints from the character property database.
> 
> I understand this but I expected, perhaps incorrectly, that the code for
> it is rather simple.

Simple: yes.  But it is also tedious, as there are many characters.
See characters.el.

With PUA codepoints there's one more complication: their attributes
are not standardized, so there should be a way of defining that
dynamically, not as characters.el does for all the other characters
whose attributes are static.

> > This means you cannot change their case and access
> > their syntax category, for example.  Functions that select a suitable
> > font also ignore PUA codepoints, IIRC.
> 
> So the problem is that the relevant code occurs in several places.

No.  Case-fiddling depends on data set up by characters.el, so once
that data is set, all the rest should "just work".  And similarly for
other attributes.

> > Etc. etc. -- Someone™ should
> > go over all the places where we specify character properties and use
> > them, and make sure PUA codepoints aren't disregarded.
> 
> I understand one has to look for the occurences of a function or
> constant. Definitely there are tools to make this easy/easier (many
> years ago I was experimenting with tags file), now I would expect them
> to be quite sophisticated.

I'm not sure such tools will help here.  I think a thorough audit of
the related data and code is needed.

> How would you approach this problem?

I have no idea, sorry.  I mentioned some of the issues in the hope
that will help interested individuals to find the relevant places
easier.  How to modify the code and data in order to allow use of PUA
codepoints, and on top of that to have the properties of each PUA
codepoint determined from external data which isn't known in advance,
is part of the design problem the person who'd like working on this
will have to solve.  Personally, I'm surprised people use PUA for
these purposes, and even more surprised they expect Emacs to support
this.  But that's me.





  reply	other threads:[~2019-05-26 18:52 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <86sh30fg4q.fsf@mimuw.edu.pl>
2018-08-31  6:05 ` bug#32599: 25.2; Feature request: input PUA characters by name Janusz S. Bień
2018-08-31  8:05   ` Robert Pluim
2018-08-31  9:09     ` Janusz S. Bień
2018-08-31 12:34       ` Robert Pluim
2018-08-31 12:54         ` Janusz S. Bień
2019-05-26  8:10           ` Janusz S. Bień
2019-05-26 14:45             ` Eli Zaretskii
2019-05-26 15:18               ` Janusz S. Bień
2019-05-26 15:48                 ` Janusz S. Bień
2019-05-26 16:51                   ` Eli Zaretskii
2019-05-26 16:56                 ` Eli Zaretskii
2019-05-26 17:33                   ` Janusz S. Bień
2019-05-26 18:52                     ` Eli Zaretskii [this message]
2019-05-27  5:48                       ` Janusz S. Bień
2019-05-27 17:11                         ` Eli Zaretskii
2019-05-27 17:39                           ` Janusz S. Bień
2019-05-27 18:45                             ` Eli Zaretskii
2019-05-28  5:18                               ` Janusz S. Bień
2019-05-28  5:34                                 ` Eli Zaretskii
2019-05-28  5:39                                   ` Janusz S. Bień
2020-12-30 17:49                                     ` Janusz S. Bień
2020-12-30 20:52                                       ` Eli Zaretskii
2020-12-31  6:39                                         ` Janusz S. Bień
2020-12-31  7:49                                           ` Eli Zaretskii
2020-12-31  8:14                                             ` Janusz S. Bień
2020-12-31  9:06                                               ` Eli Zaretskii
2020-12-31  9:31                                                 ` Janusz S. Bień
2020-12-31 10:31                                                   ` Eli Zaretskii
2022-04-26 13:09       ` Lars Ingebrigtsen
2022-04-26 13:30         ` Janusz S. Bień
2022-04-26 13:37           ` Lars Ingebrigtsen
2022-04-26 13:44             ` Janusz S. Bień
2022-04-26 13:45               ` Lars Ingebrigtsen
2022-04-26 15:33                 ` Janusz S. Bień
2022-04-26 15:49                   ` Robert Pluim
2022-04-26 16:09                     ` Janusz S. Bień
2022-04-26 16:44                       ` Eli Zaretskii
2022-04-26 18:22                         ` Janusz S. Bień
2022-04-27 11:51                   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837ead2glo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=32599@debbugs.gnu.org \
    --cc=jsbien@mimuw.edu.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).