all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "T.V. Raman" <tv.raman.tv@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: get-char-code-property: reports incorrect char names?
Date: Wed, 01 Sep 2010 02:38:12 -0400	[thread overview]
Message-ID: <E1OqgxY-0002u1-7X@fencepost.gnu.org> (raw)
In-Reply-To: <AANLkTim1=_3tCWMyJHr92RxP8GSMwceGhGbGOd3m-qy1@mail.gmail.com> (tv.raman.tv@gmail.com)

> Date: Tue, 31 Aug 2010 17:36:35 -0700
> From: "T.V. Raman" <tv.raman.tv@gmail.com>
> Cc: tv.raman.tv@gmail.com
> 
> This is using the latest bzr snapshot, with the latest
> unicodedata.txt from the Unicode  consortium.

Did you actually mean "from the Unicode  consortium", i.e. you are
using a file that is different from what we have in the repository?

Introduction of a new UnicodeData.txt file requires to run several
commands in the admin subdirectory, and then rebuild several Lisp
files.  Did you do all that?

> 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

I cannot reproduce this with today's build of the trunk.  I get "CENT
SIGN" for the `name' property of a character inserted by "C-x 8c".
Also, there's no character named "SUPERSET NYA FA SIGN" in
UnicodeData.txt that's in the repository.

Does this happen for you in "emacs -Q"?  If not, there's some other
factor at work here.



  reply	other threads:[~2010-09-01  6:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01  0:36 get-char-code-property: reports incorrect char names? T.V. Raman
2010-09-01  6:38 ` Eli Zaretskii [this message]
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=E1OqgxY-0002u1-7X@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=tv.raman.tv@gmail.com \
    /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.