This package ports part of the Unicode Character Database to Typst. Notably, it includes information from UnicodeData.txt and Blocks.txt.
Usage
This package defines a single function: codepoint
. It lets you get the information related to a specific codepoint. The codepoint can be specified as a string containing a single character, or with its value.
#codepoint("โ").name \
#codepoint(sym.times).block \
#codepoint(0x00C9).general-category
You can display a codepoint in the style of Template:Unichar using the show
entry:
#codepoint("ยค").show \
#codepoint(sym.copyright).show \
#codepoint(0x1249).show \
#codepoint(0x100000).show
Changelog
Version 0.1.0
- Add the
codepoint
function.