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: Hongyi Zhao
Subject: Re: Convert the hexadecimal character code to the corresponding Unicode value.
Date: Sat, 2 Oct 2021 16:13:12 +0800

On Sat, Oct 2, 2021 at 3:51 PM Eduardo Ochs <eduardoochs@gmail.com> wrote:
>
> 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

Got it. I must activate eev it first as follows:

(use-package eev
  :straight (:host github :repo "edrx/eev")
  :config
  (eev-beginner)
  )

Then, when I hit `M-x fea RET' in the scratch buffer, I get a lot of
garbage code as shown in the screenshot attached here.

HZ

Attachment: eev.png
Description: PNG image


reply via email to

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