1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
.\" Man page for man-recode
.\"
.\" Copyright (C) 2019 Colin Watson <cjwatson@debian.org>
.\"
.\" You may distribute under the terms of the GNU General Public
.\" License as specified in the file docs/COPYING.GPLv2 that comes with the
.\" man-db distribution.
.pc
.TH %thman_recode% 1 "%date%" "%version%" "Manual pager utils"
.SH NAME
%man_recode% \- convert manual pages to another encoding
.SH SYNOPSIS
.B %man_recode%
.B \-t
.I to-code
{\|\fB\-\-suffix=\fIsuffix\/\fR\||\|\c
.BR \-\-in\-place \|}
.RB [\| \-dqhV \|]
.RI [\| filename \|]
.SH DESCRIPTION
.B %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
.B %man% \-\-recode
or
.B %manconv%
on each page.
.PP
If an encoding declaration is found on the first line of a manual page, then
that declaration is used as the input encoding for that page.
Failing that, the input encoding is guessed based on the file name.
.PP
Encoding declarations have the following form:
.PP
.RS
.nf
.if !'po4a'hide' \&\(aq\e" \-*\- coding: UTF\-8 \-*\-
.fi
.RE
.PP
or (if manual page preprocessors are also to be declared):
.PP
.RS
.nf
.if !'po4a'hide' \&\(aq\e" t \-*\- coding: ISO\-8859\-1 \-*\-
.fi
.RE
.SH OPTIONS
.TP
\fB\-t\fR \fIencoding\/\fR, \fB\-\-to\-code=\fIencoding\fR
Convert manual pages to
.IR encoding .
.TP
\fB\-\-suffix=\fIsuffix\fR
Form each output file name by appending
.I suffix
to the input file name, after removing any compression extension.
.TP
.if !'po4a'hide' .B \-\-in\-place
Overwrite each input file with the output, after removing any compression
extension.
.TP
.if !'po4a'hide' .BR \-q ", " \-\-quiet
Do not issue error messages when the page cannot be converted.
.TP
.if !'po4a'hide' .BR \-d ", " \-\-debug
Print debugging information.
.TP
.if !'po4a'hide' .BR \-h ", " \-\-help
Print a help message and exit.
.TP
.if !'po4a'hide' .BR \-V ", " \-\-version
Display version information.
.SH "SEE ALSO"
.if !'po4a'hide' .IR iconv (1),
.if !'po4a'hide' .IR %man% (1),
.if !'po4a'hide' .IR %manconv% (1)
.SH BUGS
.if !'po4a'hide' https://gitlab.com/man-db/man-db/-/issues
.br
.if !'po4a'hide' https://savannah.nongnu.org/bugs/?group=man-db
.SH AUTHOR
.nf
.if !'po4a'hide' Colin Watson (cjwatson@debian.org).
.fi
|