9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] runetype.c
@ 2005-09-02  6:24 erik quanstrom
  0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2005-09-02  6:24 UTC (permalink / raw)
  To: 9fans

true, but since isalpharune() returns 1 when isupperrune() returns 1,
isalpharune(Ⓐ) returns 1, although the unicode guys say it's a symbol.

also, 3371 (<square> h P a) is listed in _alpha2[] though the unicode
guys say it's a symbol. it also has not upper/lower case.

sorry for being dense, i'm just trying to figure out what the rules are
and why they are the way they are.

erik

-----

> in UnicodeData-3.0.0.txt, these are as predicted, e.g. 24d0 is a lowercase form.


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

* Re: [9fans] runetype.c
  2005-09-02  4:35 erik quanstrom
@ 2005-09-02  5:47 ` Rob Pike
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Pike @ 2005-09-02  5:47 UTC (permalink / raw)
  To: erik quanstrom, Fans of the OS Plan 9 from Bell Labs

in UnicodeData-3.0.0.txt, these are as predicted, e.g. 24d0 is a lowercase form.

-rob

On 9/2/05, erik quanstrom <quanstro@quanstro.net> wrote:
> unicode sure gets wierd if you start looking too closely.
> 
> i'm curious about a few lines in __alpharune2[] and __toupper2[] for example
> 
>         0x3260, 0x327b, /* ㉠ - ㉻ */
> 
> and (from __toupper2[])
> 
>         0x24d0, 0x24e9, 474,    /* ⓐ-ⓩ Ⓐ-Ⓩ */
> 
> and
> 
>         0x3371, 0x3376, /* ㍱ - ㍶ */
> 
> however, from UnicodeData.txt (version 4.1), all of these are classified as symbols.
> 
> so, as far as i can tell, we either:
> 
> (a) declare anything with an upper/lower case a letter, never mind the unicode classification.
> this makes 1  isalpharune(ⓐ)  while 0  isalpharune(㉻), however.
> 
> (b) go with the flow. anything that unicode says is a symbol is not a letter, even if some
> symbols have an uppercase.
> 
> (c) (this appears to be what the current table is doing) anything that either is a letter
> or is composed as "<operator> L+" where L+ are 1..N letter symbols is considered to be a letter.
> 
> 
> any thoughts?
>

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

* [9fans] runetype.c
@ 2005-09-02  4:35 erik quanstrom
  2005-09-02  5:47 ` Rob Pike
  0 siblings, 1 reply; 3+ messages in thread
From: erik quanstrom @ 2005-09-02  4:35 UTC (permalink / raw)
  To: 9fans

unicode sure gets wierd if you start looking too closely.

i'm curious about a few lines in __alpharune2[] and __toupper2[] for example

	0x3260,	0x327b,	/* ㉠ - ㉻ */

and (from __toupper2[])

	0x24d0,	0x24e9, 474,	/* ⓐ-ⓩ Ⓐ-Ⓩ */

and

	0x3371,	0x3376,	/* ㍱ - ㍶ */

however, from UnicodeData.txt (version 4.1), all of these are classified as symbols.

so, as far as i can tell, we either:

(a) declare anything with an upper/lower case a letter, never mind the unicode classification.
this makes 1 == isalpharune(ⓐ)  while 0 == isalpharune(㉻), however.

(b) go with the flow. anything that unicode says is a symbol is not a letter, even if some
symbols have an uppercase.

(c) (this appears to be what the current table is doing) anything that either is a letter
or is composed as "<operator> L+" where L+ are 1..N letter symbols is considered to be a letter.


any thoughts?


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

end of thread, other threads:[~2005-09-02  6:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-02  6:24 [9fans] runetype.c erik quanstrom
  -- strict thread matches above, loose matches on Subject: below --
2005-09-02  4:35 erik quanstrom
2005-09-02  5:47 ` Rob Pike

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 NNTP newsgroup(s).