.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" 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" '' '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 turned on, 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. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "CSTOCS 1p" .TH CSTOCS 1p "2012-11-12" "perl v5.14.2" "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\s0\*(R" Latin character with string \*(L"\s-1AE\s0\*(R" (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\s0\*(R" character will not be rewritten to \*(L"\s-1AE\s0\*(R" 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" \&\fICz::Cstocs\fR\|(3). .SH "AUTHOR" .IX Header "AUTHOR" Jan \*(L"Yenya\*(R" Kasprzak has done the original Un*x implementation. .PP Jan Pazdziora, adelton@fi.muni.cz, created the Perl module version.