help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find all the name and alias corresponding to a codepoint in Emacs.


From: Hongyi Zhao
Subject: Re: Find all the name and alias corresponding to a codepoint in Emacs.
Date: Mon, 21 Mar 2022 09:12:52 +0800

On Mon, Mar 21, 2022 at 12:14 AM Felix Dietrich
<felix.dietrich@sperrhaken.name> wrote:
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> >> Date: Sat, 12 Mar 2022 19:20:11 +0800
> >> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
> >>
> >> > > Character code properties: customize what to show
> >> > >   name: GRAVE ACCENT
> >> > >   old-name: SPACING GRAVE
> >> > >   general-category: Sk (Symbol, Modifier)
> >> > >   canonical-combining-class: 0 (Spacing, split, enclosing, reordrant,
> >> > > and Tibetan subjoined)
> >> > >   bidi-class: ON (Other Neutrals)
> >> > >   decomposition: (96) ('`')
> >> > >   mirrored: N
> >> >
> >> > Why is that a problem?
> >>
> >> The "grave accent" is also named as "backtick" or "backquote", and I
> >> hope to see all these names in Emacs.
> >
> > We only show the Unicode data, and it has only "SPACING GRAVE" as an
> > alternative name.
>
> A somewhat harebrained idea of mine queries Wikidata for aliases stored
> there.  Use the command ‘wd-char-aliases-show’ to display a list of
> aliases for the character under the cursor.  This sketch has no comments
> or docstrings, nor does it check for errors.  The query is slow and
> might very well not be entirely correct.  (I do not have much of an
> understanding of SPARQL and Wikidata.)  Maybe it can still be of use to
> you – or of interest as a curiosity.

Nice. It gives the following query result for "`" discussed here:

varia
grave accent
typewritten backtick
bareia
backquote
backtick
grave

Best,
HZ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]