XML::TMX::FromPO(3pm)
π XML::TMX::FromPO π
okay so bestie, welcome to XML::TMX::FromPO(3pm) β that's the Perl manual page name, and honestly it's serving exactly what it says on the tin. This is a little module that takes a whole group of PO files and turns them into a TMX file. Translation-nerd core, no cap. β¨
πΈ VERSION πΈ
version 0.39 β she's got a version number, she's official.
π¦ SYNOPSIS π¦
Like, here's the vibe in code form:
use XML::TMX::FromPO;
my $conv = new XML::TMX::FromPO(OUTPUT => '%f.tmx');
That's it. That's the whole entrance. π
π«Ά DESCRIPTION π«Ά
This module can be used to generate TMX files from a group of PO files. That's the whole job. That's her main character energy. She takes many PO, she gives you one TMX. Iconic behaviour honestly. π
β METHODS β
The following methods are available β here's the whole roster, and yes, some of them are literally undocumented, we don't gatekeep:
β¨ new
$tmx = new XML::TMX::FromPO();
Creates a new XML::TMX::FromPO object. If you wanna know what options you can hand her, go check the COMMON CONFIGURATION section below, bestie, that's where the tea is. π
π rec_get_po
TODO: Document method
(yes girl, that's literally all it says. we're not gonna pretend otherwise. π)
π§ parse_dir
TODO: Document method
π₯ create_tmx
TODO: Document function
(she said function not method here, and I'm just relaying that, don't @ me π)
π clean_tmx
TODO: Document method
π COMMON CONFIGURATION π
These configuration options can be passed to all methods in the module. All of them. Every single one. Periodt.
LANG => 'list'β A case insensitive list of regular expressions separated by whitespaces that matches the code of the languages that are to be processed. Defaults to all.CONVERT => 'iconv -f %t -t utf8 < %f'β A string containing the command to convert a file (%f) from some charset (%t) to Unicode. If none is specified, the module tries to userecode(1)first; if that fails, the module defaults toiconv(1).OUTPUT => 'x.tmx'β The name of the output file. If none is specified it defaults to the standard output.DEBUG => 1β Activate debugging information. Defaults to0.
β οΈ heads up bestie: DEBUG is OFF by default, so if you're staring at silence wondering where the logs are β she's not being shy, you just didn't turn it on. π
π SEE ALSO π
Go read these too, they're the friend group:
π CONTRIBUTORS π
Paulo Jorge Jesus Silva, <paulojjs@bragatel.pt> β contributing, as one does. π«Ά
β¨ AUTHORS β¨
- Alberto SimΓ΅es
<ambs@cpan.org> - JosΓ© JoΓ£o Almeida
<jj@di.uminho.pt>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010-2017 by Projeto Natura <natura@di.uminho.pt>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, babes π¦ β documented as perl v5.38.2, dated 2024-03-09, and it lives in the XML::TMX::FromPO(3pm) manpage. slay, go convert something. π
β¨
π¦ where this page comes from
- debian trixie: libxml-tmx-perl 0.39-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxml-tmx-perl 0.39-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxml-tmx-perl 0.39-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms