TextBox.jl

Reshape text
Author FedeClaudi
Popularity
14 Stars
Updated Last
1 Year Ago
Started In
April 2022

TextBox

CI Coverage

Reshape a text (string, or multi-line string) to have a selected width. There's other Julia packages that do this, like TextWrap.jl, but TextBox.jl can also handle alphabets with non-standard unicode characters (e.g. characters with width > 1 and right-to-left languages).

Installation

] add TextBox

Usage:

using TextBox

lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. "
reshape_text(lorem, 31)