LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

preconv

Convert encoding for groff input processing

TLDR

Convert encoding for groff
$ preconv [file]
copy
Specify input encoding
$ preconv -e [utf-8] [file]
copy
Debug mode
$ preconv -d [file]
copy

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
copy
sudo dnf install groff-base
copy
sudo pacman -S groff
copy
sudo apk add groff
copy
sudo zypper install groff
copy
brew install groff
copy
nix profile install nixpkgs#groff
copy

CAVEATS

Groff preprocessor. Usually called automatically.

HISTORY

preconv was created as a groff preprocessor for encoding conversion.

SEE ALSO

groff(1), troff(1), iconv(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid