all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "T.V. Raman" <tv.raman.tv@gmail.com>
To: emacs-devel@gnu.org
Cc: tv.raman.tv@gmail.com
Subject: get-char-code-property: reports incorrect char names?
Date: Tue, 31 Aug 2010 17:36:35 -0700	[thread overview]
Message-ID: <AANLkTim1=_3tCWMyJHr92RxP8GSMwceGhGbGOd3m-qy1@mail.gmail.com> (raw)

This is using the latest bzr snapshot, with the latest
unicodedata.txt from the Unicode  consortium.


I noticed that I was hearing incorrect character names for
unicode chars from Emacspeak --- and it's possibly due to a bug
in get-char-code-property.

The solution that works  describe-char-unicode-data --- is
declared to be semi-obsolete.

To see the problem, see code fragments and result of evaluation:

The  character used is the "cent sign" ==
¢ inserted via C-x 8c in the buffer.

(loop for p in
      (mapcar 'car char-code-property-alist)
      do
      (insert
       (format "%s: %s\n" p (get-char-code-property ?¢ p ))))

titlecase: nil
lowercase: nil
uppercase: nil
iso-10646-comment: nil
old-name: nil
mirrored: N
numeric-value: nil
digit-value: nil
decimal-digit-value: nil
decomposition: nil
bidi-class: ET
canonical-combining-class: 0
general-category: Sc
name: SUPERSET NYA FA SIGN


Compared to what describe-char-unicode-data returns for the same
character: note particularly the Name field.
(describe-char-unicode-data ?¢)
(("Name" "CENT SIGN")
 ("Category" "Symbol, Currency")
 ("Combining class" "Sc")
 ("Bidi category" "Sc")
 ("Decomposition" nil)
 ("Decimal digit value" nil)
 ("Digit value" nil)
 ("Numeric value" nil)
 ("Mirrored" nil)
 ("Old name" nil)
 ("ISO 10646 comment" nil)
 ("Uppercase" nil)
 ...)

--



             reply	other threads:[~2010-09-01  0:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01  0:36 T.V. Raman [this message]
2010-09-01  6:38 ` get-char-code-property: reports incorrect char names? Eli Zaretskii
2010-09-01  7:05 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTim1=_3tCWMyJHr92RxP8GSMwceGhGbGOd3m-qy1@mail.gmail.com' \
    --to=tv.raman.tv@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.