devdraw: accept 5- and 6-byte Unicode hex values

Alt X 1234 for U+1234
Alt X X 12345 for U+12345
Alt X X X 103456 for U+103456.
This commit is contained in:
Russ Cox 2020-05-29 21:19:32 -04:00
parent 2c70acc3ab
commit 3850e6e177
2 changed files with 45 additions and 15 deletions

View file

@ -58,7 +58,7 @@ The up arrow scrolls backward.
.PP
Characters in Plan 9 are runes (see
.IR utf (7)).
Any 16-bit rune can be typed using a compose key followed by several
Any rune can be typed using a compose key followed by several
other keys.
The compose key is also generally near the lower right of the main key area:
the
@ -72,14 +72,21 @@ key on the SLC, the
key on the Magnum, and either
.B Alt
key on the PC.
After typing the compose key, type a capital
.L X
and exactly four hexadecimal characters (digits and
To type a single rune with the value specified by
a given four-digit hexadecimal number,
type the compose key,
then a capital
.LR X ,
and then the four hexadecimal digits (decimal digits and
.L a
to
.LR f )
to type a single rune with the value represented by
the typed number.
.LR f ).
For a longer rune, type
.L X
twice followed by five digits,
or type
.L X
three times followed by six digits.
There are shorthands for many characters, comprising
the compose key followed by a two- or three-character sequence.
The full list is too long to repeat here, but is contained in the file