Determine columns needed for a fixed-size wide-character string
wcwidth is a simple Nim port of wcwidth implemented in C by Markus Kuhn.
import wcwidth
doAssert "コンニチハ世界".wcswidth == 14 # while "コンニチハ世界".runelen == 7
doAssert "Pokémon GETだぜ!".wcswidth == 17 # while "Pokémon GETだぜ!".runelen == 21This library use Unicode v12.0.0 which is the same as Nim supporting version. std/unicode
nim c -r tools/generate_table.nim