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

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

Re: Convert the hexadecimal character code to the corresponding Unicode


From: Eduardo Ochs
Subject: Re: Convert the hexadecimal character code to the corresponding Unicode value.
Date: Sat, 2 Oct 2021 04:51:31 -0300

On Sat, 2 Oct 2021 at 04:41, Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Sat, Oct 2, 2021 at 2:20 PM Eduardo Ochs <eduardoochs@gmail.com> wrote:
> >
> > Hi Hongyi,
> >
> > does this help?
> >
> >                   (string-to-number "1D4E0" 16)
> >   (char-to-string (string-to-number "1D4E0" 16))
> >           (string (string-to-number "1D4E0" 16))
> >      (format "%c" (string-to-number "1D4E0" 16))
> >           (insert (string-to-number "1D4E0" 16))
> >
> > The entry for 1D4E0 in UnicodeData.txt is:
> >
> >   1D4E0;MATHEMATICAL BOLD SCRIPT CAPITAL Q;Lu;0;L;<font> 0051;;;;N;;;;;
> >
> > I have some hacks to display the characters around a certain
> > entry in UnicodeData.txt here,
> >
> >   http://angg.twu.net/.emacs.html#find-echars-around
> >   (find-wgeta-elisp "http://angg.twu.net/.emacs"; "find-echars-around")
>
> I tried the code snippet above, but it relies on another function
> named as `ee-bol' which is not available there.
>
> HZ

Hi Hongyi,

`find-echars-around' uses several functions from eev...
For example `ee-bol', that is defined here:

  https://github.com/edrx/eev/blob/UTF-8/eepitch.el#L217

[[]] =/, E.



reply via email to

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