TMXGREP(1p)

πŸ“¦
version 0.39 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 to 300 TU. but note the def is 500 girl, 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 with chromium (def: firefox)

πŸ‘‘ AUTHORS

  • Alberto SimΓ΅es <ambs@cpan.org>
  • JosΓ© JoΓ£o Almeida <jj@di.uminho.pt>

two legends fr fr 🌈


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