aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorjosuah <mail@josuah.net>2017-01-27 17:03:14 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-27 21:09:02 +0100
commitb8afec996a400fe42e110033031443d18175d4cd (patch)
tree867380968f313cc22d78c58981b2a0a7879d8676 /man
parent8871316904a9a9cf75f94fae4d6cef76b7271bc2 (diff)
downloadvis-b8afec996a400fe42e110033031443d18175d4cd.tar.gz
vis-b8afec996a400fe42e110033031443d18175d4cd.tar.xz
vis-digraph: add utility to handle digraphs
Hook it up via Lua to <C-k> in insert and replace mode. Close #460 #475
Diffstat (limited to 'man')
-rw-r--r--man/vis-digraph.168
-rw-r--r--man/vis.11
2 files changed, 69 insertions, 0 deletions
diff --git a/man/vis-digraph.1 b/man/vis-digraph.1
new file mode 100644
index 0000000..b55852f
--- /dev/null
+++ b/man/vis-digraph.1
@@ -0,0 +1,68 @@
+.Dd January 27, 2017
+.Dt VIS-DIGRAPH 1
+.Os Vis VERSION
+.Sh NAME
+.Nm vis-digraph
+.Nd print Unicode character using mnemonics
+.
+.Sh SYNOPSIS
+.
+.Nm
+.Ar digraph ...
+.
+.Nm
+.Fl
+.
+.Sh DESCRIPTION
+.
+.Nm vis-digraph
+read a digraph from command line argument or standard input and print
+a corresponding Unicode character to standard output, encoded in current
+locale.
+.
+.Bl -tag -width 8
+.It Ar digraph
+A set of two (or more) characters that get replaced by a single Unicode
+character.
+.It Fl
+Read digraph from standard input.
+.El
+.Pp
+Without argument,
+.Nm
+displays all available digraphs along with a description.
+.
+.Sh ENVIRONMENT
+.
+.Bl -tag -width 8
+.
+.It Ev LC_CTYPE
+Locale definition, setting the encoding format of the Unicode character printed out.
+See
+.Xr locale 1
+for more information.
+.El
+.
+.Sh EXIT STATUS
+.
+.Bl -tag -width 4
+.It 0
+Digraph correctly read recognised and printed out.
+.It 1
+Digraph not recognised.
+.It 2
+Digraph is the beginning of an existing digraph, but does not correspond to a full digraph.
+.It 3
+An error occured and digraph could not be read or printed.
+.El
+.
+.Sh SEE ALSO
+.
+.Xr locale 1 ,
+.Xr vis 1
+.
+.Sh STANDARDS
+.
+.Nm
+follows the digraph format from
+.Lk http://tools.ietf.org/rfc/rfc1345.txt "RFC 1345"
diff --git a/man/vis.1 b/man/vis.1
index 3e99b54..781c732 100644
--- a/man/vis.1
+++ b/man/vis.1
@@ -1290,6 +1290,7 @@ Spawn background process and pipe range to its standard input:
.Sh SEE ALSO
.Xr vis-clipboard 1 ,
.Xr vis-complete 1 ,
+.Xr vis-digraph 1 ,
.Xr vis-menu 1 ,
.Xr vis-open 1 ,
.Xr vi 1