Fabian42 / bash_scripts

Contains various bash scripts that I have written mainly for myself.
The Unlicense
5 stars 0 forks source link

len, wrap, tablewrap: Handle fullwith characters #5

Open Fabian42 opened 2 years ago

Fabian42 commented 2 years ago

Examples: 君の名は

wc from coreutils also fails at this.

Difficulty: Figuring out which character is fullwidth, because they are distributed over various Unicode ranges and more might come in the future.

Fabian42 commented 2 years ago

Possibly useful packages include term "wcwidth".