asciifaceman / rslice

Golang rune slice ([]rune) operations
MIT License
0 stars 0 forks source link

Feature: Produce a [][]rune from a []rune given width, height, and a wordwrap bool #2

Open asciifaceman opened 11 months ago

asciifaceman commented 11 months ago

Conform(slice []rune, width int, height int, wrap bool) should produce a [][]rune of width width and height height with control characters processed as well as the final output conformed to the width and height while abiding by wrap (whether to attempt to wrap words or not).

Problems:

See #1 - graphemes may tamper with the expected []rune width which can introduce interesting problems if you are expecting a 1:1 rune:cell relationship in render loops