Scroll to navigation

MAN-RECODE(1) 手册分页显示工具 MAN-RECODE(1)

名称

man-recode - 将手册页转换为另一种编码

概述

man-recode -t 目标编码 {--suffix=suffix|--in-place} [-dqhV] [文件名]

描述

man-recode converts multiple manual pages from one encoding to another, guessing the appropriate input encoding for each one. It is useful when permanently recoding pages written in legacy character sets, or in build systems that need to recode a set of pages to a single common encoding (usually UTF-8) for installation. When converting many manual pages, this program is much faster than running man --recode or manconv on each page.

如果在手册页的第一行找到了编码声明,该声明将作为处理该手册页所使用的编码。否则将基于文件名猜测输入的编码方式。

编码的声明应使用如下的格式:

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

或(如果手册页预处理器也要声明):

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

选项

将手册页转换为制定 编码
Form each output file name by appending suffix to the input file name, after removing any compression extension.
Overwrite each input file with the output, after removing any compression extension.
在页面无法转换时不显示错误消息。
打印调试信息。
打印帮助消息并退出。
显示版本信息。

亦见

iconv(1), man(1), manconv(1)

BUGS

https://savannah.nongnu.org/bugs/?group=man-db

作者

Colin Watson (cjwatson@debian.org).
2021-02-08 2.9.4