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 |
README for Guile Reflow
guile-reflow is a simple Guile library for wrapping text in terminals. It integrates with guile's port system and provides an API that allows for easy creation of ports with a restricted line width.
The library attempts to be compatible with non-ascii characters and emoji, using the companion library `guile-runewidth` to determine the best guess at rune widths (a notoriously difficult task to accomplish accurately!).
This library is heavily inspired by the golang library `reflow`.