Bit arithmetic on Unicode characters?

Hans Åberg haberg-1 at telia.com
Fri Oct 7 03:43:44 CDT 2016


> On 7 Oct 2016, at 09:27, Garth Wallace <gwalla at gmail.com> wrote:
> 
> Unicode doesn't really address chess piece properties like white/black beyond naming conventions.

>From the formal point of view, Unicode only assigns character numbers (code points), which gets a binary representation first when encoded, like with UTF-8 which makes it agree with ASCII for small numbers. The math alphabetical letters are out of order because of legacy, but that is not a problem as one will use an interface that sorts it out. These numbers are only for display to humans, and computers are nowadays fast enough to sort it out. A chess program has its own, optimized representation anyway.

So possibly you might add more properties.





More information about the Unicode mailing list