.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "CSTOCS 1p" .TH CSTOCS 1p "2019-10-05" "perl v5.28.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" cstocs \-\- charset encoding convertor for the Czech and Slovak languages. .SH "FORMAT" .IX Header "FORMAT" .Vb 1 \& cstocs [options] src_encoding dst_encoding [files ...] .Ve .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& cstocs il2 ascii < file | less \& cstocs \-i utf8 il2 file1 file2 file3 \& cstocs \-\-help .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Cstocs is a simple conversion utility to change charset encoding of a text. It reads either specified files or (if none specified) the standard input, assumes that the input is encoded in \f(CW\*(C`src_encoding\*(C'\fR and ties to reencode it into \f(CW\*(C`dst_encoding\*(C'\fR. The result is written to the standard output. .PP Run \f(CW\*(C`cstocs\*(C'\fR without parameters to get short help and list of available encodings. .PP Characters that are not defined in \f(CW\*(C`src_encoding\*(C'\fR are passed to the output unchanged. .PP If source text contains character, that is defined in \f(CW\*(C`src_encoding\*(C'\fR but not in \f(CW\*(C`dst_encoding\*(C'\fR, it can be handled several ways. For example, character \*(L"e with caron\*(R" (symbol ecaron), and \*(L"d with caron\*(R" (symbol dcaron) are included in the iso\-8859\-2 encoding, but not in the iso\-8859\-1. If you will do reencoding of 8859\-2 text to 8859\-1, you may want to do one of the following actions: .IP "1." 3 Keep it the same, option \f(CW\*(C`\-\-nofillstring\*(C'\fR. .IP "2." 3 Do not produce any output instead of \*(L"ecaron\*(R" symbol, option \f(CW\*(C`\-\-null\*(C'\fR. .IP "3." 3 Substitute some string (possibly a space) instead of both ecaron and dcaron, options \f(CW\*(C`\-\-fillstring\*(C'\fR. .IP "4." 3 Substitute a letter \*(L"d\*(R" instead of dcaron, and \*(L"e\*(R" instead of ecaron. It is even possible to substitute string instead of symbol, so you can replace the \*(L"\s-1AE\*(R"\s0 Latin character with string \*(L"\s-1AE\*(R"\s0 (letter \*(L"A\*(R", and letter \*(L"E\*(R"). Or you can replace a \*(L"plusminus sign\*(R" with a string \&\*(L"+/\-\*(R". These substitutions are described in the \fIaccent\fR file. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\-i, \-i.ext, \-\-inplace.ext" 4 .IX Item "-i, -i.ext, --inplace.ext" Files specified will be converted in-place, using Perl \f(CW\*(C`\-i\*(C'\fR facility. Optionaly, an extension for backup copies may be specified after dot. This parameter \fBhas\fR to be the first one, if specified. .IP "\-\-dir directory" 4 .IX Item "--dir directory" Encoding files are taken from \fIdirectory\fR instead of the default, which is \fICz/Cstocs/enc\fR in the Perl lib tree. The location of encoding files can also be changed using the \fI\s-1CSTOCSDIR\s0\fR environment variable, but the \-\-dir option has the highest priority. .IP "\-\-fillstring string" 4 .IX Item "--fillstring string" If source text contains character, that is defined in the \&\f(CW\*(C`src_encoding\*(C'\fR but not in the \f(CW\*(C`dst_encoding\*(C'\fR nor in the \fIaccent\fR file (or \fIaccent\fR file is not used), it is replaced by \f(CW\*(C`string\*(C'\fR. The default is single space. .IP "\-\-nofillstring" 4 .IX Item "--nofillstring" Disable changes of characters that would otherwise have fillstring applied. This is different from \f(CW\*(C`\-\-null\*(C'\fR because that cancels that character out. .IP "\-\-null" 4 .IX Item "--null" Completely equivalent to \-\-fillstring "". .IP "\-\-nochange or \-\-noaccent" 4 .IX Item "--nochange or --noaccent" Do not use the \fIaccent\fR file at all. .IP "\-\-onebyone" 4 .IX Item "--onebyone" Use only those rules from the \fIaccent\fR file, which rewrite one character to one character. If this option is specified, character \&\*(L"ecaron\*(R" will be rewritten to \*(L"e\*(R", but \*(L"\s-1AE\*(R"\s0 character will not be rewritten to \*(L"\s-1AE\*(R"\s0 string. .IP "\-\-onebymore" 4 .IX Item "--onebymore" Use all rules from accent file. This is the default option. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBCz::Cstocs\fR\|(3). .SH "AUTHOR" .IX Header "AUTHOR" Jan \*(L"Yenya\*(R" Kasprzak has done the original Un*x implementation. .PP Jan Pazdziora created the Perl module version.