From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T.V. Raman" Newsgroups: gmane.emacs.devel Subject: Unicode Char Names: describe-char-unicode-data vs get-char-code-property Date: Fri, 27 Dec 2013 12:46:03 -0800 Message-ID: References: <8361qa3uio.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1388177166 28837 80.91.229.3 (27 Dec 2013 20:46:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2013 20:46:06 +0000 (UTC) To: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 27 21:46:12 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VweIL-0003Ds-VZ for ged-emacs-devel@m.gmane.org; Fri, 27 Dec 2013 21:46:10 +0100 Original-Received: from localhost ([::1]:50257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VweIL-0004DC-Lb for ged-emacs-devel@m.gmane.org; Fri, 27 Dec 2013 15:46:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VweII-0004Cx-Og for emacs-devel@gnu.org; Fri, 27 Dec 2013 15:46:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VweIH-0007ZN-Rw for emacs-devel@gnu.org; Fri, 27 Dec 2013 15:46:06 -0500 Original-Received: from mail-vc0-x22f.google.com ([2607:f8b0:400c:c03::22f]:62288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VweIG-0007Z5-DN; Fri, 27 Dec 2013 15:46:04 -0500 Original-Received: by mail-vc0-f175.google.com with SMTP id lf12so3823529vcb.20 for ; Fri, 27 Dec 2013 12:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=a7s1VsEi4lJnw+i9SZfK7LpKRvtKpsST/VugcYEXwvE=; b=fk6qdis9mMIKdmeJkI4zA92MJDFX6ryfVTCr54wj0gAt504LXdGHsoQZIi9rbsERKh FSnTpsdUnZahnCOgg+JtYpQThz6zhbT4SQaJ2eW0ccJZmlCNeuzIHNlkOxqklGGjRx46 P0ndk8TXdANyy5MMuVobyT+vYBwbc4x+jqTuo1J8E1i6TTBbBdjZpeppJbzk6FWgWHU7 HoMBXRzjhQ2BfFR7zQdEgTDTR54s5RSR3jP7SHIUxFUrx6f9loPNwj2dZPDJ3fbcl3gp XarhC3MBMN5n139DfhagxHoDm3Ct2B9iZJDvgh2enAIKMBWUGd5CXxjkpi+asvL8BX9u lRdg== X-Received: by 10.52.191.98 with SMTP id gx2mr6060353vdc.71.1388177163722; Fri, 27 Dec 2013 12:46:03 -0800 (PST) Original-Received: by 10.58.109.132 with HTTP; Fri, 27 Dec 2013 12:46:03 -0800 (PST) In-Reply-To: <8361qa3uio.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166922 Archived-At: Interesting. Any tips on where in my customization/configuration I should dig:-) -- -- On 12/27/13, Eli Zaretskii wrote: >> Date: Fri, 27 Dec 2013 12:09:36 -0800 >> From: "T.V. Raman" >> >> 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. >