all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, Kenichi Handa <handa@m17n.org>
Subject: bidi properties from uniprop tables
Date: Fri, 19 Aug 2011 13:44:48 +0900	[thread overview]
Message-ID: <87k4aako1r.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <83ei0isfok.fsf@gnu.org>

Eli Zaretskii writes:

 > Such undefined characters should not normally appear in any text,

Somebody misread the standard, I think.  In Unicode, everything in the
space 0 -- (2^20-1) is a character, with a few well-defined exceptions
called non-characters.  Most, however do not (yet) appear in the UCD,
but are reserved for future standardization.  Since the standard
regularly adds new characters, older versions of Emacs are very likely
to encounter reserved characters "normally" in "some" texts.

The UCD makes provision for this by providing definitions of some
properties for *all code points* (not merely all defined characters).
Unassigned (including noncharacter) code points automatically get the
General_Category property with value Cn (Unicode 6.0, section 4.5,
Table 4.9).  They also automatically get the Name property, with value
"" (the null string, Unicode 6.0, section 4.8, "Formal Definition of
the Name Property", p. 132.

 > I made the code in bidi.c defensive about what it gets from the

Maybe that should be an assert, since a null return is an Emacs bug.

 > uniprop table, but the question is, should we do something to never
 > have nil in Lisp or zero in C return from these APIs?

Yes, a non-nil property list is required by the standard for all code
points (not merely "all characters"), and it is obvious that in this
case conforming to the standard is useful.



  reply	other threads:[~2011-08-19  4:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-18 19:06 bidi properties from uniprop tables Eli Zaretskii
2011-08-19  4:44 ` Stephen J. Turnbull [this message]
2011-08-19  6:43   ` Eli Zaretskii
2011-08-19  9:15     ` Stephen J. Turnbull
2011-08-19 10:36       ` Eli Zaretskii
2011-08-19 12:10         ` Stephen J. Turnbull
2011-08-20 12:42         ` Kenichi Handa
2011-08-20 13:00           ` Eli Zaretskii
2011-08-23 12:51   ` Kenichi Handa
2011-08-23 14:49     ` Eli Zaretskii
2011-08-23 23:36       ` Kenichi Handa

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=87k4aako1r.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.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.