LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

manconv

converts man page encodings

TLDR

Convert encoding from ISO-8859-1 to UTF-8
$ manconv -f [ISO-8859-1] -t [UTF-8] < [input] > [output]
copy
Try multiple input encodings in sequence
$ manconv -f [ISO-8859-1:UTF-8] -t [UTF-8] [input.man]
copy
Convert man page with quiet mode
$ manconv -q -f [latin1] -t [utf-8] [oldpage.1] > [newpage.1]
copy

SYNOPSIS

manconv [options] [file]

DESCRIPTION

manconv converts a manual page from one encoding to another, similar to iconv. Unlike iconv, it can try multiple possible input encodings in sequence. This is useful for manual pages installed in directories without an explicit encoding declaration, since they may be in UTF-8 or in a legacy character set.If an encoding declaration is found on the first line of the manual page, that declaration overrides any input encodings specified on the command line. The tool is part of man-db.

PARAMETERS

FILE

Input file.
-f ENCODINGS, --from-code ENCODINGS
Source encodings (colon-separated list to try in sequence).
-t ENCODING, --to-code ENCODING
Target encoding.
-q, --quiet
Suppress error messages when the page cannot be converted.
-d, --debug
Print debugging information.
-V, --version
Display version information.
-h, --help
Display help information.

CAVEATS

If an encoding declaration is found in the file, it overrides the -f option. Part of man-db; primarily designed for man pages rather than general text conversion.

HISTORY

manconv is part of man-db, handling encoding conversion for manual pages.

SEE ALSO

man(1), iconv(1), groff(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