aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-11 14:19:39 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-11 14:31:37 -0400
commitd3ec525b7d6ecd8de064d3f3a54d112769d1d3b3 (patch)
tree935b51f95afb513604c82c9e1efca223af60c109 /doc
parentFix git clone link in readme (diff)
downloadcli-d3ec525b7d6ecd8de064d3f3a54d112769d1d3b3.zip
Add unicode support to justify
Diffstat (limited to 'doc')
-rw-r--r--doc/justify.14
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/justify.1 b/doc/justify.1
index 1b7a4f6..cba6024 100644
--- a/doc/justify.1
+++ b/doc/justify.1
@@ -44,8 +44,8 @@ An error occurred (e.g., read error).
.SH NOTES
Before appending a word to the current line, the program ensures there is enough space for the word (and a space if not the first word). If not enough space remains, the current line is flushed (justified) and a new line is started.
-.SH LIMITATIONS
-The program assumes ASCII text. This means if multi-byte characters are provided, the output would not be justified correctly.
+.SH UNICODE SUPPORT
+The program supports UTF-8 encoded text and correctly handles multi-byte characters when calculating line widths. Display width is determined using Unicode East Asian Width properties, so full-width and wide characters (such as CJK characters) are counted as taking two columns, while most other characters take one column.
.SH AUTHOR
Eugene Triguba <hello@eugenetriguba.com>