MAN-RECODE(1)

๐Ÿ“ฆ
version 2.13.1 ยท 6 versions
, in alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ MAN-RECODE(1) โœจ

Manual pager utils ๐Ÿ’–

๐ŸŒธ NAME ๐ŸŒธ

man-recode - convert manual pages to another encoding ๐Ÿฆ‹

๐Ÿ’… SYNOPSIS ๐Ÿ’…

man-recode -t to-code {--suffix=suffix|--in-place} [-dqhV] [filename]

๐Ÿ“– DESCRIPTION ๐Ÿ“–

okay so man-recode converts multiple manual pages from one encoding to another, and it's smart enough to guess the right input encoding for each page ๐Ÿงš it's literally the move when you need to permanently recode pages written in legacy character sets, or when your build system needs every page recoded to one shared encoding (usually UTF-8) before installing โœจ and when you're converting a whole pile of pages, this program is way faster than running man --recode or manconv on each page one by one ๐Ÿ’จ

so here's the vibe check for encodings: if the very first line of a manual page has an encoding declaration, that declaration is used as the input encoding for that page ๐ŸŽ€ if there isn't one, it guesses based on the file name ๐Ÿ”

encoding declarations look like this:

'\" -*- coding: UTF-8 -*-

or, if manual page preprocessors also need to be declared, like this:

'\" t -*- coding: ISO-8859-1 -*-

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -t encoding, --to-code=encoding โ€” convert the manual pages to encoding ๐Ÿ’œ
  • --suffix=suffix โ€” make each output file name by tacking suffix onto the input file name, after stripping off any compression extension ๐Ÿ“
  • --in-place โ€” overwrite each input file with the converted output, after stripping off any compression extension โš ๏ธ
  • -q, --quiet โ€” don't throw error messages when a page can't be converted ๐Ÿ™ˆ
  • -d, --debug โ€” print debugging info ๐Ÿ”
  • -h, --help โ€” print a help message and exit ๐Ÿซถ
  • -V, --version โ€” show version info ๐ŸŒˆ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

iconv(1), man(1), manconv(1) โœจ

๐Ÿ› BUGS ๐Ÿ›

reporting bugs is a love language, so here's where to send them ๐Ÿซถ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Colin Watson (cjwatson@debian.org). iconic behavior, honestly ๐Ÿ’…


version 2.13.1, dated 2025-05-02, bestie. you're welcome ๐ŸŒˆ๐Ÿ’–

๐Ÿ“ฆ where this page comes from