TMXGREP(1p)
π TMXGREP β¨
okay bestie, so this is tmxgrep, a lil user-contributed Perl thing, and it is literally a grep for translation units inside a TMX file. no cap. version 0.39, she's been around. πΈ
π SYNOPSIS
tmxgrep patt file.tmx
options:
-max=300 -- extract up to 300 TU (def=500)
-max=0 -- all matches
-all -- all matches
-a -- annotate matches with '=(...)='
-a=xx -- annotate matches with '<xx>...</xx>'
-o=out.tmx -- define output file (defaut= STDOUT)
-n -- print original TU number (eg: <tu n="35">)
-i -- ignore case
-w -- whole words
-pdf -- output is transformed in a PDF file and show
-html -- output is transformed in a HTML file and show
-html=chromium -- idem and show it with chromium (def:firefox)
and your patt can be any of these three flavors, slay:
RegExp
l1:RegExp
l1:RegExp;l2:RegExp
like, just a plain RegExp, or one scoped to a language l1:RegExp, or two of them stitched together with a ; β l1:RegExp;l2:RegExp. pick your fighter. π
β¨ DESCRIPTION
she creates a TMX file made out of the translation units that macth the regular expression you hand her. (yes, that's the original typo, we love her anyway π«Ά). you give pattern, she gives you back the matching TUs. iconic behavior honestly.
π₯ OPTIONS
okay so here's the whole menu, every single one, no skips:
-max=300β extract up to300TU. but note the def is500girl, yes the wording is confusing, i just report the facts π-max=0β all matches, go absolutely feral-allβ all matches (same energy, different flag)-aβ annotate matches with=(...)=-a=xxβ annotate matches with<xx>...</xx>-o=out.tmxβ define output file (defaut=STDOUT) β and again yes, "defaut", spelling is hers not mine π-nβ print original TU number (eg:<tu n="35">)-iβ ignore case-wβ whole words-pdfβ output is transformed in a PDF file and show-htmlβ output is transformed in a HTML file and show-html=chromiumβ idem and show it withchromium(def:firefox)
π AUTHORS
- Alberto SimΓ΅es
<ambs@cpan.org> - JosΓ© JoΓ£o Almeida
<jj@di.uminho.pt>
two legends fr fr π
π COPYRIGHT AND LICENSE
this software is copyright (c) 2010-2017 by Projeto Natura <natura@di.uminho.pt>.
it's free software bestie β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. πΈ
<div align="center">πΈ β¨ π </div>
and that's the whole page, my love β brought to you by perl v5.38.2, dated 2024-03-09. mwah, go grep those translation units and ate. ππ¦π
π¦ 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