Uppercase character predicate

Nikolaos Chatzikonstantinou <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <CAAQmekf6j0+HcXOED_Xg3yMJjw_OmBBnW=a81rXD4z3=hv0xxQ@mail.gmail.com>
Hello list,

I tried using the `char-uppercase-p' with the MATHEMATICAL FRAKTUR
CAPITAL A character (unicode #x1d504) but it evaluated to nil. I
peeked through `describe-char' to see how it comes up with the
description above (since I can use it to detect if a character is
capital) and I came up with this:

  (defun my/upcase-p (ch)
    "Check if CH is uppercase.

  Slower, but more accurate than `char-uppercase-p'."
    (string-match-p "CAPITAL"
                    (get-char-code-property ch 'name)))

This function works for my needs, but why doesn't `char-uppercase-p'
evaluate to true for this character?

-- 
Regards,
Nikolaos Chatzikonstantinou
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.