| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. |
| 2 |
.TH RECODE "1" "March 2025" "recode 3.7.15" "User Commands" |
| 3 |
.SH NAME |
| 4 |
recode \- converts files between character sets |
| 5 |
.SH SYNOPSIS |
| 6 |
.B recode |
| 7 |
[\fI\,OPTION\/\fR]... [ [\fI\,CHARSET\/\fR] \fI\,| REQUEST \/\fR[\fI\,FILE\/\fR]... ] |
| 8 |
.SH DESCRIPTION |
| 9 |
Recode converts files between various character sets and surfaces. |
| 10 |
.PP |
| 11 |
If a long option shows an argument as mandatory, then it is mandatory |
| 12 |
for the equivalent short option also. Similarly for optional arguments. |
| 13 |
.SS "Listings:" |
| 14 |
.TP |
| 15 |
\fB\-l\fR, \fB\-\-list\fR[=\fI\,FORMAT\/\fR] |
| 16 |
list one or all known charsets and aliases |
| 17 |
.TP |
| 18 |
\fB\-k\fR, \fB\-\-known\fR=\fI\,PAIRS\/\fR |
| 19 |
restrict charsets according to known PAIRS list |
| 20 |
.TP |
| 21 |
\fB\-h\fR, \fB\-\-header[\fR=\fI\,[LN\/\fR/]NAME] |
| 22 |
write table NAME on stdout using LN, then exit |
| 23 |
.TP |
| 24 |
\fB\-T\fR, \fB\-\-find\-subsets\fR |
| 25 |
report all charsets being subset of others |
| 26 |
.TP |
| 27 |
\fB\-C\fR, \fB\-\-copyright\fR |
| 28 |
display copyright and copying conditions |
| 29 |
.TP |
| 30 |
\fB\-\-help\fR |
| 31 |
display this help and exit |
| 32 |
.TP |
| 33 |
\fB\-\-version\fR |
| 34 |
output version information and exit |
| 35 |
.SS "Operation modes:" |
| 36 |
.TP |
| 37 |
\fB\-v\fR, \fB\-\-verbose\fR |
| 38 |
explain sequence of steps and report progress |
| 39 |
.TP |
| 40 |
\fB\-q\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR |
| 41 |
inhibit messages about irreversible recodings |
| 42 |
.TP |
| 43 |
\fB\-f\fR, \fB\-\-force\fR |
| 44 |
force recodings even when not reversible |
| 45 |
.TP |
| 46 |
\fB\-t\fR, \fB\-\-touch\fR |
| 47 |
touch the recoded files after replacement |
| 48 |
.TP |
| 49 |
\fB\-i\fR, \fB\-p\fR, \fB\-\-sequence\fR=\fI\,STRATEGY\/\fR |
| 50 |
ignored for backwards compatibility |
| 51 |
.SS "Fine tuning:" |
| 52 |
.TP |
| 53 |
\fB\-s\fR, \fB\-\-strict\fR |
| 54 |
use strict mappings; discard untranslatable characters |
| 55 |
.TP |
| 56 |
\fB\-d\fR, \fB\-\-diacritics\fR |
| 57 |
convert only diacritics and special characters for |
| 58 |
HTML/LaTeX/BibTeX |
| 59 |
.TP |
| 60 |
\fB\-S\fR, \fB\-\-source\fR[=\fI\,LN\/\fR] |
| 61 |
limit recoding to strings and comments as for LN |
| 62 |
.TP |
| 63 |
\fB\-c\fR, \fB\-\-colons\fR |
| 64 |
use colons instead of double quotes for diaeresis |
| 65 |
.TP |
| 66 |
\fB\-g\fR, \fB\-\-graphics\fR |
| 67 |
approximate IBMPC rulers by ASCII graphics |
| 68 |
.TP |
| 69 |
\fB\-x\fR, \fB\-\-ignore\fR=\fI\,CHARSET\/\fR |
| 70 |
ignore CHARSET while choosing a recoding path |
| 71 |
.TP |
| 72 |
\fB\-I\fR, \fB\-\-prefer\-iconv\fR |
| 73 |
use iconv if possible |
| 74 |
.PP |
| 75 |
Option \fB\-l\fR with no FORMAT nor CHARSET list available charsets and surfaces. |
| 76 |
FORMAT is `decimal', `octal', `hexadecimal' or `full' (or one of `dohf'). |
| 77 |
Unless DEFAULT_CHARSET is set in environment, CHARSET defaults to the locale |
| 78 |
dependent encoding, determined by LC_ALL, LC_CTYPE, LANG. |
| 79 |
With \fB\-k\fR, possible before charsets are listed for the given after CHARSET, |
| 80 |
both being tabular charsets, with PAIRS of the form `BEF1:AFT1,BEF2:AFT2,...' |
| 81 |
and BEFs and AFTs being codes are given as decimal numbers. |
| 82 |
LN is some language, it may be `c', `perl' or `po'; `c' is the default. |
| 83 |
.PP |
| 84 |
REQUEST is SUBREQUEST[,SUBREQUEST]...; SUBREQUEST is ENCODING[..ENCODING]... |
| 85 |
ENCODING is [CHARSET][/[SURFACE]]...; REQUEST often looks like BEFORE..AFTER, |
| 86 |
with BEFORE and AFTER being charsets. An omitted CHARSET implies the usual |
| 87 |
charset; an omitted [/SURFACE]... means the implied surfaces for CHARSET; a / |
| 88 |
with an empty surface name means no surfaces at all. See the manual. |
| 89 |
.PP |
| 90 |
Each FILE is recoded over itself, destroying the original. If no |
| 91 |
FILE is specified, then act as a filter and recode stdin to stdout. |
| 92 |
.SH MAINTAINER |
| 93 |
Maintained by Reuben Thomas <[email protected]>. |
| 94 |
.SH AUTHOR |
| 95 |
Written by François Pinard <[email protected]>. |
| 96 |
.SH "REPORTING BUGS" |
| 97 |
Report bugs at https://github.com/rrthomas/recode |
| 98 |
.SH COPYRIGHT |
| 99 |
Copyright \(co 1990\-2023 Free Software Foundation, Inc. |
| 100 |
.br |
| 101 |
This is free software; see the source for copying conditions. There is NO |
| 102 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 103 |
.SH "SEE ALSO" |
| 104 |
The full documentation for |
| 105 |
.B recode |
| 106 |
is maintained as a Texinfo manual. If the |
| 107 |
.B info |
| 108 |
and |
| 109 |
.B recode |
| 110 |
programs are properly installed at your site, the command |
| 111 |
.IP |
| 112 |
.B info recode |
| 113 |
.PP |
| 114 |
should give you access to the complete manual. |