Library inspired by https://github.com/mattn/go-runewidth and https://github.com/rivo/uniseg to handle the width and segmenting of Unicode runes and graphemes
doc | ||
runewidth | ||
scripts | ||
tests | ||
.gitignore | ||
COPYING | ||
guix.scm | ||
HACKING | ||
hall.scm | ||
README | ||
README.org | ||
runewidth.scm |
README for Guile Runewidth
guile-runewidth
is a simple Guile library that provides several new Guile character sets for categorizing
East Asian characters and emoji. This can be useful when determining the width of characters.
This library is heavily inspired by the golang library runewidth
.
Scripts
There are two scripts which can be used to regenerate the character set files. These are optional to run, since
the script's output is stored in the repository at runewidth/eastasian.scm
and runewidth/emoji.scm
.
However, should the source change as the unicode spec changes, these can be refreshed.