aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-13 06:30:23 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-13 06:30:23 -0500
commitd77820c5a04d9bb930ee95df2fbc28bfca87ddfe (patch)
treeb76d744d0d025a14d12402a4eb41bac686bcb65c
parentae5af3deb1137d06214ef95e96998a5c1ebb6746 (diff)
downloaduxd-d77820c5a04d9bb930ee95df2fbc28bfca87ddfe.tar.gz
tweak man page, fix Japanese text example
-rw-r--r--uxd.114
-rw-r--r--uxd.rst14
2 files changed, 16 insertions, 12 deletions
diff --git a/uxd.1 b/uxd.1
index d9fb7d4..826f47f 100644
--- a/uxd.1
+++ b/uxd.1
@@ -55,6 +55,8 @@ to a pager, try \fBless \-R\fP\&.
There are no options yet.
.SH OUTPUT FORMAT
.sp
+The output is designed to fit in an 80\-column terminal.
+.sp
Each line of output consists of eighteen columns: the offset from the
start of the file (in hex; minimum 4 digits), 16 bytes of hex
data (or empty cells, if the last line of the dump is for fewer than
@@ -89,15 +91,15 @@ the man page requires your man command to support UTF\-8 embedded in
the man page. If the examples looks mangled, try viewing the source
(uxd.rst) in a text editor.
.sp
-Japanese text example:
+Example copied from the Japanese \fBls\fP(1) man page:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
-$ echo ¥ǥ£¥ | uxd
-0000: c2\-a5 c7\-a5 c2\-a3 c2\-a5 0a ¥ǥ£¥↵
- GGGGG YYYYY GGGGG YYYYY PP GYGYP
+$ echo デフォル | ./uxd
+0000: e3\-83\-87 e3\-83\-95 e3\-82\-\-a9 e3\-83\-ab 0a デフォル↵
+ GGGGGGGG YYYYYYYY GGGGGGGGG YYYYYYYY PP G Y G Y P
.ft P
.fi
.UNINDENT
@@ -107,8 +109,8 @@ The colors are indicated by G/Y/P, for green, yellow, and purple. The
character above each letter is displayed in that color.
.sp
From the colorization, and from the dashes between the bytes, it\(aqs
-obvious that "c2 a5" is the hex representation of the first ¥
-character, and that the ǥ is represented by "c7 a5".
+obvious that "e3 83 87" is the hex representation of the first
+character, and that the 2nd is represented by "e3 83 95.
.sp
The newline is displayed in purple because it\(aqs not a regular
printable character. Its human\-readable representation is ↵. Note
diff --git a/uxd.rst b/uxd.rst
index 35bf9eb..45c452e 100644
--- a/uxd.rst
+++ b/uxd.rst
@@ -46,6 +46,8 @@ There are no options yet.
OUTPUT FORMAT
=============
+The output is designed to fit in an 80-column terminal.
+
Each line of output consists of eighteen columns: the offset from the
start of the file (in hex; minimum 4 digits), 16 bytes of hex
data (or empty cells, if the last line of the dump is for fewer than
@@ -82,18 +84,18 @@ the man page requires your man command to support UTF-8 embedded in
the man page. If the examples looks mangled, try viewing the source
(uxd.rst) in a text editor.
-Japanese text example::
+Example copied from the Japanese **ls**\(1) man page::
- $ echo ¥ǥ£¥ | uxd
- 0000: c2-a5 c7-a5 c2-a3 c2-a5 0a ¥ǥ£¥↵
- GGGGG YYYYY GGGGG YYYYY PP GYGYP
+ $ echo デフォル | ./uxd
+ 0000: e3-83-87 e3-83-95 e3-82--a9 e3-83-ab 0a デフォル↵
+ GGGGGGGG YYYYYYYY GGGGGGGGG YYYYYYYY PP G Y G Y P
The colors are indicated by G/Y/P, for green, yellow, and purple. The
character above each letter is displayed in that color.
From the colorization, and from the dashes between the bytes, it's
-obvious that "c2 a5" is the hex representation of the first ¥
-character, and that the ǥ is represented by "c7 a5".
+obvious that "e3 83 87" is the hex representation of the first
+character, and that the 2nd is represented by "e3 83 95.
The newline is displayed in purple because it's not a regular
printable character. Its human-readable representation is ↵. Note