MAN-RECODE(1)
โจ 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
- alpine 3.24: man-db-doc 2.13.1-r1 ยท GPL-2.0-or-later
- arch rolling: man-db 2.13.1-2 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- debian trixie: man-db 2.13.1-1 ยท GPL-2.0-or-later
- fedora 43: man-db 2.13.1-2.fc43 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: man-db 2.13.1-3.fc44 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- nixos 26.05: man-db 2.13.1
- nixpkgs unstable: man-db 2.13.1
- ubuntu questing: man-db 2.13.1-1 ยท GPL-2.0-or-later
- ubuntu resolute: man-db 2.13.1-1build1 ยท GPL-2.0-or-later
- ubuntu stonking: man-db 2.13.1-1build1 ยท GPL-2.0-or-later
- Copyright (C) 2019 Colin Watson <cjwatson@debian.org>
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms