vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
vis-digraph.1
(1231B)
1 .Dd January 27, 2017
2 .Dt VIS-DIGRAPH 1
3 .Os Vis VERSION
4 .Sh NAME
5 .Nm vis-digraph
6 .Nd print Unicode character using mnemonics
7 .
8 .Sh SYNOPSIS
9 .
10 .Nm
11 .Ar digraph ...
12 .
13 .Nm
14 .Fl
15 .
16 .Sh DESCRIPTION
17 .
18 .Nm vis-digraph
19 read a digraph from command line argument or standard input and print
20 a corresponding Unicode character to standard output, encoded in current
21 locale.
22 .
23 .Bl -tag -width 8
24 .It Ar digraph
25 A set of two (or more) characters that get replaced by a single Unicode
26 character.
27 .It Fl
28 Read digraph from standard input.
29 .El
30 .Pp
31 Without argument,
32 .Nm
33 displays all available digraphs along with a description.
34 .
35 .Sh ENVIRONMENT
36 .
37 .Bl -tag -width 8
38 .
39 .It Ev LC_CTYPE
40 Locale definition, setting the encoding format of the Unicode character printed out.
41 See
42 .Xr locale 1
43 for more information.
44 .El
45 .
46 .Sh EXIT STATUS
47 .
48 .Bl -tag -width 4
49 .It 0
50 Digraph correctly read recognised and printed out.
51 .It 1
52 Digraph not recognised.
53 .It 2
54 Digraph is the beginning of an existing digraph, but does not correspond to a full digraph.
55 .It 3
56 An error occurred and digraph could not be read or printed.
57 .El
58 .
59 .Sh SEE ALSO
60 .
61 .Xr locale 1 ,
62 .Xr vis 1
63 .
64 .Sh STANDARDS
65 .
66 .Nm
67 follows the digraph format from
68 .Lk http://tools.ietf.org/rfc/rfc1345.txt "RFC 1345"