Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Note

This file is used to generate the Typst Universe page. It is processed by /build.py.

Unichar

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.name \
#codepoint(0x00C9).general-category \
#codepoint(sym.eq).math-class \
#codepoint("⧖").info.aliases

You can display a codepoint in the style of Template:Unichar using the show entry:

#codepoint(sym.aleph).show \
#codepoint(sym.angzarr).show \
#codepoint(0x1249).show \
#codepoint(0x100000).show