preconv
Convert encoding for groff input processing
TLDR
Convert encoding for groff
$ preconv [file]
Specify input encoding$ preconv -e [utf-8] [file]
Debug mode$ preconv -d [file]
SYNOPSIS
preconv [options] [files]
DESCRIPTION
preconv is a groff preprocessor that converts input files from various character encodings (UTF-8, Latin-1, etc.) into a format that groff can process. It translates non-ASCII characters into groff escape sequences, enabling groff to handle Unicode and other multi-byte encodings.The tool is typically invoked automatically by groff when needed, but can also be used explicitly in preprocessing pipelines. It detects the input encoding from BOM markers, coding tags, or locale settings.
PARAMETERS
FILES
Input files.-e ENCODING
Input encoding.-d
Debug output.-r
Do not add .lf lines.
INSTALL
sudo apt install groff-base
sudo dnf install groff-base
sudo pacman -S groff
sudo apk add groff
sudo zypper install groff
brew install groff
nix profile install nixpkgs#groff
CAVEATS
Groff preprocessor. Usually called automatically.
HISTORY
preconv was created as a groff preprocessor for encoding conversion.
