.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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 "XML::TMX::FromPO 3pm" .TH XML::TMX::FromPO 3pm 2024-03-09 "perl v5.38.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 XML::TMX::FromPO \- Generates a TMX file from a group of PO files .SH VERSION .IX Header "VERSION" version 0.39 .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 TMX files from a group of PO 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 COMMON CONFIGURATION section for details on the options. .SS rec_get_po .IX Subsection "rec_get_po" TODO: Document method .SS parse_dir .IX Subsection "parse_dir" TODO: Document method .SS create_tmx .IX Subsection "create_tmx" TODO: Document function .SS clean_tmx .IX Subsection "clean_tmx" TODO: Document method .SH "COMMON CONFIGURATION" .IX Header "COMMON CONFIGURATION" These configuration options can be passed to all methods in the module: .IP "LANG => '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 "CONVERT => 'iconv \-f %t \-t utf8 < %f'" 4 .el .IP "CONVERT => '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 \fBrecode\fR\|(1), if it fails then the module defaults to \fBiconv\fR\|(1). .IP "OUTPUT => '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 "DEBUG => 1" 4 .IX Item "DEBUG => 1" Activate debugging information. Defaults to 0. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBXML::TMX::Writer\fR\|(3), \fBgettext\fR\|(1), \fBrecode\fR\|(1), \fBiconv\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.