Parse vim-style digraphs in text streams.
One of the many cool features of vim is the ability to input character digraphs directly in the editor using C-k
. This program aims at providing the same functionality outside of the editor.
make && sudo make install
Digraph can be installed from the AUR
When reading a file or stream, digraph
looks for a text anchor (defaults to #
) and tries to combine the two following characters into a digraph. For instance,
echo "Fatigu#'e" | digraph
will result in Fatigué
.
If no digraphs are found, the first of the two characters is returned.
This project reuses most of the features found in vim's digraph.c. Only the RFC1345 set of digraphs is implemented so far.
Distributed under the GPL.