unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: bidi properties from uniprop tables
Date: Tue, 23 Aug 2011 21:51:03 +0900	[thread overview]
Message-ID: <87wre4watk.fsf@m17n.org> (raw)
In-Reply-To: <87k4aako1r.fsf@uwakimon.sk.tsukuba.ac.jp> (stephen@xemacs.org)

In article <87k4aako1r.fsf@uwakimon.sk.tsukuba.ac.jp>, "Stephen J. Turnbull" <stephen@xemacs.org> writes:

> Somebody misread the standard, I think.

It's me.  Actually, as far as I remember, the early version
of UCD was not clear about the property values of characters
not listed in UCD, and the early version of unidata-gen.el
was created at that time .  After that, I have not checked
the precise definitions of updated UCDs.

> 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.

I've just installed fixes.  In the latest code,
get-char-code-property never return nil for these
properties:
  name, general-category, canonical-combining-class,
  bidi-class, decomposition, mirrored, old-name,
  iso-10646-comment.

But, it still returns nil for these properties ("string
property" in UCD terminology):
  decimal-digit-value, digit-value, numeric-value,
  uppercase, lowercase, titlecase, mirroring
UCD says that the default value is a character itself for
them, but to implement it, we have to fill all char-table
elements by corresponding characters (which makes the table
very big), or have to implement a special mechanism to
return a character ifself if the value is nil (which I think
is not adequate at the current timing of feature freeze).
So, I just added this kind of statement in the docstring.

   The value nil means that the actual property value of a
   character is the character itself.

---
Kenichi Handa
handa@m17n.org



  parent reply	other threads:[~2011-08-23 12:51 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87wre4watk.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=stephen@xemacs.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 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).