wrapsoft
WrapSoft is a cross-platform software library and toolkit for text wrapping and line breaking. It provides algorithms to wrap text into lines of a given width, with support for hyphenation, ordinary and soft wrapping, and basic layout features. It is designed to be integrated into text editors, terminal emulators, and document processing pipelines, where consistent wrapping behavior is required across languages and scripts. The core engine emphasizes streaming capability, enabling wrap decisions to be made incrementally as text is produced or consumed.
The architecture consists of a core wrap algorithm implemented in C++, with language-agnostic bindings for Python,
WrapSoft is released under the MIT license and maintains an active development community, with release notes
See also: text wrapping, line breaking algorithms, hyphenation, bidirectional text.