unicode.1 (1247B)
- .\" Collection of utilities inspired by Plan9
- .\" Copyright 2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2023-08-31
- .Dt UNICODE 1
- .Os
- .Sh NAME
- .Nm unicode
- .Nd Encode/Decode unicode characters
- .Sh SYNOPSIS
- .Nm
- .Ar hexmin Ns - Ns Ar hexmax
- .Nm
- .Fl n
- .Ar characters ...
- .Nm
- .Op Fl t
- .Ar codepoints ...
- .Sh DESCRIPTION
- .Bl -tag -width Ds
- .It Nm Ar hexmin Ns - Ns Ar hexmax
- prints a table of unicode characters,
- .Ar hexmin
- and
- .Ar hexmax
- specifies respectively the first and last characters of the table,
- each in hexadecimal.
- .It Nm Fl n Ar characters ...
- prints each character's codepoint on a separated line.
- .It Nm Oo Fl t Oc Ar codepoints ...
- encodes each given codepoint, written in hexadecimal and prints them out.
- Separated by newlines unless
- .Fl t
- is specified.
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh EXAMPLES
- .Bl -tag -width Ds
- .It Ql unicode -n hello
- Print unicode values of characters in the string "hello"
- .It Ql unicode 2200-22f1
- Print a table of miscellaneous mathematical symbols.
- .It Ql unicode -t 03b3 03b5 03b9 03b1
- Prints
- .Ql γεια
- (with no newline,
- .Ql 0a
- wasn't given)
- .El
- .Sh SEE ALSO
- .Xr unicode 7
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+9utils@hacktivis.me