On this page:
Package codepoint
0.1

Package codepoint🔗ℹ

Simon Johnston <johnstonskj@gmail.com>

This package provides types that describe individual Unicode codepoints, codepoint ranges, and character properties. The following example demonstrates the query of certain character properties that explain the behavior of combining the letter #\a with the character U+0304.

Examples:
> (codepoint? 772)

#t

> (ucd-name 772)

"COMBINING MACRON"

> (ucd-general-category 772)

'Mn

> (cdr (assoc (ucd-general-category 772) *general-categories*))

"Non-spacing mark"

> (ucd-canonical-combining-class 772)

230

> (cdr (assoc (ucd-canonical-combining-class 772) *combining-classes*))

"Distinct marks directly above"

> (string #\a (codepoint->char 772))

"ā"

The functions in codepoint/properties return the values extracted from the Unicode Character Database, and the only conversion is typically string to number or string to symbol. Descriptions of the values that are returned are gathered in codepoint/enums for display purposes.