.\" Automatically generated by Pod::Man 4.09 (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 .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "XML::TMX::FromPO 3pm" .TH XML::TMX::FromPO 3pm "2017-09-07" "perl v5.26.0" "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" XML::TMX::FromPO \- Generates a TMX file from a group of PO files .SH "VERSION" .IX Header "VERSION" version 0.36 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use XML::TMX::FromPO; \& \& my $conv = new XML::TMX::FromPO(OUTPUT => \*(Aq%f.tmx\*(Aq); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module can be used to generate \s-1TMX\s0 files from a group of \s-1PO\s0 files. .SH "METHODS" .IX Header "METHODS" The following methods are available: .SS "new" .IX Subsection "new" .Vb 1 \& $tmx = new XML::TMX::FromPO(); .Ve .PP Creates a new XML::TMX::FromPO object. Please check the \s-1COMMON CONFIGURATION\s0 section for details on the options. .SS "rec_get_po" .IX Subsection "rec_get_po" \&\s-1TODO:\s0 Document method .SS "parse_dir" .IX Subsection "parse_dir" \&\s-1TODO:\s0 Document method .SS "create_tmx" .IX Subsection "create_tmx" \&\s-1TODO:\s0 Document function .SS "clean_tmx" .IX Subsection "clean_tmx" \&\s-1TODO:\s0 Document method .SH "COMMON CONFIGURATION" .IX Header "COMMON CONFIGURATION" These configuration options can be passed to all methods in the module: .IP "\s-1LANG\s0 => 'list'" 4 .IX Item "LANG => 'list'" A case insensitive list of regular expression separated by whitespaces that matches the code of the languages that are to be processed. Defaults to all. .ie n .IP "\s-1CONVERT\s0 => 'iconv \-f %t \-t utf8 < %f'" 4 .el .IP "\s-1CONVERT\s0 => 'iconv \-f \f(CW%t\fR \-t utf8 < \f(CW%f\fR'" 4 .IX Item "CONVERT => 'iconv -f %t -t utf8 < %f'" A string that contains the command to convert a file (%f) from some charset (%t) to Unicode. If none is specified, the module tries to use \fIrecode\fR\|(1), if it fails then the module defaults to \fIiconv\fR\|(1). .IP "\s-1OUTPUT\s0 => 'x.tmx'" 4 .IX Item "OUTPUT => 'x.tmx'" The name of the output file. If none is specified it defaults to the standard output. .IP "\s-1DEBUG\s0 => 1" 4 .IX Item "DEBUG => 1" Activate debugging information. Defaults to 0. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIXML::TMX::Writer\fR\|(3), \fIgettext\fR\|(1), \fIrecode\fR\|(1), \fIiconv\fR\|(1) .SH "CONTRIBUTORS" .IX Header "CONTRIBUTORS" Paulo Jorge Jesus Silva, .SH "AUTHORS" .IX Header "AUTHORS" .IP "\(bu" 4 Alberto Simões .IP "\(bu" 4 José João Almeida .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2010\-2017 by Projeto Natura . .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.