[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AproposUnicode
From: |
Janusz S. Bień |
Subject: |
Re: AproposUnicode |
Date: |
Mon, 28 Dec 2020 19:16:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
On Mon, Dec 28 2020 at 10:11 -08, Drew Adams wrote:
>> > Only partly related to this thread, and just FYI.
>> > My library `apu.el' (Apropos Unicode) can sometimes
>> > help with showing info about Unicode chars.
>>
>> I've made a quick test and looks like I would like it, but it seems that
>> you completely ignore private use characters. For example, U+E8BF
>> described by ‘describe-char’ as general-category: Co (Other, Private
>> Use) is completely ignored by `describe-chars-in-region'.
>
> Thanks for trying it.
>
> First, I'm no expert on Unicode, by any means.
>
> I use `get-char-code-property' to check for Unicode
> chars, checking properties `name' and `old-name':
>
> (or (get-char-code-property character 'name)
> (get-char-code-property character 'old-name))
>
> If a char doesn't have either of those properties
> then I flag it as not being a Unicode char.
>
> (Perhaps the message shouldn't say it's not a Unicode
> char. I'm no expert on the terminology. Perhaps it
> should just say that the char has no name.)
I see in the code the message
"The following chars are not recognized as Unicode:\n%s"
but it is not printed in the described situation. This seems to be just
a bug.
> Maybe you can suggest a code change to do something
> more like what you expect? If so, please do. Thx.
With pleasure. Should I do this off the list?
Best regards
Janusz
--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien
- Help with unicode diacritics, Stephen Eglen, 2020/12/28
- Re: Help with unicode diacritics, Stephen Eglen, 2020/12/30
- Re: Help with unicode diacritics, Janusz S. Bień, 2020/12/30
- Re: Help with unicode diacritics, Stephen Eglen, 2020/12/30
- Re: Help with unicode diacritics, Eli Zaretskii, 2020/12/30
Re: Help with unicode diacritics, Eli Zaretskii, 2020/12/28