unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Unicode Char Names: describe-char-unicode-data vs get-char-code-property
@ 2013-12-27 20:09 T.V. Raman
  2013-12-27 20:31 ` Eli Zaretskii
  2013-12-27 21:05 ` T.V. Raman
  0 siblings, 2 replies; 5+ messages in thread
From: T.V. Raman @ 2013-12-27 20:09 UTC (permalink / raw)
  To: emacs-devel

I use describe-char-unicode-data to speak unicode chars in
emacspeak when navigating by character.

That function claims to be semi-obsolete -- and recommends
get-char-code-property instead; however the answers are not
consistent in the two solutions.

Try non-breaking space \240 (octal)

(setq char ? )
160 (#o240, #xa0, ? )
(describe-char-unicode-data char) returns
(("Name" "NO-BREAK SPACE") ("Category" "Separator, Space")
("Combining class" "Zs") ("Bidi category" "Zs") ("Decomposition"
"noBreak ") ("Decimal digit value" nil) ("Digit value" nil)
("Numeric value" nil) ("Mirrored" nil) ("Old name" "NON-BREAKING
SPACE") ("ISO 10646 comment" nil) ("Uppercase" nil) ...)
whereas
(get-char-code-property char 'name) returns
"COMMA NO-SHE IOTA ARABIC DIAERESIS"
also looking up char in ucs-names yields something different
(car (rassoc char (ucs-names))) returns
"NON-NEITHER UNDER CM COMMA"
Note that all of the above is with the unicdoedata file present
and correctly found by emacs.


Also, and perhaps related:

C-x 8 spc inserts non-breaking space correctly; however when you
use C-x 8 ret, non-breaking space doesn't show up in the
available completions -- either using it's "name" or "old-name"
--



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unicode Char Names: describe-char-unicode-data vs get-char-code-property
  2013-12-27 20:09 Unicode Char Names: describe-char-unicode-data vs get-char-code-property T.V. Raman
@ 2013-12-27 20:31 ` Eli Zaretskii
  2013-12-27 20:46   ` T.V. Raman
  2013-12-27 21:05 ` T.V. Raman
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2013-12-27 20:31 UTC (permalink / raw)
  To: T.V. Raman; +Cc: emacs-devel

> Date: Fri, 27 Dec 2013 12:09:36 -0800
> From: "T.V. Raman" <tv.raman.tv@gmail.com>
> 
> I use describe-char-unicode-data to speak unicode chars in
> emacspeak when navigating by character.
> 
> That function claims to be semi-obsolete -- and recommends
> get-char-code-property instead; however the answers are not
> consistent in the two solutions.
> 
> Try non-breaking space \240 (octal)
> 
> (setq char ? )
> 160 (#o240, #xa0, ? )
> (describe-char-unicode-data char) returns
> (("Name" "NO-BREAK SPACE") ("Category" "Separator, Space")
> ("Combining class" "Zs") ("Bidi category" "Zs") ("Decomposition"
> "noBreak ") ("Decimal digit value" nil) ("Digit value" nil)
> ("Numeric value" nil) ("Mirrored" nil) ("Old name" "NON-BREAKING
> SPACE") ("ISO 10646 comment" nil) ("Uppercase" nil) ...)
> whereas
> (get-char-code-property char 'name) returns
> "COMMA NO-SHE IOTA ARABIC DIAERESIS"
> also looking up char in ucs-names yields something different
> (car (rassoc char (ucs-names))) returns
> "NON-NEITHER UNDER CM COMMA"
> Note that all of the above is with the unicdoedata file present
> and correctly found by emacs.

I cannot reproduce any of these.  For me, both
describe-char-unicode-data and get-char-code-property returns the same
name, "NO-BREAK SPACE", and from ucs-names I get "NON-BREAKING SPACE",
which is the "Old Name" property of that character.

> Also, and perhaps related:
> 
> C-x 8 spc inserts non-breaking space correctly; however when you
> use C-x 8 ret, non-breaking space doesn't show up in the
> available completions -- either using it's "name" or "old-name"

This also works as expected on my system.

Please dig deeper into your configuration and customizations, the
answer is somewhere there.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Unicode Char Names: describe-char-unicode-data vs get-char-code-property
  2013-12-27 20:31 ` Eli Zaretskii
@ 2013-12-27 20:46   ` T.V. Raman
  0 siblings, 0 replies; 5+ messages in thread
From: T.V. Raman @ 2013-12-27 20:46 UTC (permalink / raw)
  To: Eli Zaretskii, emacs-devel

Interesting.  Any tips on where in my customization/configuration
I should dig:-)
-- 

-- 


On 12/27/13, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Fri, 27 Dec 2013 12:09:36 -0800
>> From: "T.V. Raman" <tv.raman.tv@gmail.com>
>>
>> I use describe-char-unicode-data to speak unicode chars in
>> emacspeak when navigating by character.
>>
>> That function claims to be semi-obsolete -- and recommends
>> get-char-code-property instead; however the answers are not
>> consistent in the two solutions.
>>
>> Try non-breaking space \240 (octal)
>>
>> (setq char ? )
>> 160 (#o240, #xa0, ? )
>> (describe-char-unicode-data char) returns
>> (("Name" "NO-BREAK SPACE") ("Category" "Separator, Space")
>> ("Combining class" "Zs") ("Bidi category" "Zs") ("Decomposition"
>> "noBreak ") ("Decimal digit value" nil) ("Digit value" nil)
>> ("Numeric value" nil) ("Mirrored" nil) ("Old name" "NON-BREAKING
>> SPACE") ("ISO 10646 comment" nil) ("Uppercase" nil) ...)
>> whereas
>> (get-char-code-property char 'name) returns
>> "COMMA NO-SHE IOTA ARABIC DIAERESIS"
>> also looking up char in ucs-names yields something different
>> (car (rassoc char (ucs-names))) returns
>> "NON-NEITHER UNDER CM COMMA"
>> Note that all of the above is with the unicdoedata file present
>> and correctly found by emacs.
>
> I cannot reproduce any of these.  For me, both
> describe-char-unicode-data and get-char-code-property returns the same
> name, "NO-BREAK SPACE", and from ucs-names I get "NON-BREAKING SPACE",
> which is the "Old Name" property of that character.
>
>> Also, and perhaps related:
>>
>> C-x 8 spc inserts non-breaking space correctly; however when you
>> use C-x 8 ret, non-breaking space doesn't show up in the
>> available completions -- either using it's "name" or "old-name"
>
> This also works as expected on my system.
>
> Please dig deeper into your configuration and customizations, the
> answer is somewhere there.
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Unicode Char Names: describe-char-unicode-data vs get-char-code-property
  2013-12-27 20:09 Unicode Char Names: describe-char-unicode-data vs get-char-code-property T.V. Raman
  2013-12-27 20:31 ` Eli Zaretskii
@ 2013-12-27 21:05 ` T.V. Raman
  2013-12-27 21:32   ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: T.V. Raman @ 2013-12-27 21:05 UTC (permalink / raw)
  To: emacs-devel, raman

Following-up to myself and Eli:

I moved out my .emacs.d/elpa directory and the problem goes away
--- it's going to be a lot harder to identify the offending elpa
installed package:-)
-- 

-- 


On 12/27/13, T.V. Raman <tv.raman.tv@gmail.com> wrote:
> I use describe-char-unicode-data to speak unicode chars in
> emacspeak when navigating by character.
>
> That function claims to be semi-obsolete -- and recommends
> get-char-code-property instead; however the answers are not
> consistent in the two solutions.
>
> Try non-breaking space \240 (octal)
>
> (setq char ? )
> 160 (#o240, #xa0, ? )
> (describe-char-unicode-data char) returns
> (("Name" "NO-BREAK SPACE") ("Category" "Separator, Space")
> ("Combining class" "Zs") ("Bidi category" "Zs") ("Decomposition"
> "noBreak ") ("Decimal digit value" nil) ("Digit value" nil)
> ("Numeric value" nil) ("Mirrored" nil) ("Old name" "NON-BREAKING
> SPACE") ("ISO 10646 comment" nil) ("Uppercase" nil) ...)
> whereas
> (get-char-code-property char 'name) returns
> "COMMA NO-SHE IOTA ARABIC DIAERESIS"
> also looking up char in ucs-names yields something different
> (car (rassoc char (ucs-names))) returns
> "NON-NEITHER UNDER CM COMMA"
> Note that all of the above is with the unicdoedata file present
> and correctly found by emacs.
>
>
> Also, and perhaps related:
>
> C-x 8 spc inserts non-breaking space correctly; however when you
> use C-x 8 ret, non-breaking space doesn't show up in the
> available completions -- either using it's "name" or "old-name"
> --
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unicode Char Names: describe-char-unicode-data vs get-char-code-property
  2013-12-27 21:05 ` T.V. Raman
@ 2013-12-27 21:32   ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2013-12-27 21:32 UTC (permalink / raw)
  To: T.V. Raman; +Cc: raman, emacs-devel

> Date: Fri, 27 Dec 2013 13:05:49 -0800
> From: "T.V. Raman" <tv.raman.tv@gmail.com>
> 
> I moved out my .emacs.d/elpa directory and the problem goes away
> --- it's going to be a lot harder to identify the offending elpa
> installed package:-)

Bisecting them would be my suggestion.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-27 21:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-27 20:09 Unicode Char Names: describe-char-unicode-data vs get-char-code-property T.V. Raman
2013-12-27 20:31 ` Eli Zaretskii
2013-12-27 20:46   ` T.V. Raman
2013-12-27 21:05 ` T.V. Raman
2013-12-27 21:32   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).