[racket] Unicode character name

From: John Clements (clements at brinckerhoff.org)
Date: Thu May 16 12:16:32 EDT 2013

On May 15, 2013, at 12:18 PM, Danny Yoo wrote:

> It should not be difficult to do this by hand, by taking the contents
> of the Unicode database:
> 
>    http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
> 
> to help define the function that takes unicode characters and returns
> the descriptive name.
> 
> It appears to be a semicolon-separated list of lines.  The first
> column seems to be the code, and the second column seems to be the
> name you're looking for.
> 
> 
> Given that, here is an example implementation of code that defines a
> function to map between the codes and their names:
> 
>    https://gist.github.com/dyoo/5586470
> 
> This implementation may be trying to be a little too clever: it does
> the work of parsing the UnicodeData.txt file at compile time in an
> effort to cache the result to bytecode.  If you use 'raco make' on
> this module,
> 
>    http://docs.racket-lang.org/raco/make.html

Danny, if you're feeling really generous, perhaps it would be worth your time to formulate this as a pull request on 

https://pkg.racket-lang.org/info/unicode-properties

?

John




Posted on the users mailing list.