TMX-TOKENIZE(1p)

๐Ÿ“ฆ
version 0.39 ยท 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

โœจ NAME โœจ

okay so this is tmx-tokenize โ€” a lil command-line bestie from the User Contributed Perl Documentation section (manual page TMX-TOKENIZE(1p), iykyk ๐Ÿ’…). What does it do? It tokenizes translation units on a tmx file. that's it, that's the whole vibe ๐ŸŽ€


๐ŸŒธ VERSION ๐ŸŒธ

this one's rockin' version 0.39 โ€” periodt โœจ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

the two iconic ways to run her:

tmx-tokenize file.tmx  # creates t_file.tmx

tmx-tokenize -o=out.tmx file.tmx

like... run it on a file, it makes t_file.tmx for you. or tell it exactly where you want the output with -o=out.tmx and it does that instead. main character energy fr fr ๐Ÿ‘‘


๐Ÿ’– DESCRIPTION ๐Ÿ’–

so here's the tea โ˜• โ€” even though this script comes bundled inside XML::TMX, it's got a soft dependency on Lingua::FreeLing3. soft means the dependency is not guaranteed at install time, and you can still use all the other features of the module without Lingua::FreeLing3 ever showing up. ngl, so chill of it.

but bestie... if you actually wanna use this tool, you should install that module. no cap. ๐Ÿ™ˆ

right now, the supported languages are exactly the ones FreeLing3 supports, and the list is:

  • English ๐Ÿ‡ฌ๐Ÿ‡ง
  • Spanish ๐Ÿ‡ช๐Ÿ‡ธ
  • Russian ๐Ÿ‡ท๐Ÿ‡บ
  • Portuguese ๐Ÿ‡ต๐Ÿ‡น
  • Italian ๐Ÿ‡ฎ๐Ÿ‡น

if your TMX file has any other language in it, those get maintained without a change โ€” untouched, unbothered, thriving ๐Ÿงš

and just so you know, this behavior can change in the future, because a basic regexp based tokenizer might get implemented. so like, don't build your whole personality on it staying the same ๐Ÿ’€


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

go read these too, they're literally so good:

  • XML::TMX
  • Lingua::FreeLing3

๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

the icons who made this happen:

  • Alberto Simรตes <ambs@cpan.org>
  • Josรฉ Joรฃo Almeida <jj@di.uminho.pt>

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. slay, legally speaking โœจ


and that's the whole page, bestie โ€” manual TMX-TOKENIZE(1p), brought to you by perl v5.38.2, dated 2024-03-09. mwah ๐Ÿ’…๐Ÿ’–

๐Ÿ“ฆ where this page comes from