[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 03:20:00 -0300 |
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")
but the code is ugly - I wrote it in a hurry ages ago and never
cleaned the code up...
Cheers,
Eduardo Ochs
http://angg.twu.net/#eev
On Fri, 1 Oct 2021 at 07:28, Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> I noticed some comments on the escape syntax used by Emacs from here
> [1-2]. By default, the `describe-char' command will give the code
> point representation of the character in hexadecimal and octal
> formats, say, #o240, #xa0. So, I want to if there is a convenient way
> to do the conversion between the hexadecimal character code
> representation and the corresponding Unicode value.
>
> [1] http://ergoemacs.org/emacs/elisp_unicode_representation_in_string.html
> [2] (info "(elisp) General Escape Syntax")
>
> Regards, HZ
>
Re: Convert the hexadecimal character code to the corresponding Unicode value., Eli Zaretskii, 2021/10/01
Re: Convert the hexadecimal character code to the corresponding Unicode value.,
Eduardo Ochs <=
- Re: Convert the hexadecimal character code to the corresponding Unicode value., Hongyi Zhao, 2021/10/02
- Re: Convert the hexadecimal character code to the corresponding Unicode value., Eduardo Ochs, 2021/10/02
- Re: Convert the hexadecimal character code to the corresponding Unicode value., Hongyi Zhao, 2021/10/02
- Re: Convert the hexadecimal character code to the corresponding Unicode value., Eduardo Ochs, 2021/10/02
- Re: Convert the hexadecimal character code to the corresponding Unicode value., Hongyi Zhao, 2021/10/03
- Re: Convert the hexadecimal character code to the corresponding Unicode value., Eduardo Ochs, 2021/10/03
- Re: Convert the hexadecimal character code to the corresponding Unicode value., Hongyi Zhao, 2021/10/03