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
Vivianne Langdon
dc90b8fd6c
- Have to break the match statement into specific section and non-specific section - (some ordering is still unclear to me, lets see if we can copy more go-uniseg unit tests) - Add emoji to the grapheme list - First character must be processed first - then state transition done on next char with peek! - Fix other off-by-one issues, now unit tests pass! |
||
---|---|---|
doc | ||
scripts | ||
tests | ||
uniseg | ||
.gitignore | ||
COPYING | ||
guix.scm | ||
HACKING | ||
hall.scm | ||
README | ||
README.org | ||
uniseg.scm |
README for Guile Uniseg
guile-uniseg
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 libraries uniseg
and uniseg
.
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 uniseg/eastasian.scm
and uniseg/emoji.scm
.
However, should the source change as the unicode spec changes, these can be refreshed.